Solveeit Logo

Question

Question: How do you differentiate \(y=\dfrac{1}{\sin x}+\dfrac{1}{\cos x}\) ?...

How do you differentiate y=1sinx+1cosxy=\dfrac{1}{\sin x}+\dfrac{1}{\cos x} ?

Explanation

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-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-1.
This is because for any mathematical entity, 1x=x1\dfrac{1}{x}={{x}^{-1}}
1sinx+1cosx=(sinx)1+(cosx)1\Rightarrow \dfrac{1}{\sin x}+\dfrac{1}{\cos x}={{\left( \sin x \right)}^{-1}}+{{\left( \cos x \right)}^{-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.
dydx=ddx(sinx)1+ddx(cosx)1\dfrac{dy}{dx}=\dfrac{d}{dx}{{\left( \sin x \right)}^{-1}}+\dfrac{d}{dx}{{\left( \cos x \right)}^{-1}}
By the rules of basic differentiation, we know that ddxxn=nxx1\dfrac{d}{dx}{{x}^{n}}=n{{x}^{x-1}}. Using this for sine and cosine functions, we get
dydx=(1)(sinx)11.ddxsinx+(1)(cosx)11ddxcosx\Rightarrow \dfrac{dy}{dx}=\left( -1 \right){{\left( \sin x \right)}^{-1-1}}.\dfrac{d}{dx}\sin x+\left( -1 \right){{\left( \cos x \right)}^{-1-1}}\dfrac{d}{dx}\cos x
dydx=1sin2x.(cosx)1cos2x(sinx) dydx=sinxcos2xcosxsin2x \begin{aligned} & \Rightarrow \dfrac{dy}{dx}=\dfrac{-1}{{{\sin }^{2}}x}.\left( \cos x \right)-\dfrac{1}{{{\cos }^{2}}x}\left( -\sin x \right) \\\ & \Rightarrow \dfrac{dy}{dx}=\dfrac{\sin x}{{{\cos }^{2}}x}-\dfrac{\cos x}{{{\sin }^{2}}x} \\\ \end{aligned}
We will now substitute the values from basic trigonometry as sinxcosx=tanx\dfrac{\sin x}{\cos x}=\tan x, 1cosx=secx\dfrac{1}{\cos x}=\sec x, cosxsinx=cotx\dfrac{\cos x}{\sin x}=\cot x and 1sinx=cosecx\dfrac{1}{\sin x}=\cos ecx
dydx=sinxcosx.1cosxcosxsinx.1sinx\Rightarrow \dfrac{dy}{dx}=\dfrac{\sin x}{\cos x}.\dfrac{1}{\cos x}-\dfrac{\cos x}{\sin x}.\dfrac{1}{\sin x}
dydx=tanx.secxcotx.cosecx\Rightarrow \dfrac{dy}{dx}=\tan x.\sec x-\cot x.\cos ecx
Therefore, the derivative of y=1sinx+1cosxy=\dfrac{1}{\sin x}+\dfrac{1}{\cos x} is dydx=tanx.secxcotx.cosecx\dfrac{dy}{dx}=\tan x.\sec x-\cot x.\cos ecx.

Note: Another method of solving this problem is by initially converting 1sinx\dfrac{1}{\sin x} and 1cosx\dfrac{1}{\cos x} into cosecant and secant functions respectively. Then, we can simply differentiate the equation as it would convert to y=cosecx+secxy=\cos ecx+\sec x. However, in order to use this method, we must have prior knowledge of derivatives of cosecant and secant functions.