Differentiation is the opposite of Integration
$$\begin{align}\int \cos^2x dx\end{align}$$
$$\begin{align}-\frac{\cos^3x}{3\sin x}\end{align}$$
Now if we differentiate $-\frac{\cos^3x}{3\sin x}$ we should get $\cos^2x$. But I have always thought the differentiation goes like (and works out fine).
$$\begin{align}\frac{d}{dx}(-\frac{\cos^3x}{3\sin x})= \frac{-3 \cos^2x (\frac{d}{dx}\cos x)}{3\sin x}=\cos^2x\end{align}$$
And Tarda we get the answer as expected ($\cos^2x$). I normally never thought about it, but today this came to my mind. How come this isn't wrong. And it should be wrong I think. Why?
$$\begin{align}\frac{d}{dx}(-\frac{\cos^3x}{3\sin x})\end{align}$$
This is in the form $u/v$ , so we we need to use the chain rule/quotient rule, right? But here we havent used Quotient Rule which should be:
$$\begin{align}\frac{d}{dx}\frac{-\cos^3x}{3\sin x}=\frac{-9\sin x\cos^2x \sin x+3\cos^4x}{9\sin^2x}\end{align}$$
But Stilll even without using Quotient rule, I end u with the correct answer. Why is that ? we totally forget about the $3\sin x$ in denominator and differentiate only the top which is $-\cos^3x$ and still gets it right.