Solveeit Logo

Question

Question: How do I find the derivative of the function \(y=\log \left( {{x}^{2}}+1 \right)\)?...

How do I find the derivative of the function y=log(x2+1)y=\log \left( {{x}^{2}}+1 \right)?

Explanation

Solution

We start solving the problem by assuming x2+1=z{{x}^{2}}+1=z and then differentiating both sides of the given function with respect to x. We then recall the chain rule of differentiation as d(g(f))dx=d(g)df×dfdx\dfrac{d\left( g\left( f \right) \right)}{dx}=\dfrac{d\left( g \right)}{df}\times \dfrac{df}{dx} to proceed through the problem. We then make use of the fact that d(logx)dx=1x\dfrac{d\left( \log x \right)}{dx}=\dfrac{1}{x} to proceed through the problem. We then make use of the facts that d(xn)dx=nxn1\dfrac{d\left( {{x}^{n}} \right)}{dx}=n{{x}^{n-1}}, d(a)dx=0\dfrac{d\left( a \right)}{dx}=0 to get the required answer for the derivative of the function.

Complete step by step answer:
According to the problem, we are asked to find the derivative of the function y=log(x2+1)y=\log \left( {{x}^{2}}+1 \right).
We have y=log(x2+1)y=\log \left( {{x}^{2}}+1 \right) ---(1).
Let us assume x2+1=z{{x}^{2}}+1=z. Let us substitute this in equation (1).
y=logz\Rightarrow y=\log z ---(2).
Let us differentiate both sides of the equation (2) with respect to x.
dydx=d(logz)dx\Rightarrow \dfrac{dy}{dx}=\dfrac{d\left( \log z \right)}{dx} ---(3).
From chain rule of differentiation, we know that d(g(f))dx=d(g)df×dfdx\dfrac{d\left( g\left( f \right) \right)}{dx}=\dfrac{d\left( g \right)}{df}\times \dfrac{df}{dx}. Let us substitute this result in equation (3).
dydx=d(logz)dz×dzdx\Rightarrow \dfrac{dy}{dx}=\dfrac{d\left( \log z \right)}{dz}\times \dfrac{dz}{dx} ---(4).
We know that d(logx)dx=1x\dfrac{d\left( \log x \right)}{dx}=\dfrac{1}{x}. Let us use this result in equation (4).
dydx=1z×dzdx\Rightarrow \dfrac{dy}{dx}=\dfrac{1}{z}\times \dfrac{dz}{dx} ---(5).
Now, let us substitute z=x2+1z={{x}^{2}}+1 in equation (5).
dydx=1(x2+1)×d(x2+1)dx\Rightarrow \dfrac{dy}{dx}=\dfrac{1}{\left( {{x}^{2}}+1 \right)}\times \dfrac{d\left( {{x}^{2}}+1 \right)}{dx} ---(6).
We know that d(xn)dx=nxn1\dfrac{d\left( {{x}^{n}} \right)}{dx}=n{{x}^{n-1}}, d(a)dx=0\dfrac{d\left( a \right)}{dx}=0. Let us use this result in equation (6).
dydx=1(x2+1)×2x\Rightarrow \dfrac{dy}{dx}=\dfrac{1}{\left( {{x}^{2}}+1 \right)}\times 2x.
dydx=2xx2+1\Rightarrow \dfrac{dy}{dx}=\dfrac{2x}{{{x}^{2}}+1}.
\therefore We have found the derivative of the function y=log(x2+1)y=\log \left( {{x}^{2}}+1 \right) as 2xx2+1\dfrac{2x}{{{x}^{2}}+1}.

Note:
Whenever we get this type of problem, we try to make use of chain rules to get a solution to the given problem. We should not forget to different x2+1{{x}^{2}}+1 after performing equation (5) which is the common mistake done by students. We can also solve this problem by making use of the fact that ddx(ln(f(x)))=d(f(x))dxf(x)\dfrac{d}{dx}\left( \ln \left( f\left( x \right) \right) \right)=\dfrac{\dfrac{d\left( f\left( x \right) \right)}{dx}}{f\left( x \right)} to get the required answer. Similarly, we can expect problems to find the derivative of the function y=cos(log(8x))y=\cos \left( \log \left( 8x \right) \right).