Trying to derive a trigonometric function, Wolfram Alpha and my textbook provide two different answers. Here is the function:
$$y = {\cot x\over (1+\csc x)}$$
First step using quotient rule results in :
$${dy\over dx}={-\csc^2x(1+\csc x) - \cot x(-\csc x \cot x)\over (1+\csc x)^2}$$
from there I broke it into a difference of derivatives:
$$={-\csc x(1+\csc x)\over (1+\csc x)^2}+{\cot x(\csc x \cot x)\over (1+\csc x)^2}$$
The solution provided by my text book says the solution is what the first rational expression in the previous difference simplifies to:
$$= {-\csc x\over 1+\csc x}$$
So, am I just missing how $\dfrac{\cot x(\csc x \cot x)}{ (1+\csc x)^2}$ goes to null?
Thanks for the help!
The quotient rule states that : $$ \cfrac{d }{dx}\left(\cfrac{u}{v}\right) = \cfrac{ u'v - uv'}{v^2} $$ So, by using quotient rule in $y = \cfrac{\cot x}{ ( 1+\csc x)^2} $ gives : $$\cfrac{-\csc^2 x \left( 1 + \csc x \right)^2 - \cot x \left( 2 \left(1 + \csc x\right) \times \left(- \csc x \cot x \right)\right)}{(1 +\csc x)^4}\\$$ Take (1 + csc x) common
$$\implies \cfrac{\left(1 + \csc x\right) ( -\csc^2 x (1+\csc x) + 2\cot^2 x \csc x}{(1+\csc x)^4} \\ \implies \cfrac{(-\csc^2 x (1+\csc x) + 2\cot^2 x \csc x}{(1+\csc x)^3} $$
Now take $ -\csc x$ common, you get :
$$\cfrac{-\csc x(\csc x + csc^2 x - 2\cot^2 x}{(1+\csc x)^3} \\ \cfrac{-\csc x(\csc x + \color{blue}{\left(1+ \cot^2 x\right)} - 2\cot^2 x}{(1+\csc x)^3} \\ \text{Since : } \space \boxed{\csc^2 x = 1+ \cot^2 x} \\ \cfrac{-\csc x( \csc x - \cot^2 x + 1)}{(1+\csc x)^3} $$