Symbolic visualization of k · A = C, cell by cell.
Length of u?A scalar is a single number — not a vector or matrix. Multiplying by a scalar k preserves shape: the result has the same dimensions as the input, and every entry equals k times the corresponding input entry. The same idea applies to vectors and to matrices — only the shape of the operand differs.
ulength4
k·
u1×4
u1,1
u1,2
u1,3
u1,4
=
w1×4
?
?
?
?
Step 1 / 6
Step explanations
1Scalar multiplication
k is a scalar — a single number. To compute w = k · u, multiply every entry of u by k. w has the same length as u (4).
Set the length of v and watch kv=w build one component at a time.
• Use the Dimensions stepper to set the length of v (1 to 5 components) • w inherits the same length automatically • Hover the ? icon for a reminder of what a scalar is and why the length is preserved • Press play or step manually through the scene player; the speed selector and step log let you control pace and review
The scalar k is shown symbolically in front of v. The visualizer focuses on the structural rule — every component of v gets multiplied by the same k — not on any specific numerical value of k.
• The active component in v is highlighted primary; the destination component in w is highlighted accent • A curved arrow flows from vi into wi, showing the scalar being applied • Each filled component of w shows its symbolic content k⋅vi • The step log on the right keeps a record of completed components
By the final scene, every component of w holds its symbolic product and the operation is complete.
The dimension stepper controls the length of v, and w follows automatically.
• Start with length 2 or 3 to see the per-component flow clearly — these match vectors in the plane and in 3D space • Increase to 4 or 5 to see how the same rule scales to higher dimensions; total scenes equal the length n • Symbolic content in w shrinks automatically as the vector grows, so k⋅vi stays readable • Both row and column orientations follow identical rules — scalar multiplication has no length restriction
Scalar multiplication takes a number k and a vector v and produces a vector kv of the same length, with every component multiplied by k:
(kv)i=k⋅vi
It's the simplest non-trivial vector operation. There are no length restrictions — any vector can be scaled. The result has the same length as v, and every component depends only on k and its own value in v.
Geometrically, scalar multiplication stretches or shrinks a vector along its direction (and flips it when k is negative). Together with vector addition, scalar multiplication is what makes Rn a vector space.
• Associativity with scalars: (kl)v=k(lv) • Distributivity over vector addition: k(u+v)=ku+kv • Distributivity over scalar addition: (k+l)v=kv+lv • Identity scalar: 1⋅v=v • Zero scalar: 0⋅v=0 (zero vector of the same length) • Sign flip: (−1)⋅v=−v • Compatibility with the dot product: (kv)⋅u=k(v⋅u) • Effect on magnitude: ∥kv∥=∣k∣⋅∥v∥
These properties are exactly the eight vector-space axioms for scalar multiplication.
Scalar multiplication is the operation that lets vectors form a vector space, and it appears everywhere combinations of vectors appear.
• Linear combinations: any expression c1v1+c2v2+⋯+cnvn uses scalar multiplication • Normalization: dividing v by its norm produces a unit vector v/∥v∥ • Sign changes: −v is just scalar multiplication by −1, pointing in the opposite direction • Geometric transformations: scaling by k stretches or shrinks length while preserving direction • Physics: force, velocity, and momentum vectors are routinely rescaled by dimensionless constants • Gradient descent and optimization: the step θ←θ−η∇L uses scalar multiplication of the gradient vector by the learning rate η
And with k=0, the result is the zero vector in R3.
Geometrically, 3v points the same direction as v but is three times as long, while −v has the same length but points the opposite way. Set the visualizer to length 3 and step through to see this animated symbolically.
• Multiplying only the first component — k multiplies *every* component, not just one • Confusing scalar multiplication with the dot product — scalar multiplication uses one number and returns a vector; the dot product uses two vectors and returns a number • Confusing scalar multiplication with the Hadamard product — kv uses a single scalar; component-wise multiplication uses an entire vector of multipliers • Thinking the length changes — kv always has the same number of components as v, regardless of k • Forgetting sign flips count as scalar multiplication — −v is (−1)⋅v • Confusing magnitude with components — multiplying by k scales the magnitude by ∣k∣, but each component is scaled by k itself, sign and all