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

A7 · Lesson 48 · Change of basis

The same action, seen from a better angle

A motor drive measures three phase currents that swing back and forth 60 times a second, yet its control loop regulates two steady numbers. The trick is to describe the currents in a coordinate frame that spins along with the rotor's magnetic field. Seen from that spinning frame, the rotating current vector stands still, and AC becomes DC. That's a change of basis: the physics doesn't change, only the coordinates you describe it in. Picking the right basis is how hard problems become easy ones.

  • The current vector turns at ω = 1 (in units of the line frequency). The curves show its two coordinates in a frame turning at speed s.
  • At s=0 the frame stands still and you see the AC currents themselves. At s=1 the frame turns with the vector.
  • Set s to 1. What do the coordinates do? Now set it a little off 1.

Predict

A matrix A is rewritten in a new basis as B=M−1AM. Which of these stays the same?

Name it

Linear transformations

A linear transformation T takes vectors to vectors and respects combinations:

T(c𝐯+d𝐰)=cT(𝐯)+dT(𝐰)

Rotations, projections, stretches and derivatives are all linear. Choose a basis, record where T sends each basis vector as a column, and you have T's matrix in that basis.

For example, on polynomials of degree at most 2 with basis 1,x,x2, the derivative sends 1→0, x→1, x2→2x:

D=[010002000]

Change of basis

If the columns of M are a new basis, a vector with new coordinates 𝐜 is M𝐜 in the old ones, so 𝐜=M−1𝐯. A transformation with matrix A in the old basis has matrix

B=M−1AM

in the new one: convert to old coordinates, apply A, convert back. A and B are similar: same eigenvalues, trace, determinant and rank.

The best basis is usually the eigenvectors, where B=Λ is diagonal (lesson 34), or for a symmetric matrix the orthonormal eigenvectors, where M−1=MT.

The Park transform

After the Clarke transform (lesson 18), a balanced three-phase set is a vector (vα,vβ)=V(cos⁡θ,sin⁡θ) turning at the line frequency. Express it in a basis that rotates with angle θ:

[vdvq]=[cos⁡θsin⁡θ−sin⁡θcos⁡θ][vαvβ]

The result is constant. Field-oriented motor control and grid-tied inverters (S11, S12) regulate vd and vq with ordinary DC controllers.

Worked example

Find the matrix of T(𝐱)= reflection across the line y=x, in the standard basis and in the basis (1,1),(1,−1).

Show the solution
  1. Standard basis. (1,0)→(0,1) and (0,1)→(1,0), so A=[0110]
  2. New basis. (1,1) lies on the line and stays put; (1,−1) is perpendicular and flips. So B=[100−1]
  3. Compare. Same reflection, much simpler matrix, because the new basis is its eigenvectors.

Answer A=[0110] in the standard basis and B=[100−1] in the basis (1,1),(1,−1).

Worked example

A balanced set with peak 170 V leads the reference angle by 30°. What are vd and vq?

Show the solution
  1. The alpha-beta components. vα=170cos⁡(θ+30°)vβ=170sin⁡(θ+30°)
  2. Rotate by −θ. That removes θ, leaving vd=170cos⁡30°=147.2Vvq=170sin⁡30°=85V both constant.

Answer vd = 147.2 V and vq = 85 V, both constant.

Worked example

Find the matrix of differentiation on polynomials of degree at most 2, in the basis 1,x,x2.

Show the solution
  1. It has a matrix. Differentiation is linear, so it has a matrix, whose columns are the images of the basis.
  2. Images of the basis. ddx1=0,ddxx=1,ddxx2=2x
  3. In coordinates. D=[010002000]
  4. Its properties. Its null space is the constants and its rank is 2. Also, D3=0: differentiating a quadratic three times leaves nothing.

Answer D has rows (0,1,0), (0,0,2) and (0,0,0).

Check

In the basis 1,x,x2,x3, what is the entry of the derivative's matrix in row 2, column 3?

Check

The basis is (1,0) and (1,1). What is the first coordinate of 𝐯=(3,1) in it?

Check

A has trace 5 and determinant 6. What is the trace of M−1AM?

Check

A balanced three-phase set with peak 100 V leads the reference angle by 20°. What is vd?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

In the basis of its eigenvectors, what does the matrix of a projection onto a line in the plane look like?

Check

The vector turns at 1 rad/s and the frame at 1.1 rad/s. How long does the vector take to go once around, as seen from the frame?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

Check

T has matrix [2001] in the basis 𝐯1=(1,1), 𝐯2=(1,−1).

(a)

What is the x coordinate of T(1,0)?

(b)

And its y coordinate?

Check

Differentiate a+bx+cx2 using the matrix D in the basis 1,x,x2.

Step 1

What is the constant term of the result?

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 do similar matrices A and M−1AM have the same eigenvalues?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.