A7 · Lesson 1 · Vectors
An arrow you can also write as a list of numbers
A force has a size and a direction. So does an electric field, and so does a phasor. All of them are vectors, and you can think of a vector in two ways: as an arrow you can draw, or as a short list of numbers you can compute with. Linear algebra is the art of moving between the two pictures, and it scales from two numbers to the thousands of node voltages in a chip.
Play
- and are vectors in the plane, set by their components. The third arrow is , drawn tip to tail; the fourth is .
- Change through negative values. What does a negative multiple do to the arrow?
- Make and point at right angles. What is their dot product in the strip?
Predict
and . What is the angle between them?
90°. Their dot product is , and a zero dot product means perpendicular. The dot product is the quickest test for right angles, and in higher dimensions, where you can't draw the arrows, it's the only one.
Name it
Vectors, components and the dot product
A vector in the plane is written as a column of its components, , or as . In three dimensions it has three components, and nothing stops you from having : a circuit with 50 nodes has a vector of 50 node voltages.
Arithmetic works component by component:
- Adding places arrows tip to tail: .
- Scaling by a number stretches the arrow: . A negative flips it.
- Length: , Pythagoras in any number of dimensions.
The dot product multiplies matching components and adds:
where θ is the angle between them. So it measures how much two vectors point the same way: positive if the angle is under 90°, zero if they're perpendicular, negative if over. The projection of onto the direction of has length .
In EE. The power in a resistor network is a dot product of the branch voltages with the branch currents; work is the dot product of force with displacement; and the average power of an AC load, , is a dot product of two phasors drawn as arrows.
Linear combinations. Every combination of two vectors that don't point along the same line reaches every point of the plane. Two such vectors form a basis: a pair of directions you can describe everything with.
Worked example
Find the angle between and .
Show the solution
- Dot product.
- Lengths. Both vectors have length 5: .
- Cosine of the angle. so .
Answer the angle between them is 16.3°.
Worked example
A force of N moves an object by m. How much work does it do?
Show the solution
- Work is a dot product. Take the dot product of force and displacement:
- Which part counts. Only the force's component along the motion counts; the 4 N pushing sideways does no work.
Answer the force does 6 J of work.
Worked example
Split into a part along and a part perpendicular to it.
Show the solution
- Dot product.
- Component along . With :
- Part along .
- Perpendicular part. The rest is
- Check. so the second part really is perpendicular.
- Where this split is used. It's how a force is resolved along a ramp and across it, and how a signal is resolved into the part that matches a reference and the part that doesn't.
Answer the part along is and the perpendicular part is .
Check
What is ?
Check
What is the length of ?
Check
What is the angle between and , in degrees?
Check
Two vectors have a dot product of −6. What can you say about the angle between them?
Check
Take and .
(a)
What is ?
(b)
What is ?
Check
Find the angle between and .
Step 1
What is the dot product?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
Divide by both lengths. What is ?
Explain why
Why does a zero dot product mean two vectors are perpendicular?
The dot product equals the product of the two lengths times the cosine of the angle between them. If neither vector is zero, the lengths are positive, so the dot product can only be zero if the cosine is zero, which happens at exactly 90°. Geometrically, the dot product measures how much of one vector lies along the other, and a perpendicular vector has no part along it at all.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.