Differential Calculus
Differential Calculus
Dr R. Netshikweta
Dr B. Maregere
University Of Venda
MAT 1143/1543
rendani.netshikweta@univen.ac.za
bothwell.maregere@univen.ac.za
1 / 58
Topic: Differential Calculus
Objectives:
✠ Introduces a technique called differentiation for calculating
the gradient of a curve at any point
✠ Introduces some rules for finding gradient functions
✠ Explains what is meant by the terms ”first derivative” and
”second derivative”
✠ explains the terms ”maximum” and ”minimum” when
applied to functions
✠ Applies the technique of differentiation to locating
maximum and minimum values of a function
2 / 58
Overview of Differential Calculus
3 / 58
Overview of differential Calculus Cont....
Gradient of a curve
⋇ The gradient of a straight line is a constant and simply
∆y
determined by ∆x which is the ratio between any two
points on the line
⋇ But, on the curve the gradient is changing from one point
to another
⋇ Thus, we can define the gradient at any point on a curve
to be the gradient of the tangent to the curve at that
point.
⋇ Recall that a tangent to a curve is a straight line that
touches the curve at one point.
⋇ To find a gradient at any point on the curve, we can make
use of the method called a limiting process, sometimes
known as differentiation from the first principle.
4 / 58
Increments and Rates
Overview of Increments
Dfn: Let a variable x have a first value x1 , and a second value
x2 . The change in the value of x, which is (x2 − x1 ), is called
the increment in x and is denoted by ∆x.
5 / 58
Increments and Rates
Examples of Increments:
i. Given f (x) = x2 , find ∆y if x = 1 and and ∆ = 0.2.
Solution:
∆y = f (x + ∆x) − f (x)
= f (1 + 0.2) − f (1)
= f (1.2) − f (1) = 0.44.
∆y = f (x + ∆x) − f (x)
= (x + ∆x)2 − x2
6 / 58
= x2 + 2x∆x + ∆x2 − x2 = 2x∆x + ∆x2 .
Examples of Increments:
∆y = f (t + ∆t) − f (t)
= f (2 + 3) − f (2) = f (5) − f (2)
3000 3000
= 5000 − − 5000 − = 500.
1+5 1+2
Example:
Solution:
Here t = 2 and ∆t = 5. Thus,
∆P P (t + ∆t)
=
∆t ∆t
P (2 + 5) − P (2)
=
5
700 200
50 − 21+49 − 50 − 21+4
=
5
40 − 52
= = −0.4mg/hr. (1)
5
9 / 58
Limits and Continuity
Overview of Limits
⋇ Limits in maths are defined as the values that a function,
say f , approaches the output for the given input.
⋇ Limits play vital role in Calculus and mathematical
analysis.
⋇ In particular, are used to define concepts such as
continuity, derivatives, and integral.
⋇ Worth mentioning that limits are unique real numbers.
⋇ Mathematicaly, a limit of a real-valued function ”f ” if
given a real number ”c” is defined as:
lim f (x) = L.
x→c
11 / 58
Limits of polynomial function
x4 + x2 − 1 lim (x4 + x2 − 1)
x→c
(b) lim =
x→c x2 + 5 lim (x2 + 5)
x→c
lim x4 + lim x2 − lim 1
x→c x→c x→c
=
lim x2 + lim 5
x→c x→c
c4 + c2 − 1
= .
c2 + 5
12 / 58
.
The limit of a polynomial f (x) as x → c, may be obtained
by finding the value of a polynomial at c. Thus
13 / 58
Limits Evaluation Cont...
x2 + 2x + 4 lim (x2 + 2x + 4)
x→2
(b) lim =
x→2 x+2 lim (x + 2)
x→2
lim x4 + lim x2 + lim 4
x→2 x→2 x→2
=
lim x + lim 2
x→2 x→c
42 + 2(2) + 4 12
= = = 3.
2+2 4
14 / 58
Limits containing rational fractions may be
subdivided into three basic groups:
Group 1: lim fg(x)
(x)
→ L where f (c) and g(c) ̸= 0
x→c
q 2 −3q+2
Example: find lim q−1 .
q→−1
2 2 −3(−1)+2
Solution: lim q −3q+2
q−1 = (−1) −1−1 = −3
q→−1
16 / 58
Exploring a non-existing limits (Ground 3):
Indeterminate form 00
If the limit of a rational fraction is being calculated as x
approaches c and both the numerator and the denominator
approach zero as x approaches c, then the numerator and
the denominator have a common factor (x − c) and the
rational function may be simplified.
Example
x3 −125 (5)3 −125 0
lim = = (indeterminate form, factorize)
x→5 x−5 5−5 0
√ √ √
x+2−2 x+2−2 x+2+2
lim = lim ×√
x→2 x−2 x→2 x−2 x+2+2
(x − 2)
= lim √
x→2 (x − 2)( x + 2 + 2)
1
= lim √
x→2 x+2+2
1
= .
4
18 / 58
Definition: Limits as x → ∞
x2 −2 ∞
Example: Find the limit: lim x 3 +3x = ∞
(indeterminate
x→∞
form, take out factor x3 )
⋇
x3 x1 − x23
x2 − 2 0−0
lim = lim 3 = = 0.
x→∞ x3 + 3x x→∞ x 1 + 32 1+0
x
20 / 58
Example
Evaluate
x3 − 8
lim (7)
x→∞ x2 − 4
2
1. lim √3x +1
9x 4 −4
x→∞
3
2. lim x4 −8
x→∞ x −4
x3 −8
3. lim 2
x→∞ x −4
4. lim |x|+|8+x|
x
x→∞
2
5. lim √x +2
x→−∞ 4x2 −4
22 / 58
Continuous Functions
Definition:
23 / 58
Examples: Continuous Functions
i. (
x2 −9
x−3 if x ̸= 3
f (x) =
6 if x = 3.
ii. (
x2 −9
x−3 if x ̸= 3
f (x) =
7 if x = 3.
iii. (
x3 − 2x + 1 if x ≤ 2
f (x) =
3x − 2 if x > 2.
24 / 58
Finding Gradient of a Curve From the First
Principle of Differentiation
Defn:
✠ A function f is said to be differentiable at x if
f (x + h) − f (x)
lim exist.
h→0 h
✠ If the limit above exist, it is called the derivative of f at x
dy
and often denoted by the symbol f ′ (x) or dx .
✠ That is,
f (x + h) − f (x)
f ′ (x) = lim
h→0 h
represent the gradient or the slope of gragh (curve) of f
at the point (x, f (x)).
✠ Note that, the line that passes through the point (x, f (x))
with the slope f ′ (x) is called the tangent line at the point
(x, f (x)).
25 / 58
Example: Finding Gradient of a Curve From the
First Principle of Differentiation
26 / 58
Exercise: Finding Gradient of a Curve From the
First Principle of Differentiation
27 / 58
Differentiate a Function Using Differentiation Rules
Derivative of a Constant
If f (x) = b, then f ′ (x) = 0 for every x where b is a
constant.
Power Rule
If f (x) = xn , then f ′ (x) = nxn−1 where n is a real
number.
Summation Rule
If f (x) = g(x) ± h(x), then f ′ (x) = g ′ (x) ± h′ (x).
28 / 58
Example: Differentiate a Function Using
Differentiation Rules
Example:
Differentiate the following
(a) f (x) = 5
Solution: f ′ (x) = 0.
(b) f (x) = x3 .
Solution: f ′ (x) = 3x3−1 = 3x2 .
(c) f (x) = x12
Solution: f (x) = x−2 and hence
f ′ (x) = −2x−2−1 = − x23 .
(d) f (x) = 15 x5
Solution: f ′ (x) = 15 (5x5−1 ) = x4 .
(e) f (x) = x2 + 5x3 − 7x + 3 − x43
Solution: f ′ (x) = 2x + 15x2 − 7 + 15
x4
.
29 / 58
Exercise: Differentiate a Function Using
Differentiation Rules
Exercise:
dy
1. Find dx from the first principle:
(a) y = 3x2 + 1 (b) y = 2 − 4x2
2
(c) y = x + x1 (d) y = x2 − x + 3
(e) y = 3 sin 2t + 4 cos 2t (f ) y = e3x − 5e−2x
dy
2. (a) Find if y = x2 + ax + 3, where a is a constant.
dx
(b) Hence, find the value of a if the gradient of the function
y = x2 + ax + 3 is 2.
3. Differentiate A = 2πr2 + 2πrh with respect to r, where h
is a constant.
30 / 58
Summary of the gradient function of some
common functions
Product Rule:
If f (x) and g(x) are two functions and y = f (x)g(x), then
y ′ = f ′ (x)g(x) + f (x)g ′ (x)
Quotient Rule:
f (x)
If f (x) and g(x) are two functions and y = g(x) , then
f ′ (x)g(x)−f (x)g ′ (x)
y′ = (g(x))2
, where g(x) ̸= 0
sin 2x
Example: Use the quotient rule to differentiate y = x2
Soln: let f (x) = sin 2x and g(x) = x2 . Now, using
product rule, we get
Chain Rule:
dy dy dx
If y = y(x) and x = x(t), then = × .
dt dx dt
dy
Example: Use the chain rule to find when
dt
y = cos x and x = t2
Soln: Defferentiating y with respect to x and x with
dy dx
respect to t, we get = − sin x and = 2t.
dx dt
Thus, using the chain rule we have
dy dy dx
= ×
dt dx dt
= (− sin x)(2t)
= −2t sin x
34 / 58 = −2t sin t2
Exercise: Product, Quotient, and Chain Rules
Exercise:
Use appropriate rules to differentiate the following
functionss.
sin x
1. y = .
ex
2. f (x) = 2x ln x.
x+1
3. y = .
x2 + 1
sin x
4. y = .
cos x
5. y = (7x + 3)4 .
6. f (t) = e−2t+3 .
7. g(a) = ln(3x − 2).
35 / 58
Higher-Order Derivatives
36 / 58
Example: Higher-Order Derivatives
then
37 / 58
Exercise: Higher-Order Derivatives
Exercise:
ds d2 s
1. Find and 2 if s = 3t2 − t22
dt dt
d2 y
2. If y = (ax + 2)2 and = 18, find the value of a
dx2
3. If s = 3t3 − 30t2 + 36t + 2, find the values of t for which
ds d2 s
= 0 and the value of t for which 2 = 0.
dt dt
A
4. if y = + Bx, where A and B are constants, show that
x
d2y dy
x2 2 + x = y.
dx dx
38 / 58
Applications of Derivatives
Analysis of curves:
Definition: A function y = f (x) is said to be an increasing
function over a certain interval of values of x if y increases
with the increase of x. That is if x1 and x2 are any two values
in the given interval with x2 > x1 , then f (x2 ) > f (x1 ).
In case f (x1 ) > f (x2 ) , then the function is decreasing.
39 / 58
Applications of Derivatives
Theorem:
(a) If f ′ (x) > 0 ∀x ∈ (a, b) then f (x) is increasing over the
given interval.
(b) If f ′ (x) < 0 ∀x ∈ (a, b) then f (x) is decreasing over the
given interval.
Example:
Find the values of x for which the function
f (x) = x2 − 2x + 1
is increasing or decreasing.
40 / 58
Solution:
f (x) = x2 − 2x + 1
f ′ (x) = 2x − 2
Example:
Find the values of x for which the function
f (x) = x3 − 3x
3(x2 − 1) > 0
3(x − 1)(x + 1) > 0
43 / 58
Solution:
Concavity:
Definition: Let f be differentiable on an open interval I. The
graph of f is concave upward on I if f ′ is increasing on the
interval and concave downward on I if f ′ is decreasing.
45 / 58
Theorem (Test for concavity):
Let f be a function whose second derivative exists on an open
interval I.
(a) If f ′′ > 0 ∀ x ∈ I, then the graph of f is concave upward
on I.
(b) If f ′′ < 0 ∀ x ∈ I, then the graph of f is concave
downward on I.
Example:
Determine the open interval (values of x) on which the graph
of f (x) = 6(x2 + 3)−1 is concave upward or downward.
46 / 58
Solution:
Observe that f is continuous on the entire real line. Now
−12x
f ′ (x) = −6(x2 + 3)(−2x) = ,
(x2 + 3)2
(x2 + 3)2 (−12) − (−12x)(2)(x2 + 3)(2x)
f ′′ (x) =
(x2 + 3)4
36(x2 − 1)
= .
(x2 + 3)3
36(x2 − 1)
= 0 =⇒ x = ±1.
(x2 + 3)
47 / 58
Solution:
x < x = −1 ≤ x = x>1
−1 −1 x≤1 1
x−1 − − − 0 +
(x + 1) − 0 + + +
(x − 1)(x + 1) + 0 − 0 +
48 / 58
Solution:
Exercise:
Determine the values of x for which the graph of
x2 + 1
f (x) = 2 is concave upward or downward.
x −4
49 / 58
Applications of Derivatives
Points of inflection:
A point of inflection on a curve is a point where the curve
changes the direction of concavity.
Theorem: If (c, f (c)) is a point of inflection of the graph
of f , then either f ′′ (x) = 0 or f ′′ is not defined at x = c.
From the graphs, observe that at the point of inflection
the graph crosses its tangent line.
50 / 58
Example:
Determine the points of inflection of the graph and discuss the
concavity of the graph of f (x) = x4 − 4x3
Solution:
52 / 58
Maxima and Minima
53 / 58
Figure:
54 / 58
To determine whether the critical values are a maximum or
minimum we will consider a special method called the second
derivative test as follows:
⋇ Find the critical values of x.
⋇ Substitute each critical value of x into the second
derivative.
⋇ If the sign of the second derivative is positive for the
critical value, the function has a minimum at that point.
⋇ If the sign of the second derivative is negative, the
function has a maximum at that point.
55 / 58
Second Derivative Test
Theorem
Let f (x) be defferentiable at x = c. Then
i. x = c is a local maximum of f whenever f ′ (c) = 0 and
and f ′′ (c) < 0;
ii. x = c is a local minimum of f whenever f ′ (c) = 0 and
f ′′ (c) > 0.
Example:
Find the local maximum and minimum values of
f (x) = x3 + 2x2 − 4x − 8.
56 / 58
Solution:
First find the critical values, f ′ (x) = 0.
f ′ (x) = 3x2 + 4x − 4.
=⇒ 3x2 + 4x − 4 = 0
=⇒ (3x − 2)(x + 2) = 0.
f ′′ (x) = 6x + 4
57 / 58
Solution:
⋇ When x = 23 , f ′′ ( 23 ) > 0 =⇒ f (x) has a local minimum
when x = 23 , whose value is given by f ( 23 ) = − 256
27 .
⋇ When x = −2, f ′′ (−2) < 0. This implies that f (x) has a
local maximum when x = −2, given by f (−2) = 0.
58 / 58
Exercise:
i. Determine the local maxima and minima for
ln x
f (x) = .
x
ii. Determine the local maximum and minimum values of
h(x) = x3 + 2x2 − 4x − 8.
59 / 58