Imagine you are Galileo's assistant. You have gone to the leaning tower of Pisa to test whether objects with different masses fall at different speeds. As you release an object you start a timer so that at $t = 0$ the downward velocity is also zero.
You know from Newton's equations (though Newton hadn't written them at this point) that $s=ut+\dfrac{1}{2}at^2$. We know $u=0$ and that $a$ is the acceleration due to gravity so we can write $s=\dfrac{1}{2}gt^2$.
Note: We are measuring downwards from the release point.
Newton's first equation of motion states $v=u+at$ so we can write $v=gt$. The acceleration due to gravity $g$ is constant over these distances so the velocity is proportional to the time. Time $t$ is the independent variable and distance $s$ is the dependent variable.
$s=\dfrac{1}{2}gt^2$
$v=gt$
We can be pretty sure that distance and velocity are related. The question is how? Start with $s=\dfrac{1}{2}gt^2$. To convert $s=\dfrac{1}{2}gt^2$ into $gt$ we need multiply the expression by the exponent of $t$ and then reduce the exponent by $1$.
The process has given us the rate of change of distance with respect to time, $s$ with respect to $t$, which is the velocity. If we repeat the process we get the rate of change of velocity with respect to time, $v$ with respect to $t$, which is $g$ the acceleration.
Velocity is the rate of change of position. Acceleration is the rate of change of velocity.
The process is called differentiation. In this case it has given us velocity and acceleration. In general, differentiation gives us the rate of change of one variable with respect to another.
If $y=ax^n + bx^{n-1} + cx^{n-2} . . . $ then $\dfrac{dy}{dx} = nax^{n-1} + (n - 1)bx^{n-2} + (n - 2)cx^{n-3} . . . $
Example 1 | ||
Given $y=2x^3 + 4x^2 + 3x + 5$ find $dy / dx $ | ||
$y$ | $=$ | $ 2x^3 + 4x^2 + 3x + 5 $ |
$ \dfrac{dy}{dx}$ | $=$ | $ 3 \times 2x^2 + 2.4x + 3 + 0 $ |
$=$ | $ 6x^2 + 8x + 3 $ |
If $y=y(u)$ and $u=u(x)$ then $\dfrac{dy}{dx} = \dfrac{dy}{du} \dfrac{du}{dx}$
Example 2 | ||
Given $y=(2x^3+4x^2)^4$ find $dy / dx $. | ||
Let $u=2x^3+4x^2$ | ||
so $y=u^4$ | ||
then $\dfrac{dy}{du}=4u^3$ | ||
and $\dfrac{du}{dx}=6x^2+8x$ | ||
$\dfrac{dy}{du}\dfrac{du}{dx}$ | $=$ | $ 4u^3 (6x^2 + 8x) $ |
$=$ | $ 4(2x^3+4x^2)^3 (6x^2 + 8x) $ | |
Sanity Check: As a quick sanity check look at the $x^3$ term in the question. If we expanded the bracket the highest order term would be $16x^{12}$. When we differentiate this term we would get $192x^{11}$. If we expand the highest order term in our answer we get $4 \times 8x^9 \times 6x^2 = 192x^{11}$ so we can have some confidence our answer is correct. |
Example 3 | ||
Differentiate $y=sin(3x)$. | ||
Let $u=3x$ | ||
then $\dfrac{du}{dx}=3$ | ||
and $y=sin(u)$ | ||
then $\dfrac{dy}{du}=cos(u)$ | ||
so $\dfrac{dy}{dx}=\dfrac{dy}{du} \dfrac{du}{dx} = cos(u) \times 3 = 3cos(3x)$ | ||
More generally $\dfrac{d}{dx} sin(ax) = acos(ax)$ | ||
Similarly $\dfrac{d}{dx} cos(ax) = -asin(ax)$ | ||
and $\dfrac{d}{dx} tan(ax) = a sec^2 (ax)$ |
If $u=u(x)$ and $v=v(x)$ then $\dfrac{d}{dx}(uv) = u \dfrac{dv}{dx} + v \dfrac{du}{dx}$
Example 4 | ||
Differentiate $y=3x^3 e^x $ | ||
Let $u=3x^3$ and $v=e^x$ | ||
then $\dfrac{du}{dx}=9x^2$ and $\dfrac{dv}{dx}=e^x$ | ||
$\dfrac{dy}{dx}$ | $=$ | $u\dfrac{dv}{dx} + v \dfrac{du}{dx}$ |
$=$ | $3x^3 \times e^x + e^x \times 9x^2$ | |
$=$ | $3x^2 \times e^x(x + 3)$ |
Example 5 | ||
Differentiate $y=3x^2 cos(4x) $ | ||
Let $u=3x^2$ and $v=cos(4x)$ | ||
then $ \dfrac{du}{dx}=6x$ and $ \dfrac{dv}{dx}=-4sin(4x) $ | ||
$\dfrac{dy}{dx}$ | $=$ | $u\dfrac{dv}{dx} + v \dfrac{du}{dx}$ |
$=$ | $3x^2(-4sin(4x)) + cos(4x) 6x $ | |
$=$ | $3x(2cos(4x)-4xsin(4x))$ |
If $u=u(x)$ and $v=v(x)$ then $\dfrac{d}{dx}(\dfrac{u}{v}) = \dfrac{v \dfrac{du}{dx} - u \dfrac{dv}{dx}}{v^2} $
Example 6 | ||
Differentiate $y = tan(x) $ | ||
Let $u=sin(x)$ and $v=cos(x)$ | ||
then $ \dfrac{du}{dx}=cos(x)$ and $ \dfrac{dv}{dx}=-sin(x) $ | ||
$\dfrac{d}{dx}(\dfrac{u}{v})$ | $=$ | $ \dfrac{v \dfrac{du}{dx} - u \dfrac{dv}{dx}}{v^2} $ |
$=$ | $\dfrac{cos(x)cos(x) - sin(x)(-sin(x))}{cos^2 (x)}$ | |
$=$ | $\dfrac{cos^2(x) + sin^2(x)}{cos^2 (x)} $ | |
Remember $ sin^2(x) + cos^2(x) = 1$ | ||
$=$ | $\dfrac{1}{cos^2 (x)} = sec^2 (x)$ |
Example 7 | ||
Given $y = \dfrac{4-3x}{2x-3} $ find $dy / dx $ | ||
Let $u=4-3x$ and $v=2x-3$ | ||
So $ \dfrac{du}{dx}=-3$ and $ \dfrac{dv}{dx}=2 $ | ||
$ \dfrac{d}{dx}(\dfrac{u}{v})$ | $=$ | $ \dfrac{v \dfrac{du}{dx} - u \dfrac{dv}{dx}}{v^2} $ |
$=$ | $ \dfrac{(2x-3)(-3) - (4-3x)2}{(2x-3)^2} $ | |
$=$ | $ \dfrac{-6x + 9 - 8 + 6x}{(2x-3)^2} $ | |
$=$ | $ \dfrac{1}{(2x-3)^2} $ |
Imagine you have a cylindrical container which is 5 metres in diameter and 10 metres tall. If liquid is pouring in to the container at a rate of 1000 litres per second what is the rate of change of depth?
The volume of liquid is given by $V = \pi r^2 y$ where $y$ is the depth of liquid.
$V$ | $=$ | $\pi r^2 y$ |
Differentiating both sides with respect to time $t$ we get | ||
$\dfrac{dV}{dt}$ | $=$ | $\pi r^2 \dfrac{dy}{dt}$ |
So the rate of change of depth is given by | ||
$\dfrac{dy}{dt}$ | $=$ | $\dfrac{1}{\pi r^2} \dfrac{dV}{dt}$ |
1000 litres | $=$ | 1 cubic metre so |
$\dfrac{dy}{dt}$ | $=$ | $\dfrac{1}{\pi r^2}$ |
$=$ | $0.051$ m/s or $51$ mm/s |
The radius of a cylinder is constant, it is not dependent on the depth of liquid. What would happen if we had a conical funnel instead of a cylinder?
Using the dimensions from above, imagine we have a conical vessel with a maximum diameter of 5 metres and a height of 10 metres. If the small end is downwards and liquid is pouring into the vessel at 1000 litres per second what is the rate of change of depth when the depth is 2 metres?
Unlike the case of the cylinder the radius of the top of the liquid varies with the depth of the liquid. This means we have to replace $r$ with $x$ where $x=f(y)$.
$V$ | $=$ | $\dfrac{\pi x^2 y}{3}$ |
From similar triangles we can see $x/y = r/h$ | ||
so $V$ | $=$ | $\dfrac{\pi r^2 y^3}{3h^2}$ |
Differentiating both sides with respect to time $t$ we get | ||
$\dfrac{dV}{dt}$ | $=$ | $\dfrac{\pi r^2y^2}{h^2} \dfrac{dy}{dt}$ |
So the rate of change of depth is given by | ||
$\dfrac{dy}{dt}$ | $=$ | $\dfrac{h^2}{\pi r^2 y^2} \dfrac{dV}{dt}$ |
1000 litres | $=$ | 1 cubic metre so |
$\dfrac{dy}{dt}$ | $=$ | $\dfrac{10^2}{\pi 2.5^2 2^2}$ |
$=$ | $1.27$ m/s |
In the following table the left hand column contains functions of $x$ ($y=f(x)$). The right hand column contains the differentials of the functions with respect to $x$ ($dy/dx=f'(x)$).
$y=f(x)$ | $dy/dx = f'(x)$ |
---|---|
$x^n$ | $nx^{n-1}$ |
$sin(ax)$ | $acos(ax)$ |
$cos(ax)$ | $-asin(ax)$ |
$tan(ax)$ | $asec^2(ax)$ |
$e^{ax}$ | $ae^{ax}$ |
$ln(ax)$ | $1/x$ |