Vector operations explained
A vector is a quantity with a size and a direction, and in a coordinate plane you write it as a pair of components such as <3, -2>. To add or subtract two vectors, add or subtract their matching components. To scale one, multiply every component by the same number. Everything else on this page, including magnitude and unit vectors, builds on those three moves.
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first session| Operation | Component rule | Result for u = <3, -2> and v = <-1, 4> | What the arrow does |
|---|---|---|---|
| Addition, u + v | Add matching components | <2, 2> | Put the start of v on the end of u, then draw from the start of u to the end of v |
| Subtraction, u - v | Subtract matching components | <4, -6> | Add u to the opposite of v, which is the same arrow turned around |
| Scalar multiple, 3u | Multiply each component by 3 | <9, -6> | Same direction, three times as long |
| Negative scalar, -2v | Multiply each component by -2 | <2, -8> | Twice as long and pointing the other way |
| Magnitude, length of u | Square root of the sum of squared components | square root of 13, about 3.61 | The length of the arrow |
Each result was computed from the component rule shown, and the picture rule describes the same result as an arrow.
Component rules for vectors in the plane, as in OpenStax Precalculus 2e section 8.8
What is a vector, and how is it written?
A vector has two parts: how large it is, which is its magnitude, and which way it points. Speed alone is a plain number, a scalar. A speed together with a heading, such as 25 knots to the south, is a vector. Force, velocity and displacement are the usual examples.
You can show a vector two ways, and each is useful:
- As an arrow. The tail is the starting point and the head is where the arrowhead sits. A vector named AB starts at A and ends at B, so AB and BA point opposite ways.
- As components. The pair <a, b> says how far to move across and how far up or down. Starting at (1, 4) and ending at (7, 8) gives the components <6, 4>.
Two vectors are equal when their components match, whatever their starting points. Sliding an arrow across the page does not change it. A vector whose components are all zero, called the zero vector, has size zero and points nowhere in particular.
How do you find the magnitude and a unit vector?
Use the Pythagorean theorem on the components. For <a, b> the magnitude is the square root of a squared plus b squared. A vector from P at (2, 1) to Q at (7, 13) has components <5, 12>, so its magnitude is the square root of 25 plus 144, which is 13.
A unit vector has magnitude 1. To make one from any nonzero vector, divide each component by the magnitude. Dividing <5, 12> by 13 gives <5/13, 12/13>, which points the same way as the original with length exactly 1. In three dimensions the idea is unchanged with one more term: <1, 2, 2> has magnitude the square root of 1 plus 4 plus 4, which is 3, so its unit vector is <1/3, 2/3, 2/3>.
How do you add and subtract vectors?
By components, add each pair: <a, b> plus <c, d> is <a + c, b + d>. By arrows, you have two equivalent pictures. In the tip-to-tail picture you draw the first arrow, then start the second where the first ended, and the sum runs from the very start to the very end. In the parallelogram picture you draw both arrows from one point, complete the parallelogram, and the diagonal from that point is the sum.
The order does not matter, so u plus v equals v plus u. The parallelogram shows why: the two routes around it end at the same corner. Grouping does not matter either.
Subtraction is addition of the opposite. To compute u minus v, reverse v and add. Drawn from a common start, the arrow for u minus v runs from the head of v to the head of u. If you subtract in the wrong order you get the opposite arrow, so write the order down before you subtract.
Worked example: Wind and a plane. A plane flies east at 300 miles per hour in still air while a wind pushes it north at 40 miles per hour. Find its ground speed and heading.
- Write each motion as a vector with east as the first component: the plane is <300, 0> and the wind is <0, 40>.
- Add them: <300, 40>.
- Find the magnitude: the square root of 90,000 plus 1,600 is about 302.7.
- Find the angle north of east: the tangent of the angle is 40 over 300, so it is about 7.6 degrees.
Answer: About 302.7 miles per hour, heading about 7.6 degrees north of east.
Method: component addition, then the Pythagorean theorem and an inverse tangent; the speeds are example numbers.
What does multiplying a vector by a number do?
It changes only the length, unless the number is negative. A scalar of 2 doubles the length, a scalar of one half halves it, and a scalar of -1 flips the arrow without changing its length. A scalar of zero collapses it to the zero vector. In components you multiply each entry, so 3 times <3, -2> is <9, -6>.
Two nonzero vectors run along the same line exactly when one is the other times some number. That is a fast test: <2, 6> and <3, 9> are parallel because the second is 1.5 times the first, while <2, 6> and <3, 8> are not.
There is no ordinary product of two vectors that gives another vector. Stretching a vector with a plain number is fine, and there are two special products of two vectors, the dot product and the cross product, but they are separate operations with their own rules.
What is a linear combination?
It is a sum of scaled vectors, such as c1 times u plus c2 times v. Many problems ask you to find the scalars that build a target vector from two given ones.
Worked example: Finding the scalars. Find c1 and c2 so that c1 times <2, 1> plus c2 times <1, 3> equals <8, 9>.
- Split it into one equation per component: 2c1 + c2 = 8 for the first, and c1 + 3c2 = 9 for the second.
- Solve the first for c2: c2 = 8 - 2c1.
- Substitute into the second: c1 + 3(8 - 2c1) = 9, so c1 + 24 - 6c1 = 9, so -5c1 = -15, so c1 = 3.
- Then c2 = 8 - 6 = 2.
- Check: 3 times <2, 1> is <6, 3>, 2 times <1, 3> is <2, 6>, and the sum is <8, 9>.
Answer: c1 is 3 and c2 is 2.
Method: component equations solved by substitution; the vectors are example numbers.
Which mistakes come up most?
- Adding lengths instead of vectors. Lengths of 3 and 4 give a sum of length 7 only if the arrows point the same way. At right angles the sum has length 5.
- Subtracting in the wrong order. u minus v and v minus u are opposites.
- Forgetting that scaling applies to every component. Doubling <3, -2> gives <6, -4>, not <6, -2>.
- Dropping a negative sign in the magnitude. Components are squared, so the sign disappears inside the root, but not in the components themselves.
Where do vectors appear on test math?
The official math description for the ACT® test lists vectors and matrices under its Number and Quantity category, which makes up 10 to 12 percent of the section. Most questions stay in the plane and ask for a sum, a scalar multiple, a magnitude or a missing component. Components are almost always quicker than drawing. If you want practice, the math practice set and the math tutoring page are the places to start.
Common questions
What is the difference between a vector and a scalar?
A scalar is a single number, such as a speed or a mass. A vector carries a direction as well, so it needs at least two numbers in the plane.
How do you find the magnitude of a vector?
Square each component, add the squares and take the square root. For <6, 8> that is the square root of 36 plus 64, which is 10.
What is a unit vector?
A vector of length 1. Divide any nonzero vector by its own magnitude to get the unit vector pointing the same way.
Is vector subtraction different from addition?
It is addition of the opposite vector. Subtract component by component, and take care with the order.