# A-level Mathematics/OCR/C3/Differentiation

Currently, the only functions that you are able to differentiate are relatively simple ones. We will now have a look at some more complicated functions and some new techniques to differentiate them.

## Differentiation Rules
### Derivatives of the Natural Functions

The natural functions have two special derivative that you need to memorize. The derivative $\operatorname {e} ^{x}$ is unique because its derivative is itself. If there is a constant in the index then the derivative will be multiplied by the constant. The derivative of $\ln x\,$ is important because any constant in front of x will be dropped in the derivative.
    ${\frac {d}{dx}}\operatorname {e} ^{kx}=k\operatorname {e} ^{kx}$
    ${\frac {d}{dx}}\ln x={\frac {1}{x}}$
    The derivative of an exponential function to any base is: ${\frac {d}{dx}}\operatorname {a} ^{x}=\operatorname {a} ^{x}\ln(\operatorname {a} )$

#### Example

Find the derivative of $y=\operatorname {e} ^{6x}+\ln 5x$.
Using the rules we get:
${\frac {dy}{dx}}=6\operatorname {e} ^{6x}+{\frac {1}{x}}$
Remember: $\ln 5x=\ln 5+\ln x\,$, so ${\frac {d}{dx}}\ln 5x={\frac {d}{dx}}\ln 5+\ln x=0+{\frac {1}{x}}$.

### The Product Rule

The Product Rule states if $y=f\left(x\right)\cdot g\left(x\right)\,$ then ${\frac {dy}{dx}}=f'\left(x\right)g\left(x\right)+f\left(x\right)g'\left(x\right)$.

#### Example

Find the derivative of $y=x^{2}\cdot 18x$
${\frac {dy}{dx}}=2x\cdot 18x+x^{2}\cdot 18$
${\frac {dy}{dx}}=36x^{2}+18x^{2}$
${\frac {dy}{dx}}=54x^{2}$

### The Quotient Rule

The Quotient Rule states: If $y={\frac {f(x)}{g(x)}}$ then ${\frac {dy}{dx}}={\frac {f^{'}(x)g(x)-g^{'}(x)f(x)}{\left\{g(x)\right\}^{2}}}$.

#### Example

Find the derivative of $y={\frac {5x+3}{2x-1}}$.
${\frac {dy}{dx}}={\frac {5\times \left(2x-1\right)-\left(5x+3\right)\times 2}{\left\{2x-1\right\}^{2}}}$
${\frac {dy}{dx}}={\frac {10x-5-10x-6}{\left\{2x-1\right\}^{2}}}$
${\frac {dy}{dx}}={\frac {-11}{\left\{2x-1\right\}^{2}}}$

### The Chain Rule

The Chain Rule states: If $y=f[g(x)]\,$ then ${\frac {dy}{dx}}=f^{'}[g(x)]\cdot g^{'}(x)$.

#### Example

Find the derivative of $y=\left(2x^{2}-3\right)^{2}$
${\frac {dy}{dx}}=2\left(2x^{2}-3\right)4x$
${\frac {dy}{dx}}=8x\left(2x^{2}-3\right)$

### The Derivative of the Inverse Function

If we want the derivative of the inverse function we need to use the following rule: ${\frac {dy}{dx}}={\frac {1}{\frac {dx}{dy}}}\ if\ {\frac {dx}{dy}}\neq 0$.

#### Example

What is the derivative of the inverse of $f\left(x\right)={\frac {x-1}{x+2}}$ ?
Find the derivative of the original function using the quotient rule.
${\frac {dy}{dx}}={\frac {3}{(x+2)^{2}}}$
To find the derivative of the inverse we use the rule.
${\frac {dx}{dy}}={\frac {(x+2)^{2}}{3}}$

## Connected Rates of Change

Differentiation can be used for situations where you need to find the maximum or minimum value of a problem depending on variables that affect each other. Problems involving connected rates of changes are very diverse and are used in a lot of practical applications such as find the maximum volume of a box from the least amount of cardboard to calculating how long it will take a container to become filled. You will need to write out the problems algebraically and then use the first derivatives to find the maximum or minimum values. The general steps are:
* The first step is listing what we know and what shape we are dealing with.
* The second second step is to figure what we need to solve for.
** If the quantities are related solve for one variable in terms of the other.
* The third step is the set up the equation and differentiate with respect to the variable.
* Then input all the relevant knows into the equation.
* If any data is missing see if you can obtain it from an equation.
* Finish the problem.
* Write the answer.

### Example 1: Sliding Ladder

If a moving ladder (C) 6 metres long is leaning against a wall and the distance between the wall and the bottom of the ladder increases at a rate of 1.5 metres per second how fast is the top of the ladder moving down the wall when the bottom of the ladder is 3 metres from the wall?
* The first step is listing what we know and what shape we are dealing with.
** The shape is a triangle. So we will be using $a^{2}+b^{2}=c^{2}$.
** A = ? B = 3 ${\frac {db}{dt}}=1.5$ C = 6
* The second step is to figure what we need to solve for.
** ${\frac {da}{dt}}$
* The third step is the set up the equation and differentiate with respect to the variable. Which is time in this equation.
** $2a{\frac {da}{dt}}+2b{\frac {db}{dt}}=0{\frac {dc}{dt}}$
* Then input all the relevant knows into the equation.
** $a{\frac {da}{dt}}+3\times 1.5=0$
* If any data is missing see if you can obtain it from an equation.
** $a^{2}+3^{2}=6^{2}$
** $a=3{\sqrt {3}}$
* Finish the problem.
** $3{\sqrt {3}}{\frac {da}{dt}}+3\times 1.5=0$
** ${\frac {da}{dt}}=-{\frac {4.5}{3{\sqrt {3}}}}$
* When the bottom of the ladder is 3 metres away from the wall the top will be sliding down at a rate of $-{\frac {4.5}{3{\sqrt {3}}}}{\frac {metres}{s}}={\frac {\sqrt {3}}{2}}{\frac {metres}{s}}$.

### Example 2: Filling of a Conical Shape

If sand is being poured on the ground in a conical shape at a rate of 5 cubic centimetres a minute. The sand is piling up such that the radius of the pile is equal to the height of the pile. How fast is the radius growing when the sand pile has a volume of 9π cubic centimetres?
* The first step is listing what we know and what shape we are dealing with.
** The Shape is a cone. The Formula for the volume of a cone is $v={\frac {1}{3}}\pi r^{2}h$.
** V = 9π, ${\frac {dv}{dt}}=5$, r = h
* The second step is to figure what we need to solve for.
** ${\frac {dr}{dt}}$
* The third step is to set up the equation and differentiate with respect to time.
** $v={\frac {1}{3}}\pi r^{2}h$
** Since r = h we have $v={\frac {1}{3}}\pi r^{3}$
** ${\frac {dv}{dt}}=\pi r^{2}{\frac {dr}{dt}}$
* Then input all the relevant knowns into the equation.
** $5=\pi r^{2}{\frac {dr}{dt}}$
* If any data is missing see if you can obtain it from an equation.
** $9\pi ={\frac {1}{3}}\pi r^{3}$
** $r=3$
* Finish the problem.
** $5=\pi 3^{2}{\frac {dr}{dt}}$
** ${\frac {dr}{dt}}={\frac {5}{9\pi }}$
* When the volume is 9π $cm^{3}$ the radius will be growing at a rate of ${\frac {5}{9\pi }}{\frac {cm}{min}}$.

### Example 3: Maximum Area

Given a rope of 5 meters, what is the biggest area that it can engulf if it is shaped into a rectangle?
What have we got?
| $x+x+y+y=5$ | (1) | all sides added equals 5 |
| $a=x*y$ | (2) | a is the area of the rectangle |
Finding an expression for $y$:
* $2x+2y=5$
* $x+y={\frac {5}{2}}$
* $y={\frac {5}{2}}-x$
Finding an expression for the area that only depends on $x$:
* $a=x*y$
* $a=x*({\frac {5}{2}}-x)$
* $a=x*{\frac {5}{2}}-x^{2}$
Now, let $f(x)$ be the function for the area of the rectangle:
$f(x)={\frac {5}{2}}*x-x^{2}$
Find the derivative, $f'(x)$:
$f'(x)={\frac {5}{2}}-2x$
Finding $y$ when $x$ is ${\frac {5}{4}}$
| $2x+2y=5$ | (1) |
$2*{\frac {5}{4}}+2y=5$
$2y=5-{\frac {5}{2}}$
$2y={\frac {5}{2}}$
$y={\frac {5}{2}}*{\frac {1}{2}}$
$y={\frac {5}{4}}$
So, the optimal size of the rectangle is ${\frac {25}{16}}m^{2}$, with the length of all sides at ${\frac {5}{4}}m$.
This is part of the C3 (Core Mathematics 3) module of the A-level Mathematics text.
Algebraic Functions / Special Functions and Transformations / More Trigonometric Functions and Identities / Differentiation / Integration / Numerical Methods / Appendix A: Formulae