I stumbled on this calculus problem here:
Let $f(x) = \ln|\sec x + \tan x|$ and $g(x) = \sec x + \tan x.$ Find the fourth derivative of $g(x)$ taken with respect to $f(x)$
A)$\\$ $f'(x)$
B)$\\$ $f'(x)g(x)$
C)$\\$ $g(x)$
D)$\\$ $g'(x)$
E)$\\$NOTA
The answer to the question was C
I understand how to find a function taken with respect with a derivative. For example, if I was trying to find the first derivative:
$$\frac{dg(x)}{df(x)} = \frac{dg(x)}{dx}*\frac{dx}{df(x)}$$
I would simply use the chain rule.
However, for subsequent derivatives, the two functions tend to get more messy, so I decided to look at the solution provided to see if there was an easier method.
Interestingly enough, the solution is:
The first derivative simplifies as follows:
$$\frac{d(g(x))}{d(f(x))} = \frac{d(g(x))}{dx}*\frac{dx}{d(f(x))} = \frac{\sec^2(x) + \sec(x)\tan(x)}{\sec(x)} = g(x)$$ Thus all higher order derivatives will produce the same result, and the answer is $g(x) =$ C.
Is this conclusion true for any function taken with respect with another function? If so, if anyone could point me to a proof that would be also appreciated.