Coordinate vectors in 3D

Orange vector AB and teal vector w leave point A at a right angle, with their red sum closing a parallelogram.Drag to turn

A vector in coordinate geometry is a quantity with magnitude and direction, written as an ordered list of components along the coordinate axes.

Components along the axes

A vector describes a displacement, such as 3 units right and 4 units up. In the plane it is written (a, b), where a is the component along the x-axis and b is the component along the y-axis. In space a third component is added for the z-axis.

A vector has no fixed position. Two arrows with the same length and direction are the same vector. The position vector of a point runs from the origin to that point, so its components equal the point's coordinates.

Length, sums and the dot product

To find the vector from point A to point B, subtract coordinates: AB = B minus A. Its magnitude comes from the Pythagorean theorem, |(a, b)| = sqrt(a² + b²). Addition and multiplication by a scalar work component by component.

The dot product of (a, b) and (c, d) is ac + bd. It equals |u||v|cos θ, where θ is the angle between the vectors. A dot product of zero therefore means the vectors are perpendicular, provided neither is the zero vector.

Worked example: two vectors

The vector AB = (4 - 1, 6 - 2) = (3, 4). Its magnitude is sqrt(9 + 16) = sqrt(25) = 5.

Let w = (4, -3). Then AB · w = 3×4 + 4×(-3) = 12 - 12 = 0, so AB is perpendicular to w. The sum is AB + w = (3 + 4, 4 - 3) = (7, 1).

Common misconceptions

A vector is not a point, although a position vector shares its components with a point. A vector can be moved without change, while a point cannot.

The magnitude of a sum is usually not the sum of the magnitudes. Here |AB| = 5 and |w| = 5, which add to 10, but |(7, 1)| = sqrt(49 + 1) = sqrt(50), about 7.07. Equality holds only when the vectors point the same way.

Where coordinate vectors are used

Vectors describe velocity and force in physics and movement in computer graphics. In analytic geometry a point together with a direction vector defines a line, and a point together with a normal vector defines a plane. A direction or normal vector alone fixes only an orientation, so many parallel lines or planes share it.

For example, the line through (1, 2) with direction (3, 4) contains the points (1 + 3t, 2 + 4t) for each real number t.

Key terms

Vector
A quantity with magnitude and direction, written as components along the axes.
Component
The part of a vector along one coordinate axis.
Position vector
The vector from the origin to a given point.
Magnitude
The length of a vector, found with the Pythagorean theorem.
Dot product
The sum of products of matching components, equal to |u||v|cos θ.
Unit vector
A vector with magnitude 1.

Common questions

How is the angle between two vectors found?

Rearrange the dot product formula: cos θ = u·v / (|u||v|). For (1, 0) and (1, 1), cos θ = 1 / (1 × sqrt2), so θ = 45 degrees.

What is a unit vector?

A unit vector has magnitude 1. Divide a nonzero vector by its magnitude to get one, so (3, 4) / 5 = (0.6, 0.8).

Does rotating the axes change a vector?

The vector as a geometric object stays the same, but its components change. Its length and its dot products with other vectors stay the same.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.