Skip to content

You’re trying Vidi. Read the lesson and solve the exercises — no account needed. Your progress here isn’t saved.

Create a free account
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.

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.
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|.

Worked example

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.

Try it yourself

0/6 solved
Exercise 1introVector answer

Let u=(2,3)\mathbf{u} = (2, 3) and v=(1,−5)\mathbf{v} = (1, -5). Compute u+v\mathbf{u} + \mathbf{v}. Enter your answer as a vector (list of components).

Exercise 2introVector answer

Let w=(1,−2,4)\mathbf{w} = (1, -2, 4). Compute the scalar multiple 3w3\mathbf{w}.

Exercise 3coreVector answer

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}.

Exercise 4coreNumeric answer

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

Exercise 5coreMultiple choice

You add u+v\mathbf{u} + \mathbf{v} by drawing u\mathbf{u}, placing the tail of v\mathbf{v} at the tip of u\mathbf{u}, and drawing the arrow from the tail of u\mathbf{u} to the tip of v\mathbf{v}. What is this geometric method called?

Exercise 6challengeVector answer

Find scalars aa and bb such that a(1,2)+b(3,1)=(5,5)a(1, 2) + b(3, 1) = (5, 5). Enter your answer as the vector (a,b)(a, b).

Liked it?

This demo doesn’t save anything. Create a free account to keep your progress and sync it across devices.