### 13 - Linearity Rule for Differentiation - 2

Let $y=f\left(x\right)+g\left(x\right)$  , then

$\frac{dy}{dx}=\underset{h\to 0}{\mathrm{lim}}\frac{\left[f\left(x+h\right)+g\left(x+h\right)\right]-\left[f\left(x\right)+g\left(x\right)\right]}{h}$

$=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(x+h\right)-f\left(x\right)+g\left(x+h\right)-g\left(x\right)}{h}$

$=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(x+h\right)-f\left(x\right)}{h}+\frac{g\left(x+h\right)-g\left(x\right)}{h}$

$=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(x+h\right)-f\left(x\right)}{h}+\underset{h\to 0}{\mathrm{lim}}\frac{g\left(x+h\right)-g\left(x\right)}{h}$

$={f}^{\prime }\left(x\right)+{g}^{\prime }\left(x\right)$

Note that if we had $y=f\left(x\right)-g\left(x\right)$  , then we can consider it as $y=f\left(x\right)+\left(-g\left(x\right)\right)$   and we would have

$\frac{dy}{dx}=\frac{d}{dx}\left(f\left(x\right)\right)+\frac{d}{dx}\left(-g\left(x\right)\right)$

$=\frac{d}{dx}\left(f\left(x\right)\right)-\frac{d}{dx}\left(g\left(x\right)\right)$

$={f}^{\prime }\left(x\right)-{g}^{\prime }\left(x\right)$

We can combine both the cases to say that if $y=f\left(x\right)±g\left(x\right)$  , then $\frac{dy}{dx}={f}^{\prime }\left(x\right)±{g}^{\prime }\left(x\right)$

Basically what this says is that the derivative of the sum or difference of two functions is the sum or difference of the derivatives of the two functions. In fact, we can extend this statement to even three or more functions.

Here are some straight forward examples that employ this differentiation rule.

1. If $y={x}^{3}+{x}^{5}$  , then

$\frac{dy}{dx}=\frac{d}{dx}\left({x}^{3}+{x}^{5}\right)=\frac{d}{dx}\left({x}^{3}\right)+\frac{d}{dx}\left({x}^{5}\right)=3{x}^{2}+5{x}^{4}$

2. If $y={x}^{-3}+{x}^{3}$  , then

$\frac{dy}{dx}=\frac{d}{dx}\left({x}^{-3}+{x}^{3}\right)=\frac{d}{dx}\left({x}^{-3}\right)+\frac{d}{dx}\left({x}^{3}\right)=-3{x}^{-4}+3{x}^{2}$

3. If $y={x}^{2}+x+6$  , then $\frac{dy}{dx}=\frac{d}{dx}\left({x}^{2}+x+6\right)$

$=\frac{d}{dx}\left({x}^{2}\right)+\frac{d}{dx}\left(x\right)+\frac{d}{dx}\left(6\right)$

$=2x+1+0$

$=2x+1$

4. If $y=3{x}^{2}+5x+8$  , then

$\frac{dy}{dx}=\frac{d}{dx}\left(3{x}^{2}\right)+\frac{d}{dx}\left(5x\right)+\frac{d}{dx}\left(8\right)$

$=3\frac{d}{dx}\left({x}^{2}\right)+5\frac{d}{dx}\left(x\right)+\frac{d}{dx}\left(8\right)$

$=3\left(2x\right)+5\left(1\right)+0$

$=6x+5$

5. If $y=5{x}^{3}-2{x}^{2}-3x+2$  , then

$\frac{dy}{dx}=\frac{d}{dx}\left(5{x}^{3}\right)-\frac{d}{dx}\left(2{x}^{2}\right)-\frac{d}{dx}\left(3x\right)+\frac{d}{dx}\left(2\right)$

$=5\frac{d}{dx}\left({x}^{3}\right)-2\frac{d}{dx}\left({x}^{2}\right)-3\frac{d}{dx}\left(x\right)+\frac{d}{dx}\left(2\right)$

$=5\left(3{x}^{2}\right)-2\left(2x\right)-3\left(1\right)+0$

$=15{x}^{2}-4x-3$