Hint
We don't know what the function $f(x)$. Therefore, the expressions for $\diff{g}{x}$ and $\diff{h}{x}$ will depend on $\diff{f}{x}$.
Online, it's a little tricky to enter $\diff{f}{x}$. The command for the derivative is diff. To enter $\diff{f}{x}$, you have to think of it as the derivative of the function $f(x)$ with respect to the variable $x$. Putting this together, enter $\diff{f}{x}$ as diff(f(x),x). (It will show your answer as $\diff{}{x}f(x)$, but that's the same thing as $\diff{f}{x}$.)
If you need to enter an answer like $a \diff{f}{x}$, type it as a*diff(f(x),x).
Hide help