How to write basis vectors in Cartesian coordinates in terms of cylindrical coordinates?

832 Views Asked by At

Given a Cartesian coordinate system with basis vectors (ex, ey, ez)

and a Cylindrical coordinate system with basis vectors (er, eθ, ez)

Why and how does:

ex = erCos(θ) - eθSin(θ) ?

ey = erSin(θ) + eθCos(θ) ?

This is from a derivation of the del operator in cylindrical coordinates from my lecture notes.

I cannot for the life of me figure this out. Shouldn't ex = erCos(θ) and ey = erSin(θ)?

What is it with the extra Sin and Cos?

A simple, detailed derivation/ explanation would be very helpful.