Question
Question: What is the derivative of \(-\cos \left( x \right).\ln \left( \sec \left( x \right)+\tan \left( x \r...
What is the derivative of −cos(x).ln(sec(x)+tan(x))?
Solution
We need to find the derivative of the function given. Since it is not a general function but a product of two functions with composition involved, we will use several properties of derivatives such as the chain rule and the product rule. We will first use product rule and then for the second function which is the composition of logarithmic and secant tangent function, we will use chain rule.
Complete step-by-step answer:
We are given the product of two functions. We will apply product rule, which states that for any two continuous function f(x) and g(x), the derivative of their product is as follows:
dxd(f(x)g(x))=f(x)dxdg(x)+dxdf(x)g(x)
Before putting the values of f(x) and g(x) in this, we will first find the derivatives of both the functions so that it becomes easier for us to substitute values afterwards.
We have:
f(x)=−cos(x)
So, we have:
dxd(f(x))=dxd(−cos(x))=dx−d(cos(x))=−(−sin(x))=sin(x)
Now, we find the derivative of g(x) where:
g(x)=ln(sec(x)+tan(x))
We can also say that
g(x)=ln(h(x))
h(x)=(sec(x)+tan(x))
So, we apply chain rule now:
dxd(g(x))=dhdg×dxdh=h1×(sec(x)tan(x)+sec2(x))
Plugging the value of h(x) in this we obtain:
dxd(g(x))=sec(x)+tan(x)1×(sec(x)(tan(x)+sec(x)))=sec(x)
Now, we put these in the product rule and we obtain the following:
dxd(f(x)g(x))=−cos(x)sec(x)+sin(x)ln(sec(x)+tan(x))
Now, since
cos(x)×sec(x)=1
We get:
dxd(f(x)g(x))=−1+sin(x)ln(sec(x)+tan(x))
Hence, we have found the derivative of the function provided.
Note: Do not mix product rule and chain rule. While applying the formula for chain rule, do not forget to differentiate till the last function. Most often, we forget to add a negative sign in the expression as well, which leads to an incorrect result. So, be very careful while calculating the derivative of any complex function involving composition or multiplication.