Vectors and Polar Coordinates

A casual walkthrough of university-level vector concepts — cross products, the BAC-CAB rule, and coordinate transformation matrices — with encouragement to derive it yourself!

Chapter 1. Vector

Vectors — well, we’ve been doing them non-stop since high school math class, so there shouldn’t be anything difficult! The first thing that was different from high school vectors when I got to university was probably the cross product?

After learning the cross product, the thing they taught us going “bam~~~ you guys have to memorize this^^” was the BAC-CAB rule.

Equation from the original notes

First of all, if you do the vector triple product, the result is? A vector! Why? If you’ve learned the cross product, you’ll know…

And this thing above is something people memorize like a formula called the BAC-CAB rule, but why is this kind of equation written down?!

I think it’s a good practice to derive it yourself to find out why it turns out that way. Keep the parentheses, though: the cross product isn’t associative!

A quick sign check: take $\mathbf A=(1,0,0)$, $\mathbf B=(0,1,0)$, and $\mathbf C=(1,1,0)$. Then $\mathbf B\times\mathbf C=(0,0,-1)$ and $\mathbf A\times(\mathbf B\times\mathbf C)=(0,1,0)$. The BAC-CAB side is also $\mathbf B(\mathbf A\cdot\mathbf C)-\mathbf C(\mathbf A\cdot\mathbf B)=\mathbf B$. So it passes this check. Expanding the components gives the identity for general vectors.

Coordinate transformation matrix

Then, next! A coordinate transformation matrix!! Here we’re using two orthonormal Cartesian bases with the same origin. We’re describing the same vector with new axes — a passive change of components. With these assumptions, dotting with a new unit basis vector really does extract its signed component.

For this kind of concept please refer to ‘Linear algebra that I studied’, and for people who came here for general mechanics, I’ll do it like a textbook does…

First, let’s express the ‘same vector’ using each of the ‘basis vectors of different coordinate systems’. And then let’s look for the relationship between the two coordinate systems.

The same vector represented in black Cartesian axes and a second Cartesian basis

If we express vector A in the basis of the Oxyz (black) coordinate system, it will be vector A = A_x i-hat + A_y j-hat + A_z k-hat, right?

Now then, we need to head toward Ox’y’z’! Let’s find A_x'. If we take the dot product (projection) of vector A with the unit vector i’ of the x’ axis, won’t A_x' come out?

Read the next three components as signed numbers: $A_{x'}=\mathbf A\cdot\hat{\mathbf i}'$, and similarly for $y'$ and $z'$. The vertical bars in the original pictures must not be read as absolute values; a projection can be negative. Also, the stray $=\mathbf A$ in the first line should be omitted, as the footer notes.

Equation from the original notes

By the same principle,

Equation from the original notes

Equation from the original notes

Just expressing the 3 equations listed above in matrix form, I think even a high school junior could do it! Because they learn matrices in 11th grade? So let’s just rewrite the 3 equations above in matrix form.

Equation from the original notes

Well… too easy, right? If I add just a little bit more,

And rotated Cartesian axes separated by angle theta

Then through the principle above, the coordinate rotation matrix that rotates the coordinate system by theta~

Equation from the original notes

For a counterclockwise rotation of the axes by $\theta$, the displayed matrix gives $A_{x'}=A_x\cos\theta+A_y\sin\theta$ and $A_{y'}=-A_x\sin\theta+A_y\cos\theta$. At $\theta=\pi/2$, the vector with old components $(3,4)$ has new components $(4,-3)$. Its length is still 5! Rotating the vector while keeping the axes fixed uses the opposite sign convention.

The reason this comes out is precisely

Equation from the original notes

because of this — you can see through it too.

It’s so easy that I wonder why I’m even bothering to write it, hehe. From here on it gets a little more interesting lol, because they don’t teach it in high school! hehe

Polar coordinate system (polar coordinate)

The Cartesian coordinate system (rectangular coordinate system) is just — perfectly~~~ somehow nice lol — but sometimes, using it makes things incre~~dibly complicated. At those times, escaping that coordinate system can make things easier, quite often!!

(Hydrogen is a good motivation: its Coulomb potential depends on distance from the nucleus, so spherical coordinates expose the symmetry and make separation of variables natural. Cartesian coordinates are still valid; they just make that symmetry harder to see. Choosing convenient coordinates can save us a lot of pain, hehe.)

So now we have to throw away the x axis and y axis that we’ve believed in almost like a religion… T_T

Before we properly dive in, I’ll remind you that originally “coordinates” meant expressing “the coefficients multiplied onto the basis vectors” as an “ordered pair.” Rather than saying (2,3) is 2 in x and 3 in y, it would be more correct to say we write the ordered pair (2,3) because of this: 2 i-hat + 3 j-hat

Now using a polar coordinate system means changing the basis vectors, and since those coefficients are also different from the original, the numbers to write inside ( , ) will change too. (One distinction to keep straight: a point in polar coordinates is located by its radius and angle, $(r, \theta)$, while a vector is written in the local basis $\hat r, \hat\theta$ at that point. The position vector, for example, is $r\hat r$, with components $(r, 0)$; $\theta$ is not its $\hat\theta$ component.)

So to roughly see how the basis vectors of the rectangular coordinate system and the basis vectors of polar coordinates are different, first

Equation from the original notes

Equation from the original notes

The polar coordinate system (polar coordinate) does not have a fixed basis. This means the basis keeps changing…

Right now this might not sink in for us, who are so overly familiar with the x, y, z coordinate system. Let’s make it understandable in one shot with a picture.

Vectors A, B, and C described using the same Cartesian basis

The basis vectors i, j that describe vectors A, B, C are still the same…! Now look at polar coordinates.

Vectors with different local radial and tangential basis directions

The direction of the vectors representing r-hat, and the direction of the vectors representing theta-hat — they’re different for each vector. It means when expressing this vector or that vector, the basis is different. OK.

It might seem like I’m making things more confusing, but why did I bother to say this?

When looking at velocity and acceleration in the polar coordinate system, I thought it might be confusing without the above mention. If you’re not confused, you can ignore it!

Anyway, now, in order to describe velocity, acceleration, etc. in the polar coordinate system, we’re going to differentiate the position vector with respect to time once, and then take the second derivative right after that.

In the polar coordinate system, the position vector is vector r = r r-hat.

(Here r will just be a number, and r-hat is the direction vector.)

Now let’s differentiate this with respect to time. We’re working in a plane with a fixed origin, $r>0$, and an angle $\theta$ measured counterclockwise in radians. At the origin the radial direction isn’t defined, so this local basis needs another chart there.

Equation from the original notes

Did it! — but in Cartesian, the derivative of the basis vector was 0… but as we saw above the story has changed now!! hehe, why? Because the basis vector is not always constant! So from now on, we have to deal with this guy: d(r-hat)/dt!

The unit vector representing the direction of r — if it were continu~~ously in the r direction, it wouldn’t change, but when a change occurs in the unit vector, the unit vector changed because it changed in the theta direction!!!!

Then, starting from the ‘direction’ of the change of r-hat, the change in the direction of that r-hat can be explained by the direction of theta-hat, and because its magnitude is like this,

Equation from the original notes

That finite-change picture is a small-angle approximation: $\Delta\hat r=\hat\theta\,\Delta\theta+O((\Delta\theta)^2)$. Divide by $\Delta t$ and take the limit to get the exact derivative:

Equation from the original notes

we can now describe d(r-hat)/dt like this.

In the same vein, theta-hat: for the unit vector representing this direction, the direction of change is minus r-hat. It’s this!!!!

Why minus?

Tangential unit vectors before and after a positive angular change

You get the feel at this point, right?

When theta is changing in the + direction, the direction of that change will be in the − r direction!

This might not sink in well right now,

The thick red change vector between the initial red and final blue tangential vectors

if we say that before the change is red, and after the change is blue, the “change of the vector” is the bold red one, right? So what I’m saying is that the vector representing the change of the theta-hat vector points toward the center.

Equation from the original notes

We can also check both signs directly: $\hat r=(\cos\theta,\sin\theta)$ and $\hat\theta=(-\sin\theta,\cos\theta)$. Differentiate with the chain rule to get $\dot{\hat r}=\dot\theta\hat\theta$ and $\dot{\hat\theta}=-\dot\theta\hat r$. There — the inward minus sign isn’t a new force; it’s how the basis turns!

So now let me shalalala write out the time derivative of the position vector!

Equation from the original notes

Done~~~ Let’s add some speed and move on to acceleration! (sry for the gag)

Equation from the original notes

Don’t memorize it as a mysterious formula~ The two changing-basis derivatives are what produce the extra terms!

The result in the picture is $\mathbf v=\dot r\hat r+r\dot\theta\hat\theta$ and $\mathbf a=(\ddot r-r\dot\theta^2)\hat r+(2\dot r\dot\theta+r\ddot\theta)\hat\theta$. For a circle of radius $2\,\mathrm m$ traversed at constant $\dot\theta=3\,\mathrm{s^{-1}}$, speed is $6\,\mathrm{m/s}$ and acceleration is $-18\hat r\,\mathrm{m/s^2}$. Constant speed still allows acceleration because the velocity direction changes.

So you get polar coordinates, but what I taught before was coordinate transformations, right?

Daaang, so in that case shouldn’t I also teach the matrix that transforms from rectangular to polar coordinates?

— you might ask back. There’s no single constant matrix that converts the point coordinates themselves: $x=r\cos\theta$ and $y=r\sin\theta$ are nonlinear. But their small changes are related by the Jacobian:

$$\begin{pmatrix}dx\\dy\end{pmatrix}=\begin{pmatrix}\cos\theta&-r\sin\theta\\\sin\theta&r\cos\theta\end{pmatrix}\begin{pmatrix}dr\\d\theta\end{pmatrix}.$$

That’s why the angle-change column has a factor of $r$: the same turn sweeps out more distance farther from the origin. It isn’t the same operation as writing a vector’s components in the two local unit directions.

Search for ‘Jacobian’ — yakobian/jakobian in Korean — too!!! There are plenty of good explanations out there, but if you’d like a separate post from me, ask and I’ll get writing, hehe.

Well then, bb2~


Heads-up. The figures here are the original notes, slips and all. A few things to watch for:

  • In the picture that expands $\vec A\cdot\hat i'$, the $= \vec A$ right after it is a slip: the line reads $\vec A\cdot\hat i' = (A_x\hat i + A_y\hat j + A_z\hat k)\cdot\hat i' = \dots$

  • The absolute-value bars on the primed component labels should be read as a notation slip. Dot products give signed components, which need not be positive.

For the moving-basis derivatives and polar acceleration, compare University of Illinois, Introductory Dynamics .

Questions or corrections?

Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.

Feedback goes to me privately by email; it is not posted as a public comment.