Example 3.1.1.
Find the derivative of \(\sin x\) using first principle.
Solution.
Let \(f(x) = \sin x \) then,
\begin{align*}
f'(x) \amp = \lim_{h \to 0} \frac{f(x+h)-f(x)}{h}\\
\amp = \lim_{h \to 0} \frac{\sin (x+h)-\sin (x)}{h}\\
\amp = \lim_{h \to 0} \frac{2\cos\frac{(x+h+x)}{2}\cdot \sin\frac{(x+h-x)}{2} }{h}
\end{align*}
\begin{align*}
\amp = \lim_{h \to 0} \frac{2\cos\frac{(2x+h)}{2}\cdot \sin\frac{(h)}{2} }{\frac{h}{2}\times 2}\\
\amp = \lim_{h \to 0} \frac{2\cos\left(\frac{2x+h}{2}\right)}{2} \cdot \lim_{h \to 0}\frac{\sin\left(\frac{h}{2}\right) }{\left(\frac{h}{2}\right)}\\
\amp = \cos \frac{2x}{2}\times 1 \\
\therefore \, f'(x) \amp = \cos x
\end{align*}
