Mathematics 2 CHAPTER 1
Mathematics 2 CHAPTER 1
HHE203/HCE204/HSE204 Mathematics 2
Chapter 1
Department:
Facilitator:
Mathematics and
Mr D. Muzadziwa
Computational Sciences
Let f (x) be defined at any point x0 in (a, b). The derivative of f (x) at x = x0 is defined as
f (x0 + h) − f (x0 )
f ′ (x0 ) = lim
h→0 h
if this limit exists. A function is called differentiable at a point x = x0 , if it has a derivative at
that point, i.e., if f ′ (x0 ) exists. If we write x = x0 + h, then h = x − x0 and h approaches 0 if and
only if x approaches x0 . Therefore, an equivalent way of stating the definition of the derivative, is
f (x) − f (x0 )
f ′ (x0 ) = lim .
x→x0 x − x0
Solution:
√
Example: If f (x) = x, find the derivative of f .
1
Solution:
f (x + h) − f (x)
f ′ (x) = lim
h→0
√ h
√
x+h− x
= lim
h→0
√ h
√ √ √
x+h− x x+h+ x
= lim ·√ √
h→0 h x+h− x
(x + h) − x
= lim √ √
h→0 h( x + h + x)
1
= lim √ √
h→0 x+h+ x
1 1
= √ √ = √ .
x+ x 2 x
dy d d
The derivative at x may be denoted by f ′ (x), y ′ , , (f (x)). The symbol is called differ-
dx dx dx
entiation operator because it indicates the operation of differentiation. The process of finding
derivatives of functions is called differentiation.
Solution: If x > 0, then |x| = x and we can choose h small enough that x + h > 0 and hence
|x + h| = x + h. Therefore, for x > 0,
|x + h| − |x|
f ′ (x) = lim
h→0 x
(x + h) − x h
= lim = lim = 1,
h→0 h h→0 h
and so f is differentiable for any x > 0.
Similarly, for x < 0, we have |x| = −x and h can be chosen small enough that x + h < 0 and so
|x + h| = −(x + h). Therefore, for x < 0,
|x + h| − |x|
f ′ (x) = lim
h→0 h
−(x + h) − (−x) −h
= lim = lim = −1,
h→0 h h→0 h
and so f is differentiable for any x < 0.
2
Let’s compute the left and right limits separately;
|0 + h| − |0| |h|
lim+ = lim+ = lim+ 1 = 1.
h→0 h h→0 h h→0
|0 + h| − |0| |h|
lim− = lim = lim− (−1) = −1.
h→0 h h→0− h h→0
Since these limits are different f ′ (0) does not exist. Thus, f is differentiable at all x except 0.
For example,
(3x5 − 2x2 + 1)′ = (3x5 )′ − (2x2 )′ + 1′ = 3(x5 )′ − 2(x2 )′ + 0 = 3(5x4 ) − 2(2x) = 15x4 − 4x.
6. Product Rule
(f (x)g(x))′ = f (x)g ′ (x) + g(x)f ′ (x).
7. Quotient Rule ′
g(x)f ′ (x) − f (x)g ′ (x)
f (x)
= .
g(x) (g(x))2
3
8. Parametric Equations. If the coordinates (x, y) of a point P on a curve are given as
functions x = f (u) and y = g(u) of a third variable or parameter u, the equations x = f (u)
and y = g(u) are called parametric equations of the curve. For example, x = 12 t, y = 4 − t2 or
x = cos θ, y = 4 sin2 θ.
dy
The First Derivative is given by
dx
dy dy/du
= .
dx dx/du
d2 y
The Second Derivative is given by
dx2
d2 y
d dy du
2
= .
dx du dx dx
dy d2 y
Example: Find and 2 given x = θ − sin θ and y = 1 − cos θ.
dx dx
dx dy
Solution: Note that = 1 − cos θ and = sin θ, so
dθ dθ
dy dy/dθ sin θ
= = .
dx dx/dθ 1 − cos θ
Also
d2 y
d sin θ dθ
2
=
dx dθ 1 − cos θ dx
cos θ − 1 1 1
= · = − .
(1 − cos θ)2 1 − cos θ (1 − cos θ)2
dy d2 y
Example: Find and 2 given x = et cos t and y = et sin t.
dx dx
dx dy
Solution: Note that = et (cos t − sin t) and = et (sin t + cos t), so
dt dt
dy dy/dt sin t + cos t
= = .
dx dx/dt cos t − sin t
Also
d2 y
d sin t + cos t dt
2
=
dx dt cos t − sin t dx
2 1 2
= 2
· t = t .
(cos t − sin t) e (cos t − sin t) e (cos t − sin t)3
4
x ′ (x2 + 1) − x(2x) 1 − x2
Example: If f (x) = , then f (x) = = .
x2 + 1 (x2 + 1)2 (x2 + 1)2
1 1
Example: If f (x) = , then f ′ (x) = − 2 .
x x
dy
Example: If x = cos t and y = t sin t, find .
dx
Solution:
d
dy (t sin t) sin t + t cos t
= dt = .
dx d − sin t
(cos t)
dt
Recall :
sin h 1 − cos h
lim = 1 and lim = 0.
h→0 h h→0 h
sin(x + h) − sin x
(sin x)′ = lim
h→0 h
sin x cos h + cos x sin h − sin x
= lim
h→0 h
sin x(cos h − 1) + cos x sin h
= lim
h→0
h
(1 − cos h) sin h
= lim − sin x + cos x
h→0 h h
= − sin x(0) + cos x(1).
dy
Example: Find if y = x3 sin x.
dx
dy
Solution: = (x3 sin x)′ = x3 (sin x)′ + sin x(x3 )′ = x3 cos x + 3x2 sin x.
dx
is differentiable at x = 0.
5
Solution: Observe that
h3 sin h1 − 0 1
lim = lim h2 sin = 0.
h→0 h h→0 h
d x d 1 d x
Derivatives of ln x and ex are e = ex and ln x = . Also (a ) = ax ln x, a > 0.
dx dx x dx
d
Example: Calculate the derivative [(sin x + x) · (x3 − ln x)].
dx
d d d 3 d 1
Solution: We know that sin x = cos x, x = 1, x = 3x2 and ln x = . Therefore, by
dx dx dx dx x
the addition rule,
d d d
(sin x + x) = sin x + x = cos x + 1
dx dx dx
and
d 3 d 3 d 1
(x − ln x) = x − ln x = 3x2 − .
dx dx dx x
Now we may conclude the calculation by applying the product rule;
d d d
[(sin x + x) · (x3 − ln x)] = (sin x + x) · (x3 − ln x) + (sin x + x) · (x3 − ln x)
dx dx dx
3 2 1
= (cos x + 1) · (x − ln x) + (sin x + x) · 3x −
x
1
= 4x3 − 1 + x3 cos x + 3x2 sin x − sin x − ln x cos x − ln x.
x
6
0.3 Derivative of a Composition [The Chain Rule]
dy dy du du
= · = f ′ (u) = f ′ (g(x))g ′ (x).
dx du dx dx
Similarly, if y = f (u) where u = g(v) and v = h(x), then
dy dy du dv
= · · .
dx du dv dx
d
Example: Calculate the derivative (sin(x3 − x2 )).
dx
Solution: This is the composition of functions, so we must apply the Chain Rule. It is essential
to recognize what function will play the role of f and what function will play the role of g. Notice
that, if x is the variable, then x3 − x2 is applied first and sin applied next. So it must be that
d d
g(x) = x3 − x2 and f (s) = sin s. Notice that f (s) = cos s and g(x) = 3x2 − 2x. Then
ds dx
sin(x3 − x2 ) = f ◦ g(x)
and
d d
(sin(x3 − x2 )) = (f ◦ g(x))
dx dx
df d
= (g(x)) · g(x)
ds dx
= cos(g(x)) · (3x2 − 2x)
= [cos(x3 − x2 )] · (3x2 − 2x).
x2
d
Example: Calculate the derivative ln .
dx x−2
x2 x2
Solution: Let h(x) = ln . Then h = f ◦ g, where f (s) = ln s and g(x) = . So
x−2 x−2
7
d 1 d (x − 2) · 2x − x2 · 1 x2 − 4x
f (s) = and g(x) = = . As a result,
ds s dx (x − 2)2 (x − 2)2
d d
h(x) = (f ◦ g)
dx dx
df d
= (g(x)) · g(x)
ds dx
1 x2 − 4x
= ·
g(x) (x − 2)2
1 x2 − 4x
= ·
x2 (x − 2)2
x−2
x−4
= .
x(x − 2)
What is the relationship between continuity and differentiation? It appears that functions that
have derivatives must be continuous.
Proof. We want to show that f is continuous at x, i.e., lim f (t) = f (x) or lim f (x + h) = f (x),
t→x h→0
where h = t − x. It will be sufficient to show that lim [f (x + h) − f (x)] = 0.
h→0
Now,
f (x + h) − f (x)
lim [f (x + h) − f (x)] = lim h
h→0 h→0 h
f (x + h) − f (x)
= lim lim h
h→0 h h→0
= f ′ (x) · 0
= 0,
Converse is false: For example, the function f (x) = |x| is continuous at x = 0, but it is not
differentiable there.
8
0.5 Higher Order Derivatives
dy
If f (x) is differentiable in an interval, its derivative is given by f ′ (x), y ′ or where y = f (x).
dx
d2 y
′ ′′ ′′d dy
If f (x) is also differentiable in the interval, its derivative is denoted by f (x), y or = .
dx dx dx2
dn y
Similarly, the nth derivative of f (x), if it exists, is denoted by f (n) , y (n) or where n is called
dxn
the order of the derivative.
d 1 4
Solution: Derivative y ′ = f ′ (x) = ( x − 3x2 + 1) = 2x3 − 6x.
dx 2
′′ d2 y
′′ d
Second derivative y = f (x) = 2 = (2x3 − 6x) = 6x2 − 6.
dx dx
d3 y d
Third derivative y ′′′ = f ′′′ (x) = 3
= (6x2 − 6) = 12x.
dx dx
d4 y d
Fourth derivative y (4) = f (4) (x) = 4
= (12x) = 12.
dx dx
Compare
√
1. x2 − y 3 = 3 ⇐⇒ y = 3
x2 − 3.
√
2. x2 + y 2 = 1 ⇐⇒ y = ± 1 − x2 .
3. x3 + y 2 = 3xy ⇐⇒????????.
Implicit Functions. A function in which the dependent variable is expressed solely in terms of
the independent variable x, namely y = f (x), is said to be an explicit function, for example,
y = 12 x3 − 1. An equation f (x, y) = 0, on perhaps certain restricted ranges of the variables, is said
to define y implicitly as a function of x.
9
1−x
Example: (a) The equation xy + x − 2y − 1 = 0, with x ̸= 2, defines the function y = .
√ x−2
(b) The equation 4x2 + 9y 2 − 36 = 0 defines the function y = 23 9 − x2 when |x| ≤ 3 and y ≥ 0
√
and the function y = − 23 9 − x2 when |x| ≤ 3 and y ≤ 0.
2. Thinking of y as a function of x, differentiate both sides of the given equation with respect
to x and solve the resulting relation for y ′ . This differentiation process is known as implicit
differentiation.
dy
Example: Find if x2 + y 2 = 4.
dx
d2 y
Example: Find 2 if x2 + y 2 = 4.
dx
Solution: From the above example, we already know that the first derivative is
dy x
=− .
dx y
Hence by the Quotient Rule
d2 y
d x
2
= −
dx dx y
dy
y·1−x·
= − dx
y2
x
y−x −
y dy
= − 2
Substituting for
y dx
y + x2
2
= − .
y3
10
Noting that x2 + y 2 = 4 permits us to write the second derivative as
d2 y 4
2
= − 3.
dx y
dy
Example: Find if sin y = y cos 2x.
dx
Solution:
d d
sin y = y cos 2x
dx dx
dy dy
cos y = y(− sin 2x · 2) + cos 2x
dx dx
dy
(cos y − cos 2x) = −2y sin 2x
dx
dy 2y sin 2x
= − .
dx cos y − cos 2x
Solution: We have
d d d d d d
x (y) + y (x) + (x) − 2 (y) − (1) = (0)
dx dx dx dx dx dx
1+y
or xy ′ + y + 1 − 2y ′ = 0, then y ′ = .
2−x
Solution:
d 2 d d 2 d 2
(x y) − (xy 2 ) + (x ) + (y ) = 0
dx dx dx dx
d d d d d 2 d 2
x2 (y) + y (x2 ) − x (y 2 ) − y 2 (x) + (x ) + (y ) = 0.
dx dx dx dx dx dx
y 2 − 2x − 2xy
Hence, x2 y ′ + 2xy − 2xyy ′ − y 2 + 2x + 2yy ′ = 0 and y ′ = .
x2 + 2y − 2xy
Solution:
d 2 d d 2 2x − y
(x ) − (xy) = (y ) = 2x − xy ′ − y + 2yy ′ = 0. So y ′ = .
dx dx dx x − 2y
11
Then
d d
(x − 2y) (2x − y) − (2x − y) (x − 2y) (x − 2y)(2 − y ′ ) − (2x − y)(1 − 2y ′ )
y ′′ = dx dx =
(x − 2y)2 (x − 2y)2
2x − y
3x − 3y
3xy ′ − 3y x − 2y 6(x2 − xy + y 2 )
= = =
(x − 2y)2 (x − 2y)2 (x − 2y)2
18
= .
(x − 2y)2
Take natural logarithm (ln) both sides, differentiate implicitly and solve for y ′ .
√
2 3
x 7x − 14
Example: Compute y ′ if y = .
(1 + x2 )4
√ 2√
x2 3 7x − 14
x 3 7x − 14
Solution: y = ⇒ ln y = ln .
(1 + x2 )4 (1 + x2 )4
1
ln y = 2 ln x + ln(7x − 14) − 4 ln(1 + x2 )
3
1 (7x − 14)′ (1 + x2 )′
1 ′ 1
y = 2 + −4
y x 3 7x − 14 1 + x2
2 7 8x
= + −
x 3(7x − 14) 1 + x2
′ 2 7 8x
y = y + −
x 3(7x − 14) 1 + x2
√
x2 3 7x − 14 2
7 8x
= + − .
(1 + x2 )4 x 3(7x − 14) 1 + x2
If x = sin y, the inverse function is written y = sin−1 x or y = arcsin x. The inverse trigonometric
functions are multivalued functions.
12
Solution: Differentiate implicitly with respect to x. Then sin y = x. Hence,
(sin y)′ = x′
cos yy ′ = 1
1
y′ =
cos y
1
y′ = p
1 − sin2 y
1
= √ .
1 − x2
d 1 d 1 d 1
Some Derivatives. (cos−1 x) = − √ , (cot−1 x) = − , (sec−1 x) = √ .
dx 1 − x2 dx 1 + x2 dx x x2 − 1
1
You Try It: Show that the derivative of tan−1 x = .
1 + x2
13