A71 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 c𝐯.
  • Change c 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

𝐯=(2,1) and 𝐰=(−1,2). What is the angle between them?

Name it

Vectors, components and the dot product

A vector in the plane is written as a column of its components, 𝐯=[v1v2], or as (v1,v2). In three dimensions it has three components, and nothing stops you from having n: a circuit with 50 nodes has a vector of 50 node voltages.

Arithmetic works component by component:

  • Adding places arrows tip to tail: 𝐯+𝐰=(v1+w1,v2+w2).
  • Scaling by a number c stretches the arrow: c𝐯=(cv1,cv2). A negative c flips it.
  • Length: |𝐯|=v12+v22+⋯, Pythagoras in any number of dimensions.

The dot product multiplies matching components and adds:

𝐯⋅𝐰=v1w1+v2w2+⋯=|𝐯||𝐰|cos⁡θ

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, 12VmImcos⁡θ, is a dot product of two phasors drawn as arrows.

Linear combinations. Every combination a𝐯+b𝐰 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 𝐯=(3,4) and 𝐰=(4,3).

Show the solution
  1. Dot product. 𝐯⋅𝐰=12+12=24
  2. Lengths. Both vectors have length 5: |𝐯|=|𝐰|=5.
  3. Cosine of the angle. cos⁡θ=2425=0.96 so θ=16.3°.

Answer the angle between them is 16.3°.

Worked example

A force of (3,4) N moves an object by (2,0) m. How much work does it do?

Show the solution
  1. Work is a dot product. Take the dot product of force and displacement: W=3×2+4×0=6J
  2. 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 𝐯=(2,3,6) into a part along 𝐰=(1,2,2) and a part perpendicular to it.

Show the solution
  1. Dot product. 𝐯⋅𝐰=2+6+12=20
  2. Component along 𝐰. With |𝐰|=3: 𝐯⋅𝐰|𝐰|=203=6.67
  3. Part along 𝐰. 𝐯⋅𝐰𝐰⋅𝐰𝐰=209(1,2,2)=(2.22,4.44,4.44)
  4. Perpendicular part. The rest is (2,3,6)−(2.22,4.44,4.44)=(−0.22,−1.44,1.56)
  5. Check. (−0.22)(1)+(−1.44)(2)+(1.56)(2)=0 so the second part really is perpendicular.
  6. 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 (2.22,4.44,4.44) and the perpendicular part is (−0.22,−1.44,1.56).

Check

What is (−1,2)⋅(3,4)?

Check

What is the length of (4,1,7)?

Check

What is the angle between (3,2) and (4,5), in degrees?

Check

Two vectors have a dot product of −6. What can you say about the angle between them?

Check

Take 𝐯=(3,1,2) and 𝐰=(1,1,2).

(a)

What is 𝐯⋅𝐰?

(b)

What is |𝐯|?

Check

Find the angle between (x,y) and (1,0).

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°.

Explain why

Why does a zero dot product mean two vectors are perpendicular?

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.