Free for your classroom: you may copy, adapt and share worksheets, exercises, texts and graphics with your class without asking (terms (in German)).

Ad-free in class: How it works (in German)

Vectors

A vector has a size and a direction. Learn how to write vectors in components, find the magnitude and direction angle, add and subtract vectors, multiply by a scalar, use the dot product for angles and work, and handle vectors in 3D with the cross product.

Also available in: Deutsch · Español · Português

A vector is a quantity that has both a magnitude (size) and a direction, drawn as an arrow. In the plane you write a vector with its components, such as v = ⟨3, 4⟩: 3 units to the right and 4 units up. Its magnitude is the length of the arrow, |v| = √(3² + 4²) = 5. Velocity, force and displacement are vectors; speed, mass and temperature are not.

What is a vector?

A number that only says “how much” is a scalar: 60 miles per hour, 5 kg, 20 °C. A vector also says “which way”: 60 miles per hour due north is a velocity. Likewise, distance is a scalar but displacement is a vector, and mass is a scalar but force is a vector.

Vectors are written in several ways: as a bold letter v, with an arrow over the letter, as ⟨3, 4⟩ (common in US textbooks), as (3, 4), as a column with 3 on top of 4, or as 3i + 4j. Two vectors are equal if they have the same magnitude and direction, wherever they are drawn. The zero vector ⟨0, 0⟩ has length 0 and no direction.

Anzeige

Components of a vector

The components tell you how far the arrow goes in the x-direction and in the y-direction. For an arrow from A(x₁, y₁) to B(x₂, y₂), subtract the coordinates of the start from those of the end:

AB→=⟨x2−x1,y2−y1⟩

Magnitude and direction of a vector

The magnitude (length, norm) comes from the Pythagorean theorem, because the components are the legs of a right triangle:

|v|=a2+b2forv=⟨a,b⟩

The direction angle θ is measured counterclockwise from the positive x-axis, with tan θ = b/a. A calculator's tan⁻¹ only returns angles between −90° and 90°, so check the quadrant.

Adding and subtracting vectors

To add vectors, add the matching components: ⟨a, b⟩ + ⟨c, d⟩ = ⟨a + c, b + d⟩. In a drawing, place the tail of the second arrow at the head of the first (head-to-tail, or triangle rule); the sum runs from the start of the first to the end of the second. Equivalently, it is the diagonal of the parallelogram formed by the two vectors.

u = ⟨4, 1⟩ v = ⟨1, 3⟩ u + v = ⟨5, 4⟩
The sum u + v = ⟨4 + 1, 1 + 3⟩ = ⟨5, 4⟩ is the diagonal of the parallelogram formed by u and v.

Subtraction works the same way: u − v = u + (−v). With u = ⟨4, 1⟩ and v = ⟨1, 3⟩, u − v = ⟨3, −2⟩, the arrow from the tip of v to the tip of u.

Anzeige

Scalar multiplication

Multiplying a vector by a number k (a scalar) multiplies each component: k⟨a, b⟩ = ⟨ka, kb⟩. The length is multiplied by |k|. If k > 0 the direction stays the same; if k < 0 it reverses. Two nonzero vectors are parallel exactly when one is a scalar multiple of the other.

Unit vectors

A unit vector has length 1. To get the unit vector in the direction of v, divide by its length: v / |v|. For v = ⟨3, 4⟩ that is ⟨3/5, 4/5⟩ = ⟨0.6, 0.8⟩. The standard unit vectors are i = ⟨1, 0⟩ and j = ⟨0, 1⟩ (in 3D also k = ⟨0, 0, 1⟩), so ⟨3, 4⟩ = 3i + 4j.

The dot product

The dot product (scalar product) of two vectors is a number, not a vector. It has two equal forms:

u·v=u1v1+u2v2=|u||v|cos⁡θ

where θ is the angle between the vectors. So cos θ = (u · v) / (|u| |v|). If u · v = 0, the angle is 90° and the vectors are perpendicular (orthogonal); a positive dot product means an acute angle, a negative one an obtuse angle.

In physics, the work done by a constant force F along a displacement d is W = F · d. A force ⟨10, 5⟩ N moving an object ⟨6, 0⟩ m does 60 J of work; only the part of the force along the motion counts.

Vectors in 3D

In space, a vector has three components ⟨a, b, c⟩ along the x-, y- and z-axes. Everything above carries over with one more term:

  • Magnitude: |⟨2, −1, 2⟩| = √(4 + 1 + 4) = 3.
  • Between points: from A(1, 0, 2) to B(4, 4, 2) the vector is ⟨3, 4, 0⟩, with length 5.
  • Dot product: ⟨1, 2, 2⟩ · ⟨2, −2, 1⟩ = 2 − 4 + 2 = 0, so these vectors are perpendicular.
  • Angle: for ⟨1, 1, 0⟩ and ⟨1, 0, 1⟩, the dot product is 1 and both lengths are √2, so cos θ = 1/2 and θ = 60°.

The cross product

The cross product of two 3D vectors is a vector perpendicular to both:

a×b=⟨a2b3−a3b2,a3b1−a1b3,a1b2−a2b1⟩

The order matters: b × a = −(a × b). The direction follows the right-hand rule, and i × j = k. The cross product is often computed as a 3 × 3 determinant, explained with matrices and determinants.

Anzeige

Common mistakes

  • Adding lengths: |u + v| is usually not |u| + |v|. |⟨3, 0⟩ + ⟨0, 4⟩| = 5, not 7.
  • Start minus end: the vector from A to B is B − A, not A − B.
  • Wrong quadrant for the direction angle: ⟨−3, 3⟩ points at 135°, not −45°.
  • Expecting a vector from the dot product: u · v is a number.
  • Swapping the order in the cross product: a × b and b × a point in opposite directions.
  • Mixing up points and vectors: the point (3, 4) is a location; the vector ⟨3, 4⟩ is a move that can start anywhere.

Practice problems

Anzeige

Frequently asked questions

What is a vector in math?

A quantity with a magnitude and a direction, drawn as an arrow and written with components such as ⟨3, 4⟩. Two arrows with the same length and direction represent the same vector.

What is the difference between a vector and a scalar?

A scalar is just a number (speed, mass, temperature). A vector has a direction as well (velocity, force, displacement).

How do you find the magnitude of a vector?

Square the components, add them and take the square root: |⟨a, b⟩| = √(a² + b²), and in 3D |⟨a, b, c⟩| = √(a² + b² + c²).

How do you add vectors?

Add the components: ⟨a, b⟩ + ⟨c, d⟩ = ⟨a + c, b + d⟩. Graphically, put the arrows head to tail; the sum goes from the first tail to the last head.

What is the dot product used for?

To find the angle between two vectors, to test whether they are perpendicular (dot product 0), to project one vector onto another and to compute work in physics.

Keep learning

Anzeige

Spotted a mistake or have a request? Send us a short message and we will take care of it.

Spotted a mistake or have a request?

Your message about the page “Vectors”. We send the page address along automatically.

Please do not include any other personal data. More in our privacy policy (in German).