Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Vector Scalar Multiplication

How to use
  1. The Length of u stepper (▲ / ▼) sets the number of components of uu, from 11 to 1010; ww always gets the same length. Learn more about choosing the length
  2. Hover the ? icon next to the label for a reminder of what a scalar is and why the length is preserved. Learn more about getting started
  3. ▶ Play runs the whole product, Next → and ← Back move one scene, Reset returns to the opening scene, and the speed menu sets the pace from Slow to Very Fast. Learn more about the controls
  4. Each scene highlights one component: uiu_i in blue and wiw_i in green, joined by a curved arrow; the filled slot shows k⋅uik \cdot u_i. Learn more about reading a scene
  5. The Step explanations log lists every scene so far with its formula, the current one highlighted. Learn more about the step log


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).
No length rule to satisfy - k scales a vector of any length, and the result stays in the same space. Learn more about the opening scene · what it is









Key Terms

Scalar — a single number, not a vector or matrix.

Scalar multiplication — the operation kvkv that multiplies every component of a vector vv by the scalar kk.

Component-wise operation — applied independently to each component; the result at position ii depends only on kk and viv_i.

Length preservation — kvkv has the same number of components as vv. Scalar multiplication never changes the dimension.

Scaling factor — the role kk plays: it stretches (∣k∣>1|k| > 1), shrinks (∣k∣<1|k| < 1), or reverses direction (k<0k < 0) the vector uniformly.

Zero scalar — multiplying by k=0k = 0 produces the zero vector of the same length as vv.

Geometric scaling — multiplying a vector by kk stretches its magnitude by ∣k∣|k| and preserves direction if k>0k > 0 or reverses it if k<0k < 0.

Getting Started with the Visualizer

DemoStep, speed, back, reset
Step 0 of 5
Set the length of vv and watch kv=wkv = w build one component at a time. (The tool labels this vector uu.)

• Use the Dimensions stepper to set the length of vv (1 to 10 components)
• ww 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 kk is shown symbolically in front of vv. The visualizer focuses on the structural rule — every component of vv gets multiplied by the same kk — not on any specific numerical value of kk.

Reading the Scene Player

DemoOne component per scene
Step 0 of 4
Each scene focuses on one component of ww.

• The active component in vv is highlighted primary; the destination component in ww is highlighted accent
• A curved arrow flows from viv_i into wiw_i, showing the scalar being applied
• Each filled component of ww shows its symbolic content k⋅vik \cdot v_i
• The step log on the right keeps a record of completed components

By the final scene, every component of ww holds its symbolic product and the operation is complete.

The Opening Scene: One Number and One Vector

The player opens with the scalar kk, the vector u\mathbf{u} laid out as a row of components, and an empty w\mathbf{w} below it. At the default length u\mathbf{u} has four components, so w\mathbf{w} will have four as well.

Only the setup is on screen: a single number on one side, four components on the other, and the statement that w=k⋅u\mathbf{w} = k \cdot \mathbf{u} is about to be built one slot at a time.
k·u1×4u1,1u1,2u1,3u1,4=w1×4????
Opening scene, frozen

The scalar k beside u, with w empty below. Every slot of w shows the placeholder - and there is no length rule to satisfy, since k meets each component on its own.

There is no matching-length precondition here, unlike addition. A scalar multiplies a vector of any length, because it meets each component individually rather than pairing off against a second vector.

The result stays in the same space it started in: scale a vector of R4\mathbb{R}^4 by any real number and you get another vector of R4\mathbb{R}^4. That closure under scaling is one of the two operations a vector space is required to support, the other being the addition on its own page.

One Component at a Time

Each step highlights one component uju_j together with its destination wjw_j, and writes k⋅ujk \cdot u_j into that slot.

The frozen picture below is a step partway through the run: earlier slots already hold their scaled value, one is being computed, and the rest are still placeholders.
k·u1×4u1,1u1,2u1,3u1,4=w1×4k·u1k·u2k·u3?
Mid-sweep, frozen

One component of u and its destination slot in w highlighted together. Earlier slots already hold k times their component; later ones are still placeholders.

Every step uses the same kk. That single shared factor is what makes the operation uniform — it stretches all components by an identical amount, which is precisely why the direction of the vector is preserved.

Compare that with multiplying each component by a different number. That is a perfectly good operation too, but it is not scalar multiplication; it distorts the vector rather than scaling it, and it corresponds to applying a diagonal matrix instead of a scalar.

The Completed Product

The final scene fills every slot, so w\mathbf{w} reads wj=k⋅ujw_j = k \cdot u_j across all four components, at the same length it started with.

Geometrically, w\mathbf{w} points along the same line as u\mathbf{u} and its length is scaled by ∣k∣|k|: ∥ku∥=∣k∣ ∥u∥\|k\mathbf{u}\| = |k| \, \|\mathbf{u}\|.
k·u1×4u1,1u1,2u1,3u1,4=w1×4k·u1k·u2k·u3k·u4
Completed product, frozen

All four slots filled with k times the component above, and w still four long. The same k everywhere is what keeps the direction unchanged.

The sign of kk decides the direction. For k>1k > 1 the vector stretches, for 0<k<10 < k < 1 it shrinks, at k=0k = 0 it collapses to the zero vector, and for k<0k < 0 it flips to point the opposite way while scaling by ∣k∣|k|. The absolute value in the length formula is doing real work: a length can never come out negative.

The algebraic rules follow from the components, exactly as for matrices: k(u+v)=ku+kvk(\mathbf{u} + \mathbf{v}) = k\mathbf{u} + k\mathbf{v}, (k+m)u=ku+mu(k + m)\mathbf{u} = k\mathbf{u} + m\mathbf{u}, (km)u=k(mu)(km)\mathbf{u} = k(m\mathbf{u}), and 1⋅u=u1 \cdot \mathbf{u} = \mathbf{u}. Together with the addition axioms these are what make Rn\mathbb{R}^n a vector space.

One consequence worth naming: the set of all scalar multiples of a single non-zero u\mathbf{u} is a line through the origin. That set is the span of u\mathbf{u}, and it is the simplest example of a subspace.

Choosing Vector Length

DemoShort and long vectors
Step 0 of 4
The dimension stepper controls the length of vv, and ww follows automatically.

• Start with length 22 or 33 to see the per-component flow clearly — these match vectors in the plane and in 3D space
• Increase to 44 or 55 to see how the same rule scales to higher dimensions; total scenes equal the length nn
• Symbolic content in ww shrinks automatically as the vector grows, so k⋅vik \cdot v_i stays readable
• Both row and column orientations follow identical rules — scalar multiplication has no length restriction

What Scalar Multiplication Is

Scalar multiplication takes a number kk and a vector vv and produces a vector kvkv of the same length, with every component multiplied by kk:

(kv)i=k⋅vi(kv)_i = k \cdot v_i


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 vv, and every component depends only on kk and its own value in vv.

Geometrically, scalar multiplication stretches or shrinks a vector along its direction (and flips it when kk is negative). Together with vector addition, scalar multiplication is what makes Rn\mathbb{R}^n a vector space.

For comprehensive theory, see vector operations.

Key Properties

Scalar multiplication satisfies clean algebraic rules.

• Associativity with scalars: (kl)v=k(lv)(kl)v = k(lv)
• Distributivity over vector addition: k(u+v)=ku+kvk(u + v) = ku + kv
• Distributivity over scalar addition: (k+l)v=kv+lv(k + l)v = kv + lv
• Identity scalar: 1⋅v=v1 \cdot v = v
• Zero scalar: 0⋅v=00 \cdot v = 0 (zero vector of the same length)
• Sign flip: (−1)⋅v=−v(-1) \cdot v = -v
• Compatibility with the dot product: (kv)⋅u=k(v⋅u)(kv) \cdot u = k(v \cdot u)
• Effect on magnitude: ∥kv∥=∣k∣⋅∥v∥\|kv\| = |k| \cdot \|v\|

These properties are exactly the eight vector-space axioms for scalar multiplication.

Why It Matters

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+⋯+cnvnc_1 v_1 + c_2 v_2 + \cdots + c_n v_n uses scalar multiplication
• Normalization: dividing vv by its norm produces a unit vector v/∥v∥v / \|v\|
• Sign changes: −v-v is just scalar multiplication by −1-1, pointing in the opposite direction
• Geometric transformations: scaling by kk 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\theta \leftarrow \theta - \eta \nabla L uses scalar multiplication of the gradient vector by the learning rate η\eta

Worked Example

Take vv as a vector in R3\mathbb{R}^3 and k=3k = 3:

v=(1−24)v = \begin{pmatrix} 1 \\ -2 \\ 4 \end{pmatrix}


Then 3v3v multiplies every component by 3:

3v=(3−612)3v = \begin{pmatrix} 3 \\ -6 \\ 12 \end{pmatrix}


With k=−1k = -1 instead:

−v=(−12−4)-v = \begin{pmatrix} -1 \\ 2 \\ -4 \end{pmatrix}


And with k=0k = 0, the result is the zero vector in R3\mathbb{R}^3.

Geometrically, 3v3v points the same direction as vv but is three times as long, while −v-v has the same length but points the opposite way. Set the visualizer to length 33 and step through to see this animated symbolically.

Common Mistakes

A few mistakes recur.

• Multiplying only the first component — kk 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 — kvkv uses a single scalar; component-wise multiplication uses an entire vector of multipliers
• Thinking the length changes — kvkv always has the same number of components as vv, regardless of kk
• Forgetting sign flips count as scalar multiplication — −v-v is (−1)⋅v(-1) \cdot v
• Confusing magnitude with components — multiplying by kk scales the magnitude by ∣k∣|k|, but each component is scaled by kk itself, sign and all