Chapter 2 DifferentialCalc 2024
Chapter 2 DifferentialCalc 2024
Chapter 2 DifferentialCalc 2024
Calculus by definition is a study of small thing. What small thing ? We will look at this
in a short while.
Now suppose we want to find the gradient of a tangent line to a curve given by
y = f(x) ( Fig 1 )
Fig 1
Suppose P(x,f(x)) is the point on the curve where we are supposed to find the
gradient of the tangent line. We pick another point P1 on the curve and draw a line
joining P and P1 . This line is known as secant line . Suppose P1 has coordinate
( x+h, f(x+h)) . The gradient of this secant line is
f (x + h) _ f (x)
msec = . Now as h → 0 the point P1 will move closer and
h
closer to P. At the same time the secant line will approach the tangent line at P .
Thus the gradient of the secant line ( msec ) will approach the gradient of the tangent
line ( mtan ).
f (x + h) _ f (x)
Mathematically we write lim msec = lim = mtan .
h→0 h→0 h
This mtan is also known as the derivative of f(x) and oftenly denoted as f ‘(x).
dy
If y = f(x) then f ‘(x) is also written as . The d means difference in y and x .
dx
So as you can see the study of small thing is actually refers to h → 0 i.e becomes
smaller and smaller.
1
2.2 First Principle Formula
Definition
f (x + h) _ f (x)
f ' (x) = lim .
h→0 h
The above formula is also known as First Principle Formula. This process of
finding derivative is commonly known as “differentiation”.
Example 1
Solution
2
Example 2
1
Find f ‘(x) if f(x) =
x2
Solution
As you can see finding f ‘(x) every time using the First Principle Formula is
rather laborious. Instead mathematicians have worked out most of the f ‘(x) using
the formula and put it into a table for the benefit of most scientists and engineers.
Example 3
4
Find the value of the gradient of the tangent line for f (x) = at x = 2.
x3
Solution
3
2.3 Rules of Derivatives
In many applications one works with a mixture of functions, not just single
function. For this mathematicians have provide certain proven rules for the purpose.
1. Additive Rule : ( f ± g )’ = f ’ ± g ‘ .
2. Product Rule: (f g ) ‘ = f g ‘ + g f ‘.
f gf ' _ fg '
3. Quotient Rule : ( )' = .
g g2
Example 4
Solution
Example 5
6 sin x
(a) f(x) = x5cos x (b) f(x) = exlog2x (c ) f(x) =
x2 + 1
Solution
4
Sometimes we need to use more than a rule to find the derivative. See the
following example
Example 6
x 3e x
Find f ‘(x) if f(x) =
x ln x + 3
Example 7
3
(a) f(x) = cos(7x) (b) f(x) = (8x2 + x)4 (c ) f(x) = ln(ln (x)) (d) f(x) = e x sin x
5
Often the case we need to use all the four rules as in the following example
Example 8
x 2e 3 x + 1
Find f ‘(x) if f(x) =
cos 3 x .
Often in the case an equation or expression is given in a mixed mode i.e the
variables x and y are mixed together.
For example x + y = 7 or x2 + y2 = 9 or y2 = xy + cos(xy) are example of the mixed
mode. Equations of this type is known as implicit form on contrary with the other
type which is explicit form. In explicit form y is given in terms of x only . In this way
the derivative is straight forward.
6
Now if given implicitly, how do we find the derivative ? We must aware that y is a
function of x. So to differentiate xy for example we need to use product rule since
y is a function of x.
d dy
So dx ( xy ) = x + y(1)
dx
d 3 d 3 dy
Also dx (y ) for example should be dx (y ) = 3y2 dx .
Example 9
dy
Find dx if xy3 + sin(y2) = x2 + y2
Example 10
Solution
7
2.5 Applications of Derivatives
Aside from finding gradient of tangent lines to curve, derivatives found itself in lots
of applications. We will look at some of them.
In any of the shape above you will notice that the gradient of the tangent line to
each one is positive. Similarly for the ones that are decreasing ( Fig 3a, b c .)
We will have gradient of the tangent line to each one of decreasing components
are negative. So we have the following observation :
Example 11
Find all the x values for which the graph of f(x) = 2x2 - 7x +5 is increasing .
Solution
8
Example 12
Find all values of x for which the graph of f(x) = 12xe3x is decreasing.
Solution
Fig4
The points A and C are the maximum points and B and D are minimum points. We
also call these points the extremum points. These extremum can be considered local
as they are the highest and lowest points compared to their left and right neighbours.
At these extremum points the tangent lines are horizontal, thus the gradient is zero.
The maximum point has tangent lines with positive gradient on the left and negative
gradient on the right ( Fig 5a) while the minimum point has tangent lines with
negative gradient on the left and positive gradient on the right. This observation will
lead to First Derivative Test. We will first define critical value and then state the test.
9
Definition
Note : We use the notation c- to denote a value a bit less than c and c+ to denote a
value a bit more than c .
Example 13
Given the function f(x) = 6x3 + 9x2 - 108x + 7. Find all extremum points.
Sketch the graph.
Example 14
Given the graph y = xln x . Find all extremum points to the graph.
Sketch the graph.
Solution
10
There is another alternative to spot these extremum i.e via Second Derivative Test.
At the minimum point (c,f( c)), f ‘(x) is negative on the left of this point and gradually
becomes less negative as it moves towards the minimum point and assume zero
value at the minimum point. Then as it moves to the right it gradually becomes more
and more positive. This means f ‘(x) is an increasing function . Thus the derivative of
f ‘(c) should be positive i.e f ‘’(c) > 0 .
Likewise at the maximum point, f ‘(x) is a decreasing function and hence f ‘’( c) is
negative i.e f ‘’(c ) < 0 .
Example 15
Solution
11
Now what happen if f ‘’( c) = 0 ? . Well if this is the case then the test will be
inconclusive. First Derivative Test need to be carried out.
dy
If y = f(x) then f ‘(x) can also be written as dx . This is not just a symbol but
represent the change in y with respect to change in x . It comes from the First
Principle Formula where we can write
dy Δy
dx as Δlim
x → 0 Δx . This actually give the instantaneous rate of change at
x value.
Example 16
An inverted cone full of water leaks at the nozzle with 0.5 cm3/sec. The cone is 50
cm high and has radius 20 cm at the base. Find how fast the water level inside the
cone is dropping.
Solution
12
Example 17a
A ladder 3m long is slanted against a wall and is sliding down. The top of the
ladder is sliding down at the rate of 2cm/sec. Find the rate of the bottom part of the
ladder is moving on a smooth ground when the top part is 1m above the ground.
Solution
Example 17b
A ship travels along a straight line following the path of y = 2x + 3 and continues
travelling that path. A buoy is at coordinate of (50,80). Find the coordinate of the
ship when it is nearest to the buoy. Calculate this nearest distance.
13
2.4.4 Approximation
dy Δy dy Δy
As stated above dx = Δlim
x → 0 Δx . This means ≈
dx Δx
when Δx very small
dy
Thus Δy ≈ dx Δx when Δx very small .
very small for the estimate to be good. The smaller the Δx the better will be the
estimate.
Example 18
2
Given y = x + 8 . Estimate the value of y when x is (a) 1.5 (b) 1.1
14
L’Hopital’s Rule ( Limits revisited )
f (x)
Suppose we are given and f(x) and g(x) have derivatives of all order.
g( x )
f (a) ∞ 0 f (x) f ' (x)
Suppose is in the form of or . Then lim = lim provided the
g(a) ∞ 0 x → a g( x ) x → a g' ( x )
_
x → a can be replaced by x → ∞ or x → a + or a .
Example
ln x sin x x_3 x 3 _ 2x 2 7
(a) lim (b) lim (c ) lim 2 _ _ (d ) lim
x → x x →0 x x →3 x x 6 x → 4 x 3 _ x _ 6
15
Calculus of Functions of two variables.
z= x2 + y2 x2 + y2 = 4
x2 + y2 + z2 = 9 2x + 3y + 4z = 12
z2 = x2 + y2 x2 + y2 + z2/4 = 1
16
To differentiate these functions we have to do it partially. We
introduce the following :
Suppose z = f (x, y)
z
Denote derivative of z with respect to x while y fixed
x
z
and derivative of z with respect to y while x fixed.
y
Example
Given z = x3y4 + 2x + y - 7
z z
Then 3 x2y4 + 2 . 4x3y3 + 2x + 1 .
x y
Example
z z
Given z = x2 sin (x/y) . Find ,
x y
z
To find , we have to employ product rule.
x
17
Most of the rules in functions of single variable are applicable here. However the
chain rule needs modification.
z z x z y z z x z y
Then r x r y r and s x s y s .
Example
Given z = x2 + 2y x = r s2 y = 2r - s
z
Then r
z
s
18
Approximation and Normals of functions of two variables
z z
then z x y .
x y
We call this The Small Increment Formula. The smaller the change in x and y
the better will be the approximation.
Example
Normals to surfaces.
Since z = f(x,y) will always give us surfaces then given a point on a surface there
will be a tangent plane to this surface.
19
It can be shown that the normal vector to the tangent plane of the surface
z = f(x,y) is given as the vector
z z z z
n= , ,1 or , ,1 . More generally if a surface is
x y x y
given as F (x, y, z ) = c where c is constant then the normal vector to the surface
F F F
is n = , ,
x y z .
Example
20
Lagrange Mutiplier
Example
Find the maximum and the minimum of f(x,y) = xy when the constraint is
4x2 + 8y2 = 16 .
21
Example
Find the point on the sphere x2 + y2 + z2 = 36 that are closest to and farthest from
the point (1, 2, 2).
22