Question
Question: How do you differentiate \(y=\dfrac{1}{\sin x}+\dfrac{1}{\cos x}\) ?...
How do you differentiate y=sinx1+cosx1 ?
Solution
We are given a sum of two different trigonometric functions to be differentiated. Therefore, we must have prior knowledge of the derivatives of sine and cosine of a function. We also know that the derivatives of sine and cosine functions are different. Since, the trigonometric functions are in the denominator, therefore they will be first raised to power of −1 and then differentiated.
Complete step-by-step solution:
The sine and cosine functions are written in the denominators of the terms. In order to bring them up in the numerator, we must assign them a power of −1.
This is because for any mathematical entity, x1=x−1
⇒sinx1+cosx1=(sinx)−1+(cosx)−1
Now, we shall differentiate the modified equation using the chain rule of differentiation. According to this rule, we must start differentiating with the outermost functions like the power to which a function is raised. Then, we shall proceed step-by-step to the innermost functions like the angles of any trigonometric function which can be the function the any variable.
dxdy=dxd(sinx)−1+dxd(cosx)−1
By the rules of basic differentiation, we know that dxdxn=nxx−1. Using this for sine and cosine functions, we get
⇒dxdy=(−1)(sinx)−1−1.dxdsinx+(−1)(cosx)−1−1dxdcosx
⇒dxdy=sin2x−1.(cosx)−cos2x1(−sinx)⇒dxdy=cos2xsinx−sin2xcosx
We will now substitute the values from basic trigonometry as cosxsinx=tanx, cosx1=secx, sinxcosx=cotx and sinx1=cosecx
⇒dxdy=cosxsinx.cosx1−sinxcosx.sinx1
⇒dxdy=tanx.secx−cotx.cosecx
Therefore, the derivative of y=sinx1+cosx1 is dxdy=tanx.secx−cotx.cosecx.
Note: Another method of solving this problem is by initially converting sinx1 and cosx1 into cosecant and secant functions respectively. Then, we can simply differentiate the equation as it would convert to y=cosecx+secx. However, in order to use this method, we must have prior knowledge of derivatives of cosecant and secant functions.