Basic Concepts of Vectors

I. Three Ways of Looking at a Vector

A vector (Vector) is understood differently in different disciplines. One of the keys to learning linear algebra is being able to switch freely between these three views.

1. The Physics View: a Vector Is an “Arrow”

In a physics class, a vector is an arrow in space:

  • It has a direction and a length (magnitude)
  • Examples: displacement, velocity, force
xyPointing northeast, length 3Translating it gives the same vectorStarts at the origin

The essence of an arrow is determined by its direction and its length, not by where it happens to be drawn — after translating it, it is still the same vector.

2. The Computer Science View: a Vector Is an “Ordered Array”

To a programmer, a vector is an ordered list of numbers:

v = (3, 2)      ← a 2D vector (2 numbers)
w = (1, 0, 5)   ← a 3D vector (3 numbers)

Each number is a component of the vector on some coordinate axis.

3. The Mathematical View: a Vector Is an “Object You Can Operate On”

A mathematician abstracts a vector as an object satisfying certain rules of operation: it can be added, and it can be multiplied by a scalar (multiplied by a number). Whether it really is an “arrow” does not matter — what matters is how it is operated on.

II. Coordinates: Giving a Vector an “Address”

On the two-dimensional plane we set up a coordinate system (two perpendicular axes):

  • The horizontal axis (the x-axis): the horizontal direction
  • The vertical axis (the y-axis): the vertical direction

A vector can be written as a pair of coordinates:

v = (vx, vy)

Meaning: start at the origin, move vx units in the x direction, then move vy units in the y direction, and you arrive at the tip of the arrow.

xy11223344(2, 3)
  • The vector (2, 3): 2 units to the right, 3 units up
  • The start of a vector is always the origin (a convention of the geometric view)

III. Why an “Ordered Array”

The coordinates (2, 3) and (3, 2) are different vectors — the order matters. That is why a vector is called an “ordered array”:

(2, 3) ≠ (3, 2)    ← the first component lies on the x-axis, the second on the y-axis

In a higher-dimensional (n-dimensional) space, a vector is simply n ordered numbers:

v = (v₁, v₂, ..., vₙ)   ← an n-dimensional vector

IV. The Length (Norm) of a Vector

The length of a vector arrow is called its norm, written with two vertical bars:

∥v∥=vx2+vy2(2D)\|\mathbf{v}\| = \sqrt{v_x^2 + v_y^2} \quad \text{(2D)}

This is a direct application of the Pythagorean theorem — the arrow is the hypotenuse of a right triangle.

Example: v = (3, 4)
‖v‖ = √(3² + 4²) = √25 = 5

V. The Zero Vector and the Unit Vector

Special vectorDefinitionGeometric meaning
Zero vector(0, 0)A “point” with no direction; adding any vector leaves it unchanged
Unit vectorNorm equal to 1Represents direction only, with the length fixed at 1

Common notation:

Zero vector: 0 = (0, 0, ..., 0)
Normalisation: v̂ = v / ‖v‖   (scale v to length 1, keeping its direction)

VI. Vector Addition: The Parallelogram Rule

Geometric Intuition

To add two vectors, use the parallelogram rule (or head-to-tail):

Move the start of v to the end of w (head to tail),
or draw v and w from the origin at the same time,
complete the parallelogram whose adjacent sides are the two of them,
and the diagonal arrow is v + w.
xyvwv+w

The Algebraic Rule

Coordinates are added component by component:

v+w=(vx+wx,  vy+wy)\mathbf{v} + \mathbf{w} = (v_x + w_x,\; v_y + w_y)

Example: v = (2, 1), w = (1, 3)
v + w = (2+1, 1+3) = (3, 4)

VII. Interactive Demo: Drag the Vectors and Watch Them Add

vwv+w

Add component by component: v+w = (v.x+w.x, v.y+w.y)

Drag the sliders to see for yourself that "a vector is an arrow" and "addition adds component by component".

What to watch:

  • Drag the sliders to change the components of v and w
  • The orange arrow v+w always satisfies “add the coordinates component by component”
  • The geometric position of v+w is the diagonal of the parallelogram

VIII. Scalar Multiplication: Stretching and Shrinking

Geometric Intuition

Scalar multiplication scales a vector by a scalar (a number):

2·v: stretch v to twice its length (direction unchanged)
0.5·v: shrink v to half its length (direction unchanged)
-1·v: reverse v (direction flipped, length unchanged)
-2·v: reverse it and stretch it to twice its length
        v  →  2v: longer
        v  →  0.5v: shorter
        v  →  -v: opposite direction

The Algebraic Rule

Every component is multiplied by that number:

λv=(λvx,  λvy)\lambda \mathbf{v} = (\lambda v_x,\; \lambda v_y)

Example: v = (2, 1)
3v = (6, 3)
-2v = (-4, -2)

IX. What the Two Basic Operations Mean

Taken together, vector addition and scalar multiplication are the two basic operations of a linear combination. They satisfy a series of properties, and it is precisely those properties that define what “linear” means:

PropertyMeaning
Commutativityv + w = w + v
Associativity(u + v) + w = u + (v + w)
Distributivity over scalar multiplicationλ(u + v) = λu + λv
Associativity of scalar multiplication(λμ)v = λ(μv)
Zero elementv + 0 = v
Identity element1·v = v

X. The Geometric Intuition of the Operations, Summarised

OperationGeometric actionAlgebraic action
v + wTranslation / the diagonal of a parallelogramAdd the components one by one
λ·vStretch along v (reversed when λ is negative)Multiply every component by λ

Summary

Symbols Used in This Article

SymbolTypePronunciation / NoteMeaning in This Article
v\mathbf{v}Mathematical symbolvector vAn arrow in space, whose start is taken to be the origin
v,w\mathbf{v}, \mathbf{w}Mathematical symbolvectors v and wTwo vectors taking part in an addition
vx,vyv_x, v_yMathematical symbolv sub x, v sub yThe components of the vector v\mathbf{v} on the coordinate axes
vx,vyv_x, v_yMathematical symbolv sub x, v sub yThe horizontal and vertical coordinate components of v\mathbf{v}
∥v∥\|\mathbf{v}\|Mathematical symbolnorm of vThe length of the arrow, namely vx2+vy2\sqrt{v_x^2 + v_y^2}
v^\hat{\mathbf{v}}Mathematical symbolv hatThe normalised vector v^=v/∥v∥\hat{\mathbf{v}} = \mathbf{v}/\|\mathbf{v}\|, of length 1, representing direction only
v+w\mathbf{v} + \mathbf{w}Mathematical symbolv plus wVector addition, geometrically the diagonal of a parallelogram
λ\lambdaGreek letterLambdaThe scalar (number) used in scalar multiplication
λv\lambda \mathbf{v}Mathematical symbollambda times vScalar multiplication, multiplying every component by λ\lambda
μ\muGreek letterMuThe second scalar appearing in the associativity of scalar multiplication

Found an issue with this content?

Tell us what could be improved.