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.
