Vectors: The Basics
A vector is an arrow with a length and a direction, but no fixed spot: you can slide it anywhere and it's still the same vector. Its components tell you how far it goes along each axis.
What the symbols mean
- Components
How far the arrow moves in x, y and z.
- Magnitude
The arrow's length, by the Pythagorean theorem in 3D.
What the symbols mean
- Unit vector
Same direction as v, length exactly 1.
Explanation
A vector is simply an amount with a direction attached: "5 km northeast" instead of just "5 km." The name comes from the Latin for "carrier," since a vector carries you from one point to another. It's how we describe anything that has a size and points somewhere, like a velocity or a force. The notation looks formal, but it's just three numbers: (how far east), (how far north) and (how far up), and the length is the plain old Pythagorean theorem. That's really all a vector is, so bear with the symbols.
In single-variable calculus a number was enough: how far, how fast. Once you're moving around in space, you also need to say which way. That's what a vector is for. It packs a size and a direction into one object, which is why displacement, velocity, force and (later in this course) the gradient are all vectors.
Components. To get the vector from to , take "end minus start" in each coordinate. Notice that only the difference matters, not where you started. So two arrows with the same components are the same vector, wherever they're drawn. When you do want to pin a vector to a point, use its position vector, the arrow from the origin to that point.
Magnitude is the length. It's just the Pythagorean theorem: . In 3D you use it twice, once across the floor and once going up, which is where the third square under the root comes from.
Unit vectors have length 1, so all they carry is direction. You get one from any nonzero vector by dividing by its length; that shrinks or stretches it to length 1 without turning it. The standard ones point along the axes:
so . The components and the form say exactly the same thing.
See it
Worked examples
Find the vector from to and its length.
- 1
Take end minus start in each coordinate: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find the vector from to .
Find the length of .
Find the unit vector in the direction of .
Find .
Write in components.
A delivery drone takes off at and climbs to hover at (meters). How far is from in a straight line?
The hardest one here. Get it, and you've got this lesson.
A robot arm's tip starts at and moves units straight toward . Where does it stop?
Where it's used
Game engines store every position, velocity and force as a vector; normalizing (making unit vectors) is how they get pure directions for lighting and movement.