 # Differentiation

Differentiation is a method to find rates of change. Need for differentiation of a function arises quite often in mathematical, engineering and scientific problems. If the function has a closed-form representation in terms of standard calculus, then its derivative can be found exactly. However, in many situations, we may not know the exact function. What we know is only the values of the function at a discrete set of points. This section focuses on learning calculus and based on differentiation of functions of one variable.

Related Topics:

## Standard Derivatives

1. $\frac{d({{x}^{n}})}{dx}=n{{x}^{n-1}},\,\,x\in R,\,\,\,n\in R,\,\,\,\,x>0$
2. $\frac{d}{dx}{{e}^{x}}={{e}^{x}}$
3. $\frac{d{{a}^{x}}}{dx}={{a}^{x}}\,\ell na$
4. $\frac{d}{dx}\ell nx=\frac{1}{x}$
5. d/dx(sinx) = cosx
6. $\frac{d}{dx}(si{{n}^{-1}}x)=\frac{1}{\sqrt{1-{{x}^{2}}}}$.
7. $\frac{d}{dx}(co{{s}^{-1}}x)=\frac{-1}{\sqrt{1-{{x}^{2}}}}$

## Some Standard Substitution

### Expression Substitution

Simple tricks to solve complicated diffrential equations are listed here:

If function contains $\sqrt{{{a}^{2}}-{{x}^{2}}}$ ; then substitute x = a sinθ or x = a cosθ

If function contains $\sqrt{{{a}^{2}}+{{x}^{2}}}$ ; then substitute x = a cotθ or x = a tan θ

If function contains $\sqrt{{{x}^{2}}+{{a}^{2}}}$ ; then substitute x = a cosecθ or x = a sec θ

## Theorems of Derivatives

Find below some the important theorem results:

(a) d (f1 (x) $\pm$ f2(x)} = $\frac{d}{dx}{{f}_{1}}(x)\pm \frac{d}{dx}{{f}_{2}}(x)$

(b) $\frac{d}{dx}\left( k\,f(x) \right)=k\frac{d}{dx}(f(x)),\,\,where\,k\,is\,constant$

(c) $\frac{d}{dx}\left( {{f}_{1}}(x)f({{x}_{2}}) \right)={{f}_{1}}(x)\frac{d}{dx}{{f}_{2}}(x)+{{f}_{2}}(x)\frac{d}{dx}{{f}_{1}}(x)$

(d) $\frac{d}{dx}\left\{ \frac{{{f}_{1}}(x)}{{{f}_{2}}(x)} \right\}=\frac{f_2(x)f_{1}^{‘}(x)-f_1(x)f_{2}^{‘}(x)}{f_{2}^{2}(x)}$

Example 1: Find $\frac{dy}{dx}$for y = x sinx log x

Solution: ${{y}^{‘}}=1\times \sin x\times \log x+x\cos x\log x+x\sin x\times \frac{1}{x}=\sin x\,\log x+x\cos x\log x+\sin x$

Example 2: Find $\frac{dy}{dx}\,\,for\,y=\sin ({{x}^{2}}+1)$

Solution: ${{y}^{‘}}=\cos ({{x}^{2}}+1)\times 2x$

### Differentiation of Implict Function

In implicit differentiation, also known as Chain Rule, differentiate both sides of an equation with two given variables by considering one of the as a function of the second variable. In short, differentiate the given function with respect to x and solve for dy/dx. Let us have a look on some the examples.

Example 1: If x2 + 2xy + y3 = 4, find $\frac{dy}{dx}$

Solution: Differentiating both sides w.r.t. x, we get $\frac{d}{dx}({{x}^{2}})+2\frac{d}{dx}(xy)+\frac{d}{dx}({{y}^{3}})=\frac{d}{dx}(4)$ $=2x+2x\frac{dy}{dx}+2y+3{{y}^{2}}.\frac{dy}{dx}=0$ $\Rightarrow \frac{dy}{dx}=\frac{-2(x+y)}{(2x+3{{y}^{2}})}$

Example 2: Differentiable log sin x w.r.t $\sqrt{\cos x}$

Solution: Let u = log sin x  and v = $\sqrt{\cos x}$ $\frac{du}{dx}=\cot x\,\,\,\,\,\,\,\,\,\,\,\,\,\,\And \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\frac{dv}{dx}=\frac{-\sin x}{2\sqrt{\cos }}$ $\frac{du}{dx}=\frac{du/dx}{dv/dx}=\frac{\cot x}{\frac{-\sin x}{2\sqrt{\cos x}}}=-2\sqrt{\cos }\cot x\cos ec(x)$

### Higher order Derivatives

Differentiation process can be continued upto nth derivation of a function. Usually we deal with first order and second order derivatives of the functions.

$\frac{dy}{dx}$ is the first derivative of y w.r.t x

$\frac{d^2y}{dx^2}$ is the second derivative of y w.r.t x

Similarly, finding the third, fourth, fifth and successive derivatives of any function, say g(x), which are known as higher-order derivatives of g(x).
nth order derivative numerical notation is g^n(x) or $\frac{d^ny}{dx^n}$

Example: If $y={{e}^{{{\tan }^{-1}}x}},then\,prove\,that\,(1+{{x}^{2}})\frac{{{d}^{2}}y}{d{{x}^{2}}}=(1-2x)\frac{dy}{dx}$

Solution: $y={{e}^{{{\tan }^{-1}}x}}\Rightarrow \frac{dy}{dx}=\frac{{{d}^{{{\tan }^{-1}}}}x}{1+{{x}^{2}}}$ $\frac{{{d}^{2}}y}{d{{x}^{2}}}=\frac{(1-2x){{e}^{ta{{n}^{-1}}x}}}{{{(1+{{x}^{2}})}^{2}}}$

Again,

$\frac{{{d}^{2}}y}{d{{x}^{2}}}=(1+{{x}^{2}})=(1-2x)\frac{dy}{dx}$