Components of a vector
Pick up any vector in three-dimensional space and there is a completely mechanical way to describe it with three numbers: how far it reaches along , how far along , how far along . Those three numbers are its components, and writing the vector as turns every geometric question about it — its length, its direction, what happens when you add it to another vector — into ordinary arithmetic. This is the tool that makes the rest of vector algebra computable rather than just pictorial. Once a vector is in component form, magnitude is a square root of a sum of squares, addition is done term by term, and direction cosines fall out by dividing by the magnitude. This article builds the idea from the standard basis vectors , derives the component and magnitude formulas, and works through the same numeric examples used throughout the Vector Algebra chapter.
Any vector can be written as , where are its scalar components along the axes, and this component form converts magnitude, addition, and scalar multiplication into simple arithmetic on those three numbers.
The core idea
Set up axes , , through a common origin , mutually perpendicular. Along the positive , , directions there are three fixed unit vectors, written , satisfying . These are not arbitrary — is literally the position vector of the point , of , and of . Every other vector in space is built as a combination of these three.
Position vector of a point. For a point , the position vector is
where: are the scalar components of along the three axes, and are its vector components. The two terms sound similar but mean different things — a scalar component is a bare number, a vector component still carries a direction.
Components of a general vector. A vector does not have to start at the origin. For running from to , the components come from subtracting the initial point's coordinates from the terminal point's:
where: the order matters — it is always terminal minus initial, i.e. minus , never the other way round.
Magnitude from components. Once a vector is in the form , its length follows from a three-dimensional Pythagorean-style sum:
where: are the scalar components of along . Component form is what makes vector algebra genuinely computational. Geometric constructions like the triangle law or the parallelogram law are excellent for building intuition about why vector addition works, but they do not scale to an arbitrary vector in three dimensions when an exact numeric answer is needed. Component form fixes that: addition, subtraction, and scalar multiplication all reduce to doing the same operation on matching components, one axis at a time. It also feeds directly forward into direction cosines, and so on, and later into the dot and cross products, both of which are defined entirely in terms of components.
This derivation shows why follows from ordinary two-dimensional geometry applied twice, once in a horizontal plane and once vertically, rather than being an assumed extra rule bolted onto vector algebra.
Step 1. Take for a point . Drop a perpendicular from to the point lying directly below it in the -plane. The segment lies entirely in that plane, and is vertical, so triangle has a right angle at .
Step 2. Inside the -plane, is reached from by moving along and along , which are themselves perpendicular directions. Ordinary two-dimensional Pythagoras on that right triangle gives , so .
Step 3. Now apply Pythagoras to the right triangle , whose legs are and and whose hypotenuse is . That gives .
Step 4. Take the square root of both sides: . The same argument applies unchanged to , since it is just a position vector once the axes are shifted so that is the origin — so the magnitude of any vector between two points is .
Worked example
Find the scalar components and the magnitude of , where and . Then use and to find the components and magnitude of .
Step 1. Subtract 's coordinates from 's coordinates, terminal minus initial:
So the scalar components of are , , and along , , .
Step 2. Find the magnitude using :
Step 3. For the second part, scale each vector componentwise: and .
Step 4. Subtract componentwise, matching with , with , with :
Step 5. Apply the magnitude formula one more time: . So has magnitude , and has magnitude .
Competitive stretch
Once is known, its direction cosines follow immediately: , so the direction cosines are . This is exactly the position-vector direction-cosine formula from earlier in the chapter, just applied to a general vector instead of only to — component form is what lets the same formula transfer over unchanged.
Common traps
- Subtracting in the wrong order. is terminal minus initial ( minus ); doing it the other way silently computes , flipping every sign.
- Mixing up scalar and vector components. For , the scalar components are the plain numbers ; the vector components are . Both terms show up in exam questions, so read carefully which one is being asked for.
- Squaring negative components incorrectly. , not ; dropping the sign before squaring is one of the most common arithmetic slips in magnitude questions.
- Treating raw components as direction cosines. The components equal the direction cosines only when ; for any other vector you must divide each component by the magnitude first.
Ask the tutor: stuck on whether to subtract A from B or B from A, or want a few more practice problems on finding components and magnitude? Ask the AI tutor.
Why do we bother writing vectors with i-hat, j-hat, k-hat instead of just listing three numbers like (a1, a2, a3)?
Both notations carry the same information, and many textbooks use them interchangeably. Writing makes explicit that a vector is a sum of pieces along fixed reference directions, which matters once you start adding vectors, taking dot products, or computing cross products — those operations are defined in terms of the pieces, so keeping the basis vectors visible in the notation is a reminder of what is actually being combined.
Do the components of AB depend on where A and B are, or only on the vector's length and direction?
Only on length and direction. Two different segments with the same length and the same direction — for example from to and from to — give identical component vectors , because only the coordinate differences matter, not the starting point. This is exactly why we can freely slide a "free vector" around without changing what it represents.
If two vectors have the same magnitude, must they have the same components?
No. Magnitude only fixes , and many different triples can give the same value under a square root — for instance and both have magnitude but are clearly different vectors pointing in different directions. Magnitude alone never determines a vector; you also need its direction, which is exactly what the individual components (or the direction cosines built from them) supply.