24: The last operation is subtraction and then multiplication by
The last operation in the first part is the logarithm
composed with an inside function.
Apply the chain rule.
The last operation in the second part is the arccos
composed with an inside function.
Apply the chain rule.
Alternative: A much smarter solution involves substitution. Take for y the expression that always comes with x, then start differentiating.