Question
Question: Find the derivative of \(\dfrac{x+\cos x}{\text{tan}x}\)....
Find the derivative of tanxx+cosx.
Solution
Hint:To differentiate the function given is a question; we will have to use quotient rule of differentiation and sum rule of differentiation.
Complete step-by-step answer:
The function given in question for which we have to find derivative is in the form of g(x)f(x) where f(x)=x+cosx and g(x)=tanx . To differentiate a function of the form g(x)f(x) , we will use the quotient rule of differentiation. The quotient rule of differentiate says that the derivative of the function g(x)f(x) is calculated as shown below:
dxd[g(x)f(x)]=[g(x)]2g(x)(dxd[f(x)])−f(x)(dxd[g(x)]) .
In our question, we have to find the difference of tanxx+cosx . In our case, f(x)=x+cosx and g(x)=tanx .
Therefore, after applying quotient rule of differentiation, we get:
dxd(tanxx+cosx)=(tanx)2tanx[dxd(x+cosx)]−(x+cosx)[dxd(tanx)] …….(i)
In the equation (1), we have to find the derivative of terms (x+cosx) and (tanx) , the derivative of (x+cosx)can be calculated by sum rule of differentiate. The sum rule of differentiate says that the differentiation of the function f(x)=q(x)+r(x) is given as:
dxd[P(x)]=dxd[q(x)+r(x)]=dxd[q(x)]+dxd[r(x)] .
Using the above rule, the differentiation of (x+cosx) will be:
dxd[x+cosx]=dxd[x]+dxd[cosx] .
Now, we know that dxd[x]=1 and dxd[cosx]=−sinx. we will put these values in above equation. After doing this we will get:
dxd[x+cosx]=1−sinx.......(ii)
We also know that dxd[tanx]=sec2x...........(iii)
Now, we will put the value of required derivatives from equation (ii) and (iii) into equation (i). After doing this we will get:
⇒dxd[tanxx+cosx]=tan2xtanx[1−sinx]−(x+cosx)(sec2x) .
We can also write the above equation as:
⇒dxd[tanxx+cosx]=tanx(1−sinx)−tan2x(x+cosx)(sec2x) .
⇒dxd[tanxx+cosx]=cotx−cosx−tan2xxsec2x−tan2xsecx .
⇒dxd[tanxx+cosx]=cotx−cosx−xcosec2x−cotxcosecx .
Hence, this is our required solution.
Note: We have calculated a general function of the derivative of (tanxx+cosx) . If we will put different values of x as the above calculated derivative, we will get the values of the derivative at particular points. The important thing to note here is that the function (tanxx+cosx) does not exist when tanx=0 i.e. x=nπ. Thus, at the values of nπ , this function is not differentiable.