# A-level Mathematics/OCR/C3/Differentiation

< A-level Mathematics‎ | OCR‎ | C3

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\cdot18x+x^2\cdot18$

$\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)\times2}{\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} \ne 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:

1. The first step is listing what we know and what shape we are dealing with.
2. The second second step is to figure what we need to solve for.
1. If the quantities are related solve for one variable in terms of the other.
3. The third step is the set up the equation and differentiate with respect to the variable.
4. Then input all the relevant knows into the equation.
5. If any data is missing see if you can obtain it from an equation.
6. Finish the problem.

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?

1. The first step is listing what we know and what shape we are dealing with.
1. The shape is a triangle. So we will be using $a^2 + b^2 = c^2$.
2. A = ? B = 3 $\frac{db}{dt} = 1.5$ C = 6
2. The second second step is to figure what we need to solve for.
1. $\frac{da}{dt}$
3. The third step is the set up the equation and differentiate with respect to the variable. Which is time in this equation.
1. $2a\frac{da}{dt} + 2b\frac{db}{dt} = 0\frac{dc}{dt}$
4. Then input all the relevant knows into the equation.
1. $a\frac{da}{dt} + 3\times1.5 = 0$
5. If any data is missing see if you can obtain it from an equation.
1. $a^2 + 3^2 = 6^2$
2. $a = 3\sqrt{3}$
6. Finish the problem.
1. $3\sqrt{3}\frac{da}{dt} + 3\times1.5 = 0$
2. $\frac{da}{dt} = - \frac{4.5}{3\sqrt{3}}$
7. 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?

1. The first step is listing what we know and what shape we are dealing with.
1. The Shape is a cone. The Formula for the volume of a cone is $v = \frac{1}{3}\pi r^2h$.
2. V = 9π, $\frac{dv}{dt}=5$, r = h
2. The second step is to figure what we need to solve for.
1. $\frac{dr}{dt}$
3. The third step is to set up the equation and differentiate with respect to time.
1. $v = \frac{1}{3}\pi r^2h$
2. Since r = h we have $v = \frac{1}{3}\pi r^3$
3. $\frac{dv}{dt} = \pi r^2 \frac{dr}{dt}$
4. Then input all the relevant knowns into the equation.
1. $5 = \pi r^2 \frac{dr}{dt}$
5. If any data is missing see if you can obtain it from an equation.
1. $9\pi = \frac{1}{3}\pi r^3$
2. $r = 3$
6. Finish the problem.
1. $5 = \pi 3^2 \frac{dr}{dt}$
2. $\frac{dr}{dt} = \frac{5}{9\pi}$
7. 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.