Differential Calculus Notes
Differential Calculus Notes
def f ( x + h ) − f ( x )
f ′ (x) = lim
h →0
h
Example 1
1
Differentiate f (x) = x 2
from first principles.
(x + h ) 1 2 − x 1 2
f ′ (x) = lim
h →0 h
1 1
Multiplying the numerator and denominator by (x + h ) 2
+ x 2
gives,
((x + h ) 1 2 − x 1 2 )((x + h ) 1 2 + x 12 )
f ′ (x) = lim
h →0
1 1
h ((x + h ) 2 + x 2 )
x + h − x
f ′ (x) = lim 1 1
h ((x + h ) + x )
h →0 2 2
1
f ′ (x) = lim
h →0
x + h + x
1
f ′ (x) =
x + x
1
f ′ (x) =
2 x
Notation:
df d dy
or f (x) or (d by dx notation aka Leibniz notation)
dx dx dx
Notation:
def
df
f (t) = (Dot notation aka Newton notation)
dt
Higher-Order Derivatives
Definition:
d nf def
d d d d d
= f
dx n dx dx dx dx dx
n times
d 2f def
d df
=
dx 2 dx dx
D n f and f (n )
(x)
this Lagrange notation mainly being used for derivatives usually greater
than or equal to 4 (as then the dashes become too numerous). To avoid
ambiguity, sometimes the case when n = 1 is called the first derivative.
Example 2
f ′ (x) = 4 x 3 + 3 cos 3x
f ′′ (x) = 12 x 2 − 9 sin 3x
Example 3
f ′ (x) = 3 x 2
f ′′ (x) = 6x
f ′′’ (x) = 6
(4 )
f (x) = 0
The sum, difference and chain rules for differentiating functions are
assumed in this course. In order to differentiate more types of
functions, 2 new rules will be introduced, the first to enable
differentiation of a product of functions, the second to differentiate a
quotient.
(f g )′ = f ′ g + f g ′
1
(f / g )′ = (f ′ g − f g ′ )
g2
Try writing both these rules in Leibniz notation and Euler notation to see
which form is easier (or preferable) to remember.
Example 4
Let f (x) = x 3 and g (x) = cos 2x. The following way of setting out the
working is useful,
Example 5
x2
Differentiate h (x) = ( x ≠ 1 ), simplifying as much as possible.
(x − 1)3
f (x) = x 2 , g (x) = (x − 1) 3
f ′ (x) = 2x , g ′ (x) = 3 (x − 1) 2
2
and g ( x ) = (x − 1) 6 (remember rules of indices – power of a power).
Then apply the Quotient Rule to get,
x (x − 1)2 (2 (x − 1) − 3x )
h ′ (x) =
(x − 1)6
x (x − 1)2 ( − x − 2)
h ′ (x) =
(x − 1)6
−x (x + 2)
h ′ (x) =
(x − 1) 4
Definition:
def
1
sec x =
cos x
π
dom (sec x) = ∖ x ∈ : x = + n π, n ∈
2
ran (sec x) = ∖ ( − 1, 1)
Definition:
def
1
cosec x =
sin x
dom (cosec x) = ∖ {x ∈ : x = n π, n ∈ }
ran (cosec x) = ∖ ( − 1, 1)
Definition:
def
cos x
cot x =
sin x
dom (cot x) = ∖ {x ∈ : x = n π, n ∈ }
ran (cot x) =
d
• tan x = sec 2 x
dx
d
• sec x = sec x tan x
dx
d
• cosec x = − cosec x cot x
dx
d
• cot x = − cosec 2 x
dx
d
• ex = ex
dx
d 1
• ln x =
dx x
Example 6
Example 7
x2
Differentiate m (x) = .
ln 4x
4 2
(2x ) ln 4x − x
m ′ (x) = 4x
(ln 4x )2
2x ln 4x − x
m ′ (x) =
(ln 4x )2
x (2 ln 4x − 1)
m ′ (x) =
(ln 4x )2
Rectilinear Motion
Definition:
Definition:
Definition:
def
ds
v (t) = = s (t)
dt
Definition:
def
dv d 2s
a (t) = = = s (t)
dt dt 2
Example 8
Differentiability of a Function
Definition:
def f (a + h) − f (a)
f− ′ (a) = lim−
h →0 h
def f (a + h) − f (a)
f+ ′ (a) = lim+
h →0 h
Theorem:
Example 9
x (0 ≤ x ≤ 3)
f (x) =
3 (x > 3)
y
3
3 x
The only unclear points are where x = 0 and x = 3. For x = 0, the left-
hand derivative does not exist, so f is not differentiable at x = 0. For
x = 3, f− ′ (3) = 1 and f+ ′ (3) = 0, so f is not differentiable at x = 3.
Critical Points
Definition:
Note that all stationary points are critical points, but not all critical
points are stationary points. Referring to the previous example, f has
critical points at (0, 0), (3, 3) and (x, 3) ( x > 3 ). At (0, 0) and (3, 3), the
derivative doesn’t exist, whereas for (x, 3) ( x > 3 ) the derivative is 0
(i.e. all the points (x, 3) ( x > 3 ) are stationary points).
Extrema of a Function
Definition:
• Local.
• Endpoint.
• Global.
Definition:
Theorem:
Note that not all critical points are local extrema. Referring back to
Example 9, the point (0, 0) is not a local minimum, but it is a critical point.
Definition:
Definition:
Theorem:
Example 10
Classify the extrema for the function f with the graph shown.
y D
A G
B E x
The small circles indicate the extent of where f is defined. The white
circle means that the point is not in dom f, whereas the black circle
means that the point is in dom f.
Let’s analyse the labelled points in turn. Remember, all extrema occur at
critical points.
C is a critical point (even though f− ′ (C) > 0 and f+ ′ (C) > 0, the actual
values are different and there is clearly no smooth transition between
these values; the function is kinky at C, so ∃ f ′ (C)). C is not a local
extremum, as there y – values close to f (C) which are both bigger and
smaller than f (C). C is a critical point.
F is clearly a critical point (for a similar reason cited for D). It is also a
local max., but not a global max. So, F is a local maximum.
Definition:
Definition:
Theorem:
Note that if a function has f ′′ (a) = 0, this does not necessarily mean
that x = a is a P of I. For example, f (x) = x 4 has f ′’ (x) = 12 x 2 and
thus f ′’ (0) = 0. However, (0, 0) is clearly a minimum (sketch the graph).
Definition:
For stationary points, there is a useful test for finding local maxima and
minima.
Example 11
Find all maxima, minima and inflexion points of f (x) = sin x in the
interval (0, 2π).
f ′ (x) = cos x. The stationary points occur at (π/2, 1) and (3π/2, − 1).
Example 12
x − 5
Show that f (x) = has no stationary points and no inflexion
x + 3
points.
8
f (x) = 1 −
x + 3
8
f ′ (x) =
(x + 3)2
8
= 0
(x + 3)2
obviously has no solutions. Hence, there are no maxima or minima. For any
inflexion points, we need to analyse the second derivative,
16
f ′’ (x) = −
(x + 3)3
16
− = 0
(x + 3)3