Do you just need to know how to use the chain rule?

You just take the derivative of the outer most function, and leave the inside alone. Then you multiply that by the derivative of the next to outer most function, then by the derivative of the next to next outer most function, and so on, until you can only multiply it by the derivative of x. Think of it like this: