Question
Question: Differentiate \[\cos \left( {{x^2} + 1} \right)\] using the first principle of derivative....
Differentiate cos(x2+1) using the first principle of derivative.
Solution
In the above question, we are a trigonometric function that is cos(x2+1) . we have to differentiate the given trigonometric function using the first principle of derivative. The first principle of differentiation helps us evaluate the derivative of a function using limits. According to the first principle of derivative, the derivative of a function f(x) , that is f′(x) , is given in the form of limits by the formula:
⇒f′(x)=h→0limhf(x+h)−f(x)
In order to approach our solution, we have to use the above formula.
Complete step-by-step answer:
The trigonometric function is cos(x2+1) .
Let,
⇒f(x)=cos(x2+1)
We have to find the derivative of f(x) i.e. f′(x) .
According to the first principle of derivative, we have the equation
⇒f′(x)=h→0limhf(x+h)−f(x)
Since f(x)=cos(x2+1) , hence f(x+h)=cos((x+h)2+1)
Therefore we can write the above equation as,
⇒f′(x)=h→0limhcos((x+h)2+1)−cos(x2+1)
Hence, after expanding the square, we can write
⇒f′(x)=h→0limhcos((x2+1)+(2xh+h2))−cos(x2+1)
Using the identity cos(A+B)=cosAcosB−sinAsinB , we can also write it as,
⇒f′(x)=h→0limhcos(x2+1)cos(2xh+h2)−sin(x2+1)sin(2xh+h2)−cos(x2+1)
Taking common part aside, that gives,
⇒f′(x)=h→0limcos(x2+1)hcos(2xh+h2)−1−sin(x2+1)hsin(2xh+h2)
Multiplying and dividing by (2x+h) , we get
⇒f′(x)=h→0limcos(x2+1)h(2x+h)cosh(2x+h)−1(2x+h)−sin(x2+1)h(2x+h)sinh(2x+h)(2x+h) ...(1)
Now since we have,
⇒h→0limh(2x+h)cosh(2x+h)−1(2x+h)=t→0limtcost−1=0
And
⇒h→0limh(2x+h)sinh(2x+h)=t→0limtsint=1
Hence, putting these values in the equation (1) gives us
⇒f′(x)=h→0limcos(x2+1)h(2x+h)cosh(2x+h)−1(2x+h)−sin(x2+1)h(2x+h)sinh(2x+h)(2x+h)
Or,
⇒f′(x)=cos(x2+1)⋅0⋅(2x+0)−sin(x2+1)⋅1⋅(2x+0)
Hence,
⇒f′(x)=0−sin(x2+1)⋅2x
That gives us finally the derivative as,
⇒f′(x)=−sin(x2+1)⋅2x
That is the required derivative.
Therefore, the derivative of cos(x2+1) using the first principle of derivative is −sin(x2+1)⋅2x .
Note: Alternatively, we could have also found the derivative of cos(x2+1) using another well known method that is known as chain rule. It is much quicker and easier compared to the long method of the first principle of derivative.
According to the chain rule, the derivative of a function of the form y=f(g(x)) is given by,
⇒dxdy=dudy⋅dxdu
Where u=g(x) .