Skip to content
VidiMaster it, module by module
Module 1/Vectors

Vector Operations in ℝⁿ

Vectors in Rn\mathbb{R}^n are lists of numbers you can add and scale component by component. This lesson builds the algebra and geometry of vector addition, scalar multiplication, and linear combinations, then pins down the properties that make these operations so predictable.

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

Let u=(1,0,2)\mathbf{u} = (1, 0, 2) and v=(−1,4,1)\mathbf{v} = (-1, 4, 1). Compute the linear combination 2u−3v2\mathbf{u} - 3\mathbf{v}.

Compute the norm ∥v∥\|\mathbf{v}\| of the vector v=(3,4)\mathbf{v} = (3, 4).

What you’ll be able to do

  • Add vectors and multiply vectors by scalars in R2\mathbb{R}^2, R3\mathbb{R}^3, and general Rn\mathbb{R}^n using components.
  • Interpret vector addition and scaling geometrically (tip-to-tail, the parallelogram rule, stretching, and flipping).
  • Write and evaluate linear combinations of vectors.
  • State and apply the algebraic properties of vector operations: commutativity, associativity, and distributivity.
  • Compute the norm (magnitude) of a vector in Rn\mathbb{R}^n.

In your course

· MATH2015 · Linear Algebra & Probability
§1.2 Vectors and Coordinates in ℝⁿ
  • Definition 1.1Vector addition in ℝ²
  • Definition 1.3Scalar multiplication
  • Proposition 1.1Properties of vector addition
  • Proposition 1.2Properties of scalar multiplication
  • Remark 1.1Geometric meaning of scaling
1

Vectors in ℝⁿ: lists with direction

Intuition. A vector is two things at once: a list of numbers and an arrow. In R2\mathbb{R}^2 you can picture the vector v=(3,2)\mathbf{v} = (3, 2) as an arrow from the origin that goes 33 units right and 22 units up. The same idea works in R3\mathbb{R}^3 (an arrow in space) and in Rn\mathbb{R}^n for any nn, where we can no longer draw it but the arithmetic is identical.

Formal definition. The space Rn\mathbb{R}^n is the set of all ordered lists of nn real numbers: Rn={ (v1,v2,…,vn):vi∈R }.\mathbb{R}^n = \{\,(v_1, v_2, \ldots, v_n) : v_i \in \mathbb{R}\,\}. An element v=(v1,v2,…,vn)\mathbf{v} = (v_1, v_2, \ldots, v_n) is called a vector, and each viv_i is its ii-th component (also called a coordinate or entry). The number nn is the dimension. We write vectors in bold, v\mathbf{v}, and use plain letters like cc for scalars (ordinary real numbers).

The zero vector. The special vector whose every component is 00, 0=(0,0,…,0),\mathbf{0} = (0, 0, \ldots, 0), is the zero vector. It is the arrow of length zero, and it plays the role of 'nothing to add.'

Equality. Two vectors are equal exactly when they live in the same Rn\mathbb{R}^n and agree in every component: u=v\mathbf{u} = \mathbf{v} means ui=viu_i = v_i for all i=1,…,ni = 1, \ldots, n.

2

Addition and scalar multiplication

Everything in this lesson is built from two moves, both performed one component at a time.

Vector addition. For u=(u1,…,un)\mathbf{u} = (u_1, \ldots, u_n) and v=(v1,…,vn)\mathbf{v} = (v_1, \ldots, v_n) in the same Rn\mathbb{R}^n, u+v=(u1+v1,  u2+v2,  …,  un+vn).\mathbf{u} + \mathbf{v} = (u_1 + v_1,\; u_2 + v_2,\; \ldots,\; u_n + v_n). You can only add vectors of the same dimension.

Scalar multiplication. For a scalar c∈Rc \in \mathbb{R} and a vector v\mathbf{v}, c v=(c v1,  c v2,  …,  c vn).c\,\mathbf{v} = (c\,v_1,\; c\,v_2,\; \ldots,\; c\,v_n). Every component is multiplied by cc.

Subtraction is just addition of a scaled vector: u−v=u+(−1)v=(u1−v1,…,un−vn)\mathbf{u} - \mathbf{v} = \mathbf{u} + (-1)\mathbf{v} = (u_1 - v_1, \ldots, u_n - v_n).

Geometry.

  • Addition (tip-to-tail). To form u+v\mathbf{u} + \mathbf{v}, draw u\mathbf{u}, then start v\mathbf{v} at the tip of u\mathbf{u}; the sum is the arrow from the tail of u\mathbf{u} to the new tip. Equivalently, the parallelogram rule says u+v\mathbf{u}+\mathbf{v} is the diagonal of the parallelogram whose sides are u\mathbf{u} and v\mathbf{v}.
  • Scaling. Multiplying by c>1c > 1 stretches a vector, 0<c<10 < c < 1 shrinks it, and c<0c < 0 flips it to point the opposite way while scaling its length by ∣c∣|c|. Multiplying by 00 collapses any vector to 0\mathbf{0}.
3

Linear combinations

A linear combination is what you get by scaling several vectors and adding the results. Given vectors v1,v2,…,vk\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k in Rn\mathbb{R}^n and scalars c1,c2,…,ck∈Rc_1, c_2, \ldots, c_k \in \mathbb{R}, the vector c1v1+c2v2+⋯+ckvkc_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 + \cdots + c_k \mathbf{v}_k is a linear combination of v1,…,vk\mathbf{v}_1, \ldots, \mathbf{v}_k with coefficients (or weights) c1,…,ckc_1, \ldots, c_k.

This single idea is the engine of linear algebra. For example, every vector in R2\mathbb{R}^2 is a linear combination of the standard basis vectors e1=(1,0)\mathbf{e}_1 = (1,0) and e2=(0,1)\mathbf{e}_2 = (0,1), because (a,b)=a (1,0)+b (0,1)=a e1+b e2.(a, b) = a\,(1,0) + b\,(0,1) = a\,\mathbf{e}_1 + b\,\mathbf{e}_2. Asking 'is b\mathbf{b} a linear combination of these vectors, and with which coefficients?' turns into solving a system of linear equations — a theme you will meet again and again.

4

The algebra of vectors (and measuring length)

Because addition and scaling act one component at a time, they inherit the familiar arithmetic rules of real numbers. For all u,v,w∈Rn\mathbf{u}, \mathbf{v}, \mathbf{w} \in \mathbb{R}^n and all scalars c,d∈Rc, d \in \mathbb{R}:

  • Commutativity: u+v=v+u\mathbf{u} + \mathbf{v} = \mathbf{v} + \mathbf{u}.
  • Associativity: (u+v)+w=u+(v+w)(\mathbf{u} + \mathbf{v}) + \mathbf{w} = \mathbf{u} + (\mathbf{v} + \mathbf{w}).
  • Additive identity: u+0=u\mathbf{u} + \mathbf{0} = \mathbf{u}.
  • Additive inverse: u+(−u)=0\mathbf{u} + (-\mathbf{u}) = \mathbf{0}, where −u=(−1)u-\mathbf{u} = (-1)\mathbf{u}.
  • Distributivity over vector sums: c(u+v)=cu+cvc(\mathbf{u} + \mathbf{v}) = c\mathbf{u} + c\mathbf{v}.
  • Distributivity over scalar sums: (c+d)u=cu+du(c + d)\mathbf{u} = c\mathbf{u} + d\mathbf{u}.
  • Compatibility of scalars: c(du)=(cd)uc(d\mathbf{u}) = (cd)\mathbf{u}, and 1 u=u1\,\mathbf{u} = \mathbf{u}.

These are precisely the axioms that make Rn\mathbb{R}^n a vector space. Each one is proved by checking a single component and using the matching rule for real numbers.

Norm (magnitude). The norm of v=(v1,…,vn)\mathbf{v} = (v_1, \ldots, v_n) measures its length: ∥v∥=v12+v22+⋯+vn2.\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2}. In R2\mathbb{R}^2 this is just the Pythagorean theorem: ∥(3,4)∥=9+16=5\|(3,4)\| = \sqrt{9 + 16} = 5. Scaling obeys ∥cv∥=∣c∣ ∥v∥\|c\mathbf{v}\| = |c|\,\|\mathbf{v}\|, matching the picture that multiplying by cc scales length by ∣c∣|c|.

Definition: Vector Addition and Scalar Multiplication in ℝⁿ

For u=(u1,…,un)\mathbf{u} = (u_1,\ldots,u_n), v=(v1,…,vn)∈Rn\mathbf{v} = (v_1,\ldots,v_n) \in \mathbb{R}^n and a scalar c∈Rc \in \mathbb{R}: u+v=(u1+v1,…,un+vn)\mathbf{u} + \mathbf{v} = (u_1+v_1,\ldots,u_n+v_n) and cv=(cv1,…,cvn)c\mathbf{v} = (cv_1,\ldots,cv_n).

Intuition. Both operations are done one coordinate at a time. Addition lines up matching components and adds them; scalar multiplication rescales every component by the same factor. Vectors must have the same dimension to be added.
Properties of Vector Operations (Vector Space Axioms)

For all u,v,w∈Rn\mathbf{u}, \mathbf{v}, \mathbf{w} \in \mathbb{R}^n and scalars c,dc, d: addition is commutative (u+v=v+u\mathbf{u}+\mathbf{v} = \mathbf{v}+\mathbf{u}) and associative ((u+v)+w=u+(v+w)(\mathbf{u}+\mathbf{v})+\mathbf{w} = \mathbf{u}+(\mathbf{v}+\mathbf{w})); 0\mathbf{0} is the additive identity and −u-\mathbf{u} the additive inverse; and scalars distribute: c(u+v)=cu+cvc(\mathbf{u}+\mathbf{v}) = c\mathbf{u}+c\mathbf{v}, (c+d)u=cu+du(c+d)\mathbf{u} = c\mathbf{u}+d\mathbf{u}, c(du)=(cd)uc(d\mathbf{u}) = (cd)\mathbf{u}, and 1u=u1\mathbf{u} = \mathbf{u}.

Intuition. These rules say vector arithmetic behaves exactly like ordinary number arithmetic, because each identity is just the corresponding real-number rule applied in every component at once. They are what let you rearrange and simplify vector expressions freely.
Definition: Linear Combination

A linear combination of vectors v1,…,vk∈Rn\mathbf{v}_1,\ldots,\mathbf{v}_k \in \mathbb{R}^n is any vector of the form c1v1+c2v2+⋯+ckvkc_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k, where c1,…,ck∈Rc_1,\ldots,c_k \in \mathbb{R} are scalars called the coefficients (or weights).

Intuition. It is the most general thing you can build using only the two basic operations: scale each vector, then add. Nearly every central question in linear algebra (spanning, independence, solving systems) is really a question about linear combinations.

Worked examples

Example 1

Let u=(3,−1)\mathbf{u} = (3, -1) and v=(−1,2)\mathbf{v} = (-1, 2) in R2\mathbb{R}^2. Compute w=2u+v\mathbf{w} = 2\mathbf{u} + \mathbf{v}, and then find its norm ∥w∥\|\mathbf{w}\|.

  1. 1

    Scale first. Multiply u\mathbf{u} by the scalar 22, component by component: 2u=2(3,−1)=(2⋅3,  2⋅(−1))=(6,−2)2\mathbf{u} = 2(3, -1) = (2\cdot 3,\; 2\cdot(-1)) = (6, -2).

  2. 2

    Add the second vector. Line up components and add: 2u+v=(6,−2)+(−1,2)=(6+(−1),  −2+2)=(5,0)2\mathbf{u} + \mathbf{v} = (6, -2) + (-1, 2) = (6 + (-1),\; -2 + 2) = (5, 0). So w=(5,0)\mathbf{w} = (5, 0).

  3. 3

    Compute the norm. Apply the formula ∥w∥=w12+w22=52+02=25=5\|\mathbf{w}\| = \sqrt{w_1^2 + w_2^2} = \sqrt{5^2 + 0^2} = \sqrt{25} = 5.

Answer. w=(5,0)\mathbf{w} = (5, 0) and ∥w∥=5\|\mathbf{w}\| = 5.
Example 2

Let a=(1,0,−2)\mathbf{a} = (1, 0, -2) and b=(2,−3,1)\mathbf{b} = (2, -3, 1) in R3\mathbb{R}^3. Compute 3a−2b3\mathbf{a} - 2\mathbf{b}.

Example 3

Find scalars ss and tt such that s(1,1)+t(1,−1)=(4,2)s(1, 1) + t(1, -1) = (4, 2).