Topic 2 EMS 112
Topic 2 EMS 112
Topic 2 EMS 112
TOPIC 2: Calculus
Mobile: 0679595630/0742987389
Email: [email protected]
Outline
1. Limits and continuity
2. Derivatives
3. Integration
4. An introduction to infinite series
5. Taylor’s theorem and Maclaurin’s theorem
6. An introduction to Gamma and Beta functions
7. Euler’s Theorem on Homogeneous Function
LIMITS AND CONTINUITY
• Limits of a single variable function
• Continuity of a single variable function
FUNCTION OF A SINGLE VARIABLE
1
5. Compute lim 2 =∞, no limit
𝑥→0 𝑥
ONE- SIDED LIMIT
(i) Right-hand limit of f(x)
• Definition: As x→ 𝑎+ , f(x)→ 𝐿, and it may be written as
lim 𝑓 𝑥 = 𝐿.
𝑥→𝑎+
Here we make the value f(x) arbitrary close to L by
taking x to be sufficiently close to the right of a
Cont…
(i) Left-hand limit of f(x)
• Definition: As x→ 𝑎 − , f(x)→ 𝑀, and it may be written
as
lim − 𝑓 𝑥 = 𝑀.
𝑥→𝑎
Here we make the value f(x) arbitrary close
to M by taking x to be sufficiently close to
the left of a.
Examples:
𝑥 𝑥 𝑥
• Example 1: Compute lim , lim− , lim+
𝑥→0 𝑥 𝑥→0 𝑥 𝑥→0 𝑥
Solution:
𝑥
lim , does not exist
𝑥→0 𝑥
𝑥 𝑥
lim+ = lim+ =1
𝑥→0 𝑥 𝑥→0 𝑥
Example 2:
𝑥 + 1 𝑖𝑓 𝑥 > 0
• Given f(x)=ቊ , then find
𝑥 − 1 𝑖𝑓 𝑥 < 0
𝑓(𝑥) 𝐿
iv) lim 𝑔(𝑥) =𝑀, if M≠ 0
𝑥→𝑎
v) lim (𝑐 𝑓(𝑥)) = cL
𝑥→𝑎
𝑥 2 −3𝑥+5
• Example: Compute lim
𝑥→1 𝑥−2
Solution:
= lim (𝑥 + 3) = 4
𝑥→1
Exercise: Compute
𝑥 2 −2𝑥 𝑥 2 −2𝑥 𝑥+5−2
i) lim ii) lim iii) lim
𝑥→2 𝑥 2 −4 𝑥→2 𝑥 2 −4 𝑥→−1 𝑥+1
Limits in trigonometry
• In this section we’ll derive a few limits involving the
trigonometric functions
• You can think of them as saying that for small angles θ
one has
1 2
sin 𝜃 ≈ 𝜃 and cos 𝜃 ≈ 1 − 𝜃
2
Examples
sin 𝜃
1. lim =1
𝜃→0 𝜃
2. lim sin 𝜃 = 0
𝜃→0
3. lim cos 𝜃 = lim 1 − 𝑠𝑖𝑛2 𝜃= 1
𝜃→0 𝜃→0
1
1−cos 𝜃 1−(1 − 𝜃2 ) 1
2
4. lim
𝜃2
= lim
𝜃2
=
2
𝜃→0 𝜃→0
CONTINUITY
• Definition: A function f is continuous at a if lim 𝑓(𝑥) exist and is
𝑥→𝑎
lim 𝑓(𝑥)= f(a).
𝑥→𝑎
• It is continuous if it is continuous at every a in its domain.
1
• Example 1: f(x) = is continuous on the interval 1< 𝑥 < 5, but it is not
𝑥2
continuous on the interval -1< 𝑥 < 1.
𝑥 + 2, 𝑖𝑓 𝑥 > 1
• Example 2: Given f(x)=ቊ
1, 𝑖𝑓 𝑥 ≤ 1
• Solution:
As x becomes large, both numerator and denominator
become large, this may be shown as follows
Example continued
2𝑥 2 −5𝑥+2
2. lim =0,
𝑥→∞ 7𝑥 3 −5𝑥 2 −10𝑥+1
𝑥 2 +3𝑥−2
3. lim =∞,
𝑥→∞ 10𝑥+1
Infinite Limits
• There are various possibilities under which lim f ( x)
x→ a
• Since all of the above limits exist and are finite, f cannot
have a vertical asymptote at x = a.
• In order for f to have a vertical asymptote at x = a, at least
one of the limits above must be an infinite limit, and f
must be discontinuous at x = a. We know that polynomial
functions are continuous for all real numbers, so a
polynomial has no vertical31 asymptotes.
Vertical Asymptotes of Rational Functions
• Since a rational function is discontinuous only at the
zeros of its denominator, a vertical asymptote of a
rational function can occur only at a zero of its
denominator.
• The following is a simple procedure for locating the
vertical asymptotes of a rational function:
• If f (x) = p(x)/q(x) is a rational function, q(c) = 0
and p(c) 0, then the line x = c is a vertical
asymptote of the graph of f.
32
Example
Let x2 + x − 2
f (x ) =
x2 −1
33
Example cont…
x + x−2
2
f (x ) =
Solution:
x2 −1
2
x + x−2
Vertical Asymptote f ( x) =
x −1
2
Point of
discontinuity
36
Limits at Infinity and Horizontal
Asymptotes
37
Cont…
• In the first case, the graph of f will be close to
the horizontal line y = b for large (in absolute
value) negative x.
• In the second case, the graph will be close to the
horizontal line y = b for large positive x.
• Note: It is enough if one of these conditions is
satisfied, but frequently they both are.
Example
This figure shows the graph of a function with
two horizontal asymptotes, y = 1 and y = -1.
39
Horizontal Asymptotes of Rational Functions
If
am x m + am−1 x m−1 + + a1 x + a0
f ( x) = n −1
, am 0, bn 0
bn x + bn −1 x + + b1 x + b0
n
then am x m
lim f ( x) = lim
x → x → b x n
n
40
Cont…
2. If m = n, then the line y = am/bn is a horizontal asymptote for
f (x), i.e., am
lim f ( x) =
x → bm
Examples illustrating
Figure 3
Example 1:
Find
• Solution:
Observe that when x is large, 1/x is small. For instance,
=0
Example 1 continued
• It follows that the line y = 0 (the x-axis) is a horizontal asymptote of
the curve y = 1/x. (This is an equilateral hyperbola; see Figure 6.)
Figure 6
Example 2 continued
• Evaluate
Figure 7
DERIVATIVES
DERIVATIVE OF THE FUNCTION
y y2 − y1
b= =
x x2 − x1
DERIVATIVE OF THE FUNCTION
• If the function is non-linear:
E.g. if y = x2
40
30
y=x2
20
10
0
0 1 2 3
X 4 5 6
DERIVATIVE OF THE FUNCTION
y y2 − y1
x
= x2 − x1
gives slope of the line
connecting 2 points (x1, y1) and (x2,y2) on a
curve
• (2,4) to (4,16): slope = (16-4)
/(4-2) = 6
• (2,4) to (6,36): slope = (36-4)
/(6-2) = 8
51
DERIVATIVE OF THE FUNCTION
y (b, f(b))
(a, f(a))
Tangent
Line
a b x
Tangent Line
Definition: The tangent line to the graph of y =
f(x) at x = c is the line through the point (c, f(c))
with slope f ( x ) − f (c )
lim
x →c x−c
f ( x ) − f (c )
lim 2( x − 3)( x + 3)
x →c x−c = lim
x →3 x −3
2 x 2 + 3 − 21
lim
x →3 x −3 = lim 2( x + 3)
x →3
2 x 2 + −18
= lim = 12
x →3 x −3
= lim
(
2 x2 − 9 )
x →3 x −3
Symbols for derivatives
1
y = f ( x)
0 1 2 3 4 5 6 7 8 9
3
The derivative
is the slope of 2
the original The derivative is defined at the end points
1 of a function on a closed interval.
function.
0 1 2 3 4 5 6 7 8 9
-1
y = f ( x)
-2
→
Example 1: y = x −32
( x + h) − 3 − ( x − 3)
6 2 2
y = lim
5
4
3
2 h →0 h
1
-3 -2 -1 0 1 2 3
x
-1
-2
-3
x + 2 xh + h − x
2 2 2
y = lim
h →0 h
6
5
4
y = lim 2 x + h
3
2
1
-3 -2 -1 0
-1
1 2 3
x h →0
-2
-3
y = 2 x
-4
-5
-6
Example 2: Find the derivative of f(x) and use it to find
the equation of the tangent line at the point x = 4
f ( x) = 5 x − 3 x 2
f ' ( x) = lim
f ( x + h) − f ( x )
= lim
5( x + h ) − 3( x + h )
2
− (5 x − 3 2
x )
h →0 h h →0 h
5 x + 5h − 3x − 6 xh − 3h − 5 x + 3x
2 2 2
= lim
h →0 h
= lim 5 − 6 x − 3h
h →0
= 5 − 6x
Example 2 continued
• f(4)=5(4)-3(4)4 =-28
f ' (4) = 5 − 6(4) = −19
𝑑(𝑐𝑓) 𝑑𝑓
• For a function f and constant c, = c
𝑑𝑥 𝑑𝑥
• Example:
f(x)=3𝑥 4
𝑑 3𝑥 4 𝑑(𝑥 4 )
𝑓 ′ (x) = =3 = (3)(4)𝑥 3
𝑑𝑥 𝑑𝑥
The Sum-Difference Rule
If y = f(x) g(x)
dy d [ f ( x )] d [ g( x )]
=
dx dx dx
Solution:
Quotient Rule
Example
Find the derivative of
Solution:
Chain rule
• Composition of functions. Given two functions f and g, one can
define a new function called the composition of f and g.
• The notation for the composition is f ◦g, and it is defined by the
formula
𝑓𝑜𝑔 𝑥 = 𝑓(𝑔(𝑥))
• The domain of the composition is the set of all numbers x for
which this formula is well-defined.
• Example: If f(x) = 𝑥 2 + x and g(x) = 2x + 1 then
𝑓𝑜𝑔 𝑥 = 𝑓 𝑔 𝑥 = 𝑓 2x + 1
= (2x + 1)2 + (2x + 1) , and
g𝑜𝑓 𝑥 = 𝑔 𝑓 𝑥 = 𝑔 𝑥 2 + x
=2(𝑥 2 + x )+1
Chain rule
• The composition of functions arises as follows. If a
quantity z is a function of another quantity y, and if y
itself depends on x, then z depends on x via y.
• To get fog from the previous example, we could say z =
f(y) and y = g(x), so that z = f(y) = 𝑦 2 +y and y = 2x + 1.
• Given x one can compute y, and from y one can then
compute z. The result will be z = 𝑦 2 +y=(2x + 1)2 +(2x + 1),
• In other notation, z = f(y) = f(g(x))= fog(x).
Chain rule
• Theorem (Chain Rule). If f and g are differentiable, so the
composition fog also is differentiable.
• The derivative of fog is given by (fog)′ (x) = 𝑓 ′ (g(x)) 𝑔′ (x).
• Suppose that y = g(x) and z = f(y), then z = f ◦g(x), then
′ 𝒅𝒛 𝒅𝒛 𝒅𝒚
Chain rule : 𝒛= =
𝒅𝒙 𝒅𝒚 𝒅𝒙
Chain rule – Example
𝒅𝒛
Find given that, z = f(y) = 𝑦 2 + y and y = g(x) = 2x + 1
𝒅𝒙
Solution:
𝑑𝑧 𝑑𝑧 𝑑𝑦
=
𝑑𝑥 𝑑𝑦 𝑑𝑥
𝑑𝑧 𝑑𝑦
= 2y+1 and = 2, then
𝑑𝑦 𝑑𝑥
𝑑𝑧 𝑑𝑧 𝑑𝑦
= = (2y+1).(2)=4y+2
𝑑𝑥 𝑑𝑦 𝑑𝑥
The Power Rule and Chain Rule
𝑑
• Definition: (𝑓(𝑥)𝑛 )= n 𝑓(𝑥)𝑛−1 𝒇′ (x),
𝑑𝑥
2 5 𝑑𝑓
• Example: f(x) = (𝑥 + 3𝑥) , find
𝑑𝑥
𝑑𝑓 𝑑(𝑥 2 +3𝑥)
= 5(𝑥 2 + 3𝑥)4
𝑑𝑥 𝑑𝑥
ii) y = (4x + 3x – 7 )
3 4
let v = (4x + 3x – 7 ), so y = v
3 4
dy
dx
( 3 3
)(
= 4 4 x + 3 x − 7 . 12 x + 3
2
)
79
Try !!!
𝑑𝑓
Find for the following functions
𝑑𝑥
1. f(x) = 1 + 𝑥 3
2. f(x) = (1 +√1 + x)3
1
3. f(x) =
1+ 9+𝑥 2
The Inverse Function Rule 1
dy 1
=
If x = f(y) then dx dx
dy
• Examples
i) x = 3y2 then
dx dy 1
dy
= 6y so dx = 6 y
𝑑𝑓 −1 1
(𝑓 −1 (𝑥))′ = 𝑑𝑥
= 𝑑𝑓
ൗ𝑑𝑥
Example 1
𝑓 ′ (x) = 2-sin x
−1
1
𝑓 ’ 0 = ′ .
𝑓 0
1
=
2−sin 0
1
=
2
Example 2:
If f (x)= 2x5 + x3 + 1, find (a) f (1) and f '(1) and
(b) (f -1 )(1) and (f -1)’(1).
y=2x5 + x3 + 1. y’ = 10x4 + 3x2 is positive everywhere
f (1)=2(1)5 + (1)3 +1=4
−1 1
𝑓 (1)=
4
f '(x)=10x4 + 3x2
f ‘(1) = 10(1)4 +3(1)2 =13
-1)’(1)= 1 1
(f =
f ‘(1) 13
DERIVATIVES OF EXPONENTIAL
FUNCTIONS
• If f(u)= 𝑒 𝑢 , then
′ 𝑑(𝑢)
𝑓 𝑥 = 𝑒 𝑢 , where u = g(x)
𝑑𝑥
𝑥 3 −5x
• Example: f(x)=𝑒
2 𝑥 3 −5x
=(3𝑥 -5) 𝑒
Derivatives of exponential functions
(More examples)
𝑑𝑓
• Find for the following functions
𝑑𝑥
1. f(x)= 𝑒 2𝑥
𝑥2
2. f(x)= 2𝑒
3. f(x)= sin−1 (𝑒 3𝑥 )
Implicit differentiation
d 2 2 d
( x + y ) = (25)
dx dx
d 2 d 2
(x ) + ( y ) = 0
dx dx
Example 1 continued
• Remembering that y is a function of x and using
the Chain Rule, we have:
d 2 d 2 dy dy
(y ) = (y ) = 2y
dx dy dx dx
dy
2x + 2 y =0
dx
𝑑𝑦 𝑑𝑦 −𝑥
• Then, make the subject to get =
𝑑𝑥 𝑑𝑥 𝑦
Implicit differentiation
• Example 2:
(a) Find y’ if x3 + y3 = 6xy.
(b) Find the tangent to the function
x3 + y3 = 6xy at the point (3, 3).
• Solution:
(a) Differentiating both sides of x3 + y3 = 6xy with respect to x,
regarding y as a function of x, and using the Chain Rule on y3
and the Product Rule on 6xy, we get:
y y '− 2 xy ' = 2 y − x
2 2
( y − 2 x) y ' = 2 y − x
2 2
2y − x 2
y'= 2
y − 2x
Implicit differentiation-Example 2
(b) When x = y = 3, 23 − 32
y' = = −1
3 − 23
2
𝑑 𝑦 𝑑
(𝑒 )= (x)
𝑑𝑥 𝑑𝑥
𝑦 𝑑𝑦 𝑑𝑦 1 1 𝑑
𝑒 = 1→ = 𝑦= (x)
𝑑𝑥 𝑑𝑥 𝑒 𝑥 𝑑𝑥
𝑑 1 𝑑𝑢
(ln 𝑢)=
𝑑𝑥 𝑢 𝑑𝑥
Derivatives of logarithmic functions
(More examples)
1. f(x)=ln 𝑥 2 ,
1 𝑑(𝑥 2 )
𝑓′ 𝑥 = 2
𝑥 𝑑𝑢
1 2
= 2(2x)=
𝑥 𝑥
3
2. f(x) =ln (𝑥 -5x)
′ 1 𝑑(𝑥 3 −5x)
𝑓 𝑥 =
𝑥 3 −5x 𝑑𝑢
1
= 3 (3𝑥 2 − 5)
𝑥 −5x
Derivatives of Trigonometric Functions
′ 𝒅𝒇 𝒅𝒇 𝒅𝒖
𝒇= =
𝒅𝒙 𝒅𝒖 𝒅𝒙
𝒅𝒇 𝒅𝒖
=cos u and =2
𝒅𝒖 𝒅𝒙
𝑑𝑓
= (cos u)(2)=2cos (2x)
𝑑𝑥
Chain rule on Trigonometric Functions
3 𝑑𝑓
• Example 2: f(x) = cos(𝑥 -2x), find
𝑑𝑥
′ 𝒅𝒇 𝒅𝒇 𝒅𝒖
𝒇= =
𝒅𝒙 𝒅𝒖 𝒅𝒙
𝒅𝒇 𝒅𝒖
= -sin (u) and =3𝑥 2 -2
𝒅𝒖 𝒅𝒙
𝑑𝑓
= (-sin (u) )(3𝑥 2 -2) = - (3𝑥 2 -2) sin (𝑥 3 -2x)
𝑑𝑥
Inverse Trigonometric Functions
Inverse Trigonometric Functions
sin 𝑦 = 𝑥 cos 𝑦 = 𝑥
𝑑 𝑑 𝑑 𝑑
sin 𝑦 = 𝑥 cos 𝑦 = 𝑥
𝑑𝑥 𝑑𝑥 𝑑𝑥 𝑑𝑥
𝑑𝑦 𝑑𝑦
cos 𝑦 =1 − sin 𝑦 =1
𝑑𝑥 𝑑𝑥
𝑑𝑦 1 1 𝑑𝑦 1 1
= = = =−
𝑑𝑥 cos 𝑦 1 − 𝑠𝑖𝑛2 𝑦 𝑑𝑥 −𝑠𝑖𝑛 𝑦 1 − 𝑐𝑜𝑠 2 𝑦
𝑑 1 𝑑 1
𝑎𝑟𝑐 sin 𝑥 = 𝑎𝑟𝑐 cos 𝑥 = −
𝑑𝑥 1 − 𝑥2 𝑑𝑥 1 − 𝑥2
𝑦 = arc 𝑡𝑎𝑛 𝑥 𝑦 = 𝑡𝑎𝑛−1 𝑥 𝑦 = arc 𝑐𝑜𝑡 𝑥 𝑦 = 𝑐𝑜𝑡 −1 𝑥
𝑡𝑎𝑛 𝑦 = 𝑥 𝑐𝑜𝑡 𝑦 = 𝑥
𝑑 𝑑 𝑑 𝑑
𝑡𝑎𝑛 𝑦 = 𝑥 co𝑡 𝑦 = 𝑥
𝑑𝑥 𝑑𝑥 𝑑𝑥 𝑑𝑥
• Solution:
𝑓 ′ x = 3𝑥 3 − 6𝑥
𝑓 ′′ x = 9𝑥 2 − 6
𝑓 ′′′ x = 18𝑥
Implicit differentiation and higher
order derivatives
2 x3 − 3 y 2 = 7 y 2 x − x 2 y
y =
y2
6 x − 6 y y = 0
2
2x x 2
y = − 2 y
y y Substitute y
back into the
−6 y y = −6 x 2
2x x 2 x 2 equation.
y = − 2
−6 x 2 y y y
y =
−6 y
2x x 4
x2 y = − 3
y = y y
y →
DERIVATIVES
f
= 2x − y 2
x
f
= −2 xy + 3 y 2
y
Example 1 Cont…
(ii) The change of f in the x-direction at the point (1, 2)
is given by
f
= 2(1) − 2 = −2
2
x (1,2)
• The change of f in the y-direction at the point (1, 2) is given
by
f
= −2(1)(2) + 3(2) 2 = 8
y (1,2)
Example 2:
• Find the first partial derivatives of the function
xy
w( x, y ) = 2
x + y2
Solution
• To compute ∂w/∂x, think of the variable y as a
constant and differentiate the resulting function
of x with respect to x:
xy
w( x, y ) = 2 2
x +y
w ( x + y ) y − xy (2 x )
2 2 𝜕𝑤 𝑥 2 + 𝑦 2 𝑥 − 𝑥𝑦(2𝑦)
=
=
𝜕𝑦 (𝑥 2 + 𝑦 2 )2
x (x + y )
2 2 2
y( y − x )2 2
= 2
(x + y )
2 2
Example 2 Cont…
𝜕𝑤 𝑥 2 +𝑦 2 𝑥−𝑥𝑦(2𝑦)
=
𝜕𝑦 (𝑥 2 +𝑦 2 )2
𝑥(𝑦 2 − 𝑥 2 )
= 2
(𝑥 + 𝑦 2 )2
The Cobb-Douglas Production Function
2/3
1 −2/3 x
f y = 30 x 2/3
y = 10
3 y
2 f
f yy 2 = ( f y )
y y
2 f
f yx = ( fy)
xy x
• Thus, four second-order partial derivatives of a function of
two variables can be obtained :
f 2 f
x = 2
f x x x
x f 2 f
x
=
y y x yx
2 f 2 f
f =
yx xy
f 2 f
= When both are
f x x y xy continuous
y
y f 2 f
= 2
y y y y
Example 1:
• Find the second-order partial
derivatives of the function
f ( x, y ) = x − 3x y + 3xy + y
3 2 2 2
Solution
• First, calculate fx and use it to find fxx
and fxy:
fx = ( x − 3x y + 3xy + y )
3 2 2 2
x
Example 6, page 552 = 3x 2
− 6 xy + 3 y 2
Example 1 Continued
f xx = (3x 2 − 6 xy + 3 y 2 ) f xy = (3x − 6 xy + 3 y )
2 2
x y
= 6x − 6 y = −6 x + 6 y
= 6( x − y ) = 6( y − x )
Example 1 Continued
=6x+2 =-6x+6y
= 6(y-x)
Example 2:
• Find the second-order partial derivatives
of the function
f ( x, y ) = e xy 2
Solution
• First, calculate fx and use it to find fxx and
fxy:
fx = xy 2
(e )
x
2 xy 2
f xx = ( y e ) f xy = 2 xy 2
(y e )
x y
=ye 4 xy 2
= 2 ye + 2 xy e
xy 2 3 xy 2
= 2 ye (1 + xy )
xy 2 2
Example 2 Continued
• Calculate fy and use it to find fyy and fyx:
𝒙𝒚𝟐
𝝏(𝒆 ) 𝒙𝒚 𝟐
𝒇𝒚 = =2xy𝒆
𝝏𝒚
𝟐
𝝏(2xy 𝒆𝒙𝒚 ) 𝒙𝒚 𝟐 𝟐 𝟐 𝒙𝒚 𝟐
𝒇 𝒚𝒚 = =2x𝒆 + 4𝒙 𝒚 𝒆
𝝏𝒚
𝟐
𝝏(2xy 𝒆𝒙𝒚 ) 𝒙𝒚 𝟐 𝟑 𝒙𝒚 𝟐
𝒇𝒚𝒙= 𝝏𝒙
=2y𝒆 + 2x𝒚 𝒆
Maximum and minimum values
Maximum and minimum values
• Some of the most important applications of differential calculus
are optimization problems, in which we are required to find the
optimal (best) way of doing something.
categories
of
Optimization
Unconstrained Constrained
Optimization Optimization
Unconstrained optimization
• Unconstrained Optimization involves finding the
optimum(maximum or minimum values) of
functions without placing
restrictions/constraints/conditions upon the
values.
Figure 1
IMPORTANT DEFINITIONS
Figure 1
MAXIMUM AND MINIMUM VALUES
• There are two points (a, b) where f has a local
maximum or a relative maximum, that is, where f (a, b)
is larger than nearby values of f (x, y).
• The larger of these two values is the absolute
maximum.
• Likewise, f has two local minima or relative minima,
where f (a, b) is smaller than nearby values.
• The smaller of these two values is the absolute
minimum .
IMPORTANT DEFINITIONS
Let f be a function defined on a region R containing the
point (a, b).
• Definition: A function of two variables has a local
maximum or a relative maximum at the point (a,b) if
f(x,y)≤f(a,b) when (x,y) is near (a,b). The value f(a,b)
is called a local maximum value or a relative
maximum value
• If f(x,y)≥ f(a,b) when (x,y) is near (a,b), the value
f(a,b) is called a local minimum value or a relative
minimum value
Fermat’s Theorem for Functions of two variables
(a, b)
x
Relative/Local Minima
• Thus, at a minimum point, the graph of the function
has a slope of zero along a direction parallel to the x-
axis:
z
f
( a , b) = 0
x
(a, b)
x
Relative/Local Minima
• Similarly, at a minimum point, the graph of the
function has a slope of zero along a direction parallel
to the y-axis:
z
f
( a , b) = 0
y
(a, b)
x
Relative/Local Maxima
• Thus, at a maximum point, the graph of the function
has a slope of zero along a direction parallel to the
x-axis:
z
f
( a , b) = 0
x
y
(a, b)
x
Relative/Local Maxima
• Similarly, at a maximum point, the graph of the
function has a slope of zero along a direction parallel
to the y-axis:
z
f
( a , b) = 0
y
y
(a, b)
x
Critical point of a function f(x,y)
f (x, y ) = x − 2 xy + 3 y + 4 x − 16 y + 22
2 2
Example 3 continued
SOLUTION
𝜕𝑓 𝜕𝑓
=2x-2y+4=0 =-2x+6y-16=0
𝜕𝑥 𝜕𝑥
Solution:
𝜕𝑅 𝜕𝑅
= 98-0.04y-0.2x = 0 = 112-0.04x-0.4y = 0
𝜕𝑥 𝜕𝑦
Solution:
• Testing
𝑅𝑥𝑥 x, y = −0.2, 𝑅𝑦𝑦 x, y = −0.4,
𝑅𝑥𝑦 x, y = −0.04
𝐹 = 𝑓 𝑥, 𝑦 − 𝝀g(x,y)
𝜕𝐹
𝐹𝑥 = = 𝑓𝑥 -𝝀𝑔𝑥 =0
𝜕𝑥
𝜕𝐹
𝐹𝑦 = = 𝑓𝑦 -𝝀𝑔𝑦 =0
𝜕𝑦
𝜕𝐹
𝐹𝝀 = = 𝑓𝝀 -𝝀𝑔𝝀 =0
𝜕𝝀
Lagrange Multipliers
Find 𝑦 when:
𝑑𝑦
= 4𝑥 3 𝑦 = 𝑥4 + 𝑐
𝑑𝑥
𝑑𝑦 1 6
= 𝑥5 𝑦= 𝑥 +𝑐
𝑑𝑥 6
𝑑𝑦 1 2 3 3
= 3𝑥 2 𝑦=3 𝑥 2 + 𝑐 = 2𝑥 2 + 𝑐
𝑑𝑥 3
𝑑𝑦
= 2𝑥 + 7 𝑓 𝑥 = 𝑥 2 + 7𝑥 + 𝑐
𝑑𝑥
INTEGRATION NOTATION
Consider the integral
∫ 𝑓 ′ (𝑥) 𝑑𝑥 = 𝑓(𝑥) + 𝑐
“Integrate…”
“…with respect to 𝑥”
“…this expression”
𝑛 𝑎 𝑛+1
∫ 𝑎𝑥 dx=𝑛+1 𝑥 +c, if n≠ −1
Definite integrals
𝑏
• Definition:Definite integral ∫𝑎 𝑓(𝑥) is the
integral with a function f defined on a finite
interval [a, b] .
• The definite integrals are evaluated using the
Fundamental Theorem of Calculus. This is stated
in the next slide.
𝐿𝑒𝑡 𝑓 𝑏𝑒 𝑎 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑐𝑜𝑛𝑡𝑖𝑛𝑢𝑜𝑢𝑠 𝑜𝑛 𝑎, 𝑏
.
1. න 𝑓 𝑥 𝑑𝑥 = 𝐹 𝑏 − 𝐹(𝑎)
𝑎
3 2 3
2. ∫−3 𝑥 𝑑𝑥 = 2𝑥 −3 = 2(3)-2(-3) = 12
2 5 −5Τ 𝑥 −3 2
3. ∫−1 ൗ𝑥 4 dx = 3 −1 = 15Τ8
Properties of integrals
𝑏 𝑏 𝑏
1. ∫𝑎 𝑓(𝑥) ± 𝑔(𝑥) dx=∫𝑎 𝑓 𝑥 𝑑𝑥 ± ∫𝑎 𝑔 𝑥 𝑑𝑥 Sum-Subtract property
𝑏 𝑏
2. ∫𝑎 𝑘. 𝑓(𝑥)dx=k ∫𝑎 𝑓(𝑥)dx Constant multiples property
𝑎
3. ∫𝑎 𝑓 𝑥 𝑑𝑥 = 0, 𝑖𝑓 𝑎 = 𝑏 Equal upper and lower limits
𝑏 𝑎
4. ∫𝑎 𝑓(𝑥)dx = -∫𝑏 𝑓 𝑥 𝑑𝑥 Limits reversing property
𝑐 𝑏 𝑐
5. ∫𝑎 𝑓(𝑥)dx = ∫𝑎 𝑓(𝑥)dx + ∫𝑏 𝑓(𝑥)dx Partition property
Techniques of Integration
• In this section, we examine some techniques
that are frequently successful when seeking
antiderivatives of functions.
• The following are the methods that will be
discussed
(i) Substitution method
(ii) Integration by Parts
SUBSTITUTION METHOD
• In this method, we need to rewrite the original
function so that the expression can be made simpler
to integrate.
• Example 1:
Evaluate ∫(𝒂𝒙 + 𝒃)𝒏 dx, assuming that a and b
are constants, a≠ 0 and n is an integer.
Solution:
𝑑𝑢 𝑑𝑢
Let 𝑢 = 𝑎𝑥 + 𝑏, 𝑑𝑥
= a → 𝑑𝑥 = 𝑎
𝑛 𝑛 𝑑𝑢 𝑢𝑛+1
∫(𝑎𝑥 + 𝑏) dx=∫ 𝑢 . 𝑎 = 𝑎(𝑛+1)
+c
𝑛 (𝑎𝑥+𝑏)𝑛+1
But 𝑢 = 𝑎𝑥 + 𝑏, so ∫(𝑎𝑥 + 𝑏) dx= +c
𝑎(𝑛+1)
SUBSTITUTION METHOD
• Example 2:
2 2
Evaluate ∫−1 4𝑥 3
3 3
𝑥 4 + 1 dx, Answer is 3((17) Τ2- (3) Τ2)
• Example 3:
−1
∫ 𝑠𝑖𝑛(𝑎𝑥 + 𝑏)dx, answer is 𝑎
cos(𝑎𝑥 + 𝑏)+ c
• Example 3:
2 −1
∫ 𝑥𝑠𝑖𝑛(𝑥 )dx, answer is 2
cos 4 − cos 16
INTEGRATION OF POWERS OF SINE AND COSINE
• Functions consisting of products of the sine and cosine can be
integrated by using substitution and trigonometric identities.
• Examples:
1. Evaluate ∫ 𝑠𝑖𝑛5 𝑥 𝑑𝑥
Soln: ∫ 𝑠𝑖𝑛5 𝑥 𝑑𝑥= ∫ sin 𝑥 (𝑠𝑖𝑛2 𝑥)2 𝑑𝑥= ∫ sin 𝑥 (1 − 𝑐𝑜𝑠 2 𝑥)2 𝑑𝑥
Let u = cos x, du= -sin x dx
∫ 𝑠𝑖𝑛5 𝑥 𝑑𝑥= ∫ −(1 − 𝑢2 )2 𝑑𝑥
= -cos x+2Τ3 𝑐𝑜𝑠 3 𝑥 -1Τ5 𝑐𝑜𝑠 5 𝑥
2. Evaluate ∫ 𝑠𝑖𝑛6 𝑥 𝑑𝑥,
Soln: use 𝑠𝑖𝑛2 𝑥 =1Τ2 (1- cos(2𝑥)) to rewrite the function
Trigonometric Substitutions
• Examples:
1. Evaluate ∫ 1 − 𝑥 2 dx, Let 𝑥 = sin 𝑢 so 𝑑𝑥 = cos 𝑢 𝑑𝑢.
2 1+cos 2𝑢
Then ∫ 1 − 𝑥2 dx=∫ 𝑐𝑜𝑠 u du=∫ du
2
𝑢 sin 2𝑢
= + +c
2 4
sin−1 𝑥 sin(2 sin−1 𝑥)
= + +c
2 4
2. Evaluate i) ∫ 4 − 9𝑥 2 dx ii) ∫ 1 + 𝑥 2 dx
INTEGRATION BY PARTS
• If we let u=f(x) and v=g(x), then du=𝑓 ′ (x)dx , dv= 𝑔′ (x)dx and
න 𝐮𝐝𝐯 = 𝐮𝐯 − න 𝐯𝐝𝐮
2. ∫𝑥 𝑒 𝑥 dx
AREAS UNDER THE CURVE
𝒂
Earlier we saw that the definite integral ∫𝒃 𝒇(𝒙) 𝒅𝒙 gives
𝐴𝑟𝑒𝑎
𝐴𝑟𝑒𝑎 = 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒
the area between a positive curve 𝑦 = 𝑓(𝑥), the 𝒙-axis,
and the lines 𝑥 = 𝑎 and 𝑥 = 𝑏.
𝑦 = 𝑓(𝑥)
𝑦
Area
𝑎 𝑥
𝑏
AREAS UNDER THE CURVE
𝑥
−5 4
MEAN VALUE THEOREM
1 b
f (c) = f ave =
b−a a
f ( x) dx
• that is,
f ( x) dx = f ( c )( b − a )
b
a
MEAN VALUE THEOREM
( )
2
+ = f (c)[2 − (−1)]
2
1 x dx
−1
• Therefore, 1 + c2 = 2.
• Thus, c2 = 1.
• So, in this case, there happen to be two numbers c = ±1 in
the interval [1, 2] that work in the Mean Value Theorem for
Integrals.
Improper integrals
t
a
f ( x) dx = lim f ( x) dx
t → a
provided this limit exists (as a finite number).
• Example 2: Find 0
−
xe x dx.
Solution: 0
−
0
x 0
x
xe dx. = lim xe dx = lim
x
xe − e =
x
lim ( −1 − ae a
+ e a
) = −1.
a →− a a →− a a →−
Improper integrals of type 1
1
− 1 + x
• Example 3: Evaluate
2
dx
• Solution:
-It’s convenient to choose a = 0 in Definition 2:
1 0 1 1
− 1 + x2 dx = − 1 + x2 dx + 0 1 + x2 dx
We must now evaluate the integrals on the right side separately—as
follows.
Example 2 continued
0 1 1
− 1 + x 2 dx 0 1 + x 2 dx
0 dx
= lim dx
t
t →− t 1 + x 2
= lim
t → 0 1 + x 2
0
= lim tan −1
x
t
t →− t = lim tan −1
x
t → 0
= lim (tan −1 0 − tan −1 t )
t →− = lim(tan −1 t − tan −1 0)
t →
= 0−− = lim tan −1 t
2 t →
= =
2 2
Example 2 continued
1
− 1 + x 2 dx = +
2 2
=
Example 2 continued
b t
a
f ( x) dx = lim− f ( x) dx
t →b a
b
• The improper integral
a
f ( x) dx is called:
b c b
a
f ( x) dx = f ( x) dx + f ( x) dx
a c
Improper integrals of type 2
(Discontinuous integrands)
5 1
• Example: Find dx
2
x−2
• Solution:
-First, we note that the given integral is improper because
f ( x) = 1/ x − 2 has the vertical asymptote x = 2.
-The infinite discontinuity occurs at the left end-point of [2, 5].
-So, we use Definition 3b:
Improper integrals of type 2
(Discontinuous integrands)
5 dx 5 dx
2
x−2
= lim+
t →2 t
x−2
5
= lim+ 2 x − 2
t →2 t
= lim+ 2( 3 − t − 2)
t →2
=2 3
• Thus, the given improper integral is convergent.
Improper integrals of type 2
(Discontinuous integrands)
• Since the integrand is positive, we can interpret the
value of the integral as the area of the shaded region
here.
DOUBLE INTEGRALS
Double Integrals and Volume of a Solid
Region
You know that a definite integral over an interval uses a
limit process to assign measures to quantities such as
area, volume, arc length, and mass.
= ( x + y ) dA
2 2
D
2 2x
= 2
( x + y ) dy dx
2 2
0 x
y =2 x
2 2 y 3
= x y + dx
0
3 y = x2
Evaluation of Double Integrals
2 2 (2 x ) 3
( x )
2 3
= x (2 x) + 3 − x x − 3 dx
2 2
0
2 x 6
14 x 3
= − 3 − x + 3
4
dx
0
2
x x7
7x
5 4
=− − +
21 5 6 0
216
=
35
Evaluation of Double Integrals
• From this figure, we see that D can also be written as a type II
region:
D = {(x, y) | 0 ≤ y ≤ 4, ½y ≤ x ≤ 𝑦
4 𝑦
𝑉 = ඵ(𝑥 2 + 𝑦 2 )𝑑𝐴 = න න (𝑥 2 + 𝑦 2 )𝑑𝑥𝑑𝑦
1
0 𝑦
𝐷 2
4 𝑥= 𝑦
𝑥3
=න + 𝑦2𝑥 𝑑𝑦
0 3 1
𝑥= 𝑦
2
4
𝑦 3/2 𝑦 3 𝑦 3
=න + 𝑦 5/2 − − 𝑑𝑦
0 3 24 2
𝑥𝑦 1 2
𝑒𝑥 dA=∫0 ∫−1 𝑥𝑒 𝑥𝑦 𝑑𝑥 dy (Use integration by parts)
• By definition,
B = {(x, y, z) | 0 x 1, –1 y 2, 0 z 3}
• Solution:
• We could use any of the six possible orders of integration.
What is sequence?
A sequence is a It can be a pattern of :
pattern/set/list that
• objects
follow a general rule (nth
term formula) • music
• letters
.
• or numbers
Here we deal with the
sequence of numbers
SEQUENCE AND SERIES
ar n −1
= a + ar + ar 2
+ + ar n
+
n =1
a2
r=
a1
SEQUENCE AND SERIES
• The sum of a finite Geometric series is given as
a1 (1 − r n )
sn =
1− r
• In other words
If lim 𝑆𝑛 does not exist, then the series diverges
𝑘→∞
• Note that S is the sum of the series
• Theorem: For a≠ 0, the geometric series σ∞ 𝑘=1 𝑎𝑟 𝑘
converges
𝑎1
to if |r|<1 and diverges if |r|≥1, where r is the
1−𝑟
common ratio.
• For example, the series σ∞ 𝑘=2 5( 1Τ )𝑘 converges to 5Τ since
3 6
r= Τ3 <1
1
Tests for convergence
• There are four tests for convergence.
These are
(i) Integral test
(ii) Comparison test
(iii) Ratio test
(iv) Root test
(i) Integral test
Example:
Cont…
P- Series
∞ 1
• The P-series σ𝑘=1 𝑝 converges if P> 1 and
𝑘
diverges if P≤ 1.
• For example:
σ∞ 1Τ converges since P=3> 1
𝑘=1 𝑘 3
Alternating series:
Example 1:
(ii) (a)Comparison test
Solution:
(b) Limiting comparison test:
Solution:
Alternating series:
Example 1:
(iii) Ratio test
• Given σ∞
𝑘=1 𝑎𝑘 , with 𝑎𝑘 ≠ 0 for all k and
𝑘
suppose that lim 𝑎𝑘 =L, then
𝑘→∞
(i) If L < 1, the series converges absolutely.
(ii) If L > 1 (or L=∞), the series diverges.
(iii) If L = 1, there is no conclusion.
Example:
Taylor’s and Maclaurin’s
series
Taylor Series and Maclaurin Series
f(x)=
Taylor Series and Maclaurin Series
f(x)=
Solution:
Successive differentiation of f(x) yields
f(x) = sin x f(0) = sin 0 = 0
f'(x) = cos x f'(0) = cos 0 = 1
f''(x) = –sin x f''(0) = –sin 0 = 0
Example 1 continued
Where 𝑅𝑛
Taylor Series and Maclaurin Series
ex =
𝑥𝑛𝑥 𝑛! 𝑥
= lim × = lim →0<1
𝑛→∞ 𝑛+1 𝑛! 𝑥𝑛 𝑛→∞ 𝑛+1
𝑥 𝑛+1
• OR lim 𝑅𝑛 = lim → 0,
𝑛→∞ 𝑛→∞ (𝑛+1)!
• The series f(x) = 𝑒 converges to 𝑒 𝑥
𝑥
Beta and Gamma functions
Gamma function
• Definition: The Gamma function (Γ(𝑥)) for x> 0 is defined by the
improper integral as
∞ 𝑥−1 −𝑡
Γ(x)=∫0 𝑡 𝑒 dt
• Properties of Gamma functions
1. The Gamma function (Γ(𝑥)) for x> 0 is convergent.
2. For x> 0, Γ(x+1)= xΓ(x).
3. For any positive integer n, Γ(n)=(n-1)!
4. Γ(1Τ2)= 𝜋
𝑛
5. Γ(n) Γ(1-n) = for 0< 𝑛 < 1
sin 𝑛𝜋
Gamma function
Γ(6) (6−1)! 5!
(b) = = = 30
2Γ(3) 2(3−1)! 2(2)!
Beta function
Definition: Beta function 𝛽 (x,y) is a two-parameter
composition of Gamma functions. It is defined as
1 𝑥−1
𝛽(x,y)=∫0 𝑡 (1 − 𝑡) 𝑦−1 dt
• If x≥ 1 𝑎𝑛𝑑 𝑦 ≥ 1, this is a proper integral
• If x> 1, 𝑦 > 1 and either or both x< 1 𝑜𝑟 𝑦 < 1, the integral
is improper but convergent.
The Beta function can be expressed through Gamma functions
in the following way:
Γ(x)Γ(y)
𝛽(x,y)=
Γ(x+y)
Beta function
1 4
Example 1: Evaluate ∫0 𝑥 (1 − 𝑥)3 dt by using Beta
function.
Solution:
1 4 3 1 5−1
∫0 𝑥 (1 − 𝑥) dt= ∫0 𝑥 (1 − 𝑥)4−1 dt = 𝛽(5,4)
Γ(5)Γ(4) (5−1)!(4−1)! 1
= = =
Γ(5+4) (9−1)! 280
(3) : F(x,y)=
( y− x )
y−x
Euler’s Theorem on Homogeneous
Function
𝜕𝑧 𝑛−1
𝑦 𝑛
𝑥 −𝑦
𝑁𝑜𝑤, = 𝑛𝑥 log + 𝑥 ∗
𝜕𝑥 𝑥 𝑦 𝑥2
𝑦
= 𝑛𝑥 𝑛−1 log − 𝑥 𝑛−1
𝑥
𝑛
𝜕𝑧 𝑥 1 𝑥
𝑎𝑛𝑑 = 𝑥𝑛 ∗ ∗ =
𝜕𝑦 𝑦 𝑥 𝑦
Euler’s Theorem on Homogeneous
Function
𝑛
𝜕𝑧 𝜕𝑧 𝑦 𝑥
∴𝑥 +𝑦 = 𝑥 𝑛𝑥 𝑛−1 log − 𝑥 𝑛−1 + 𝑦 ∗
𝜕𝑥 𝜕𝑦 𝑥 𝑦
𝑦
=𝑛 𝑥 log − 𝑥 𝑛 + 𝑥 𝑛
𝑛
𝑥
𝑛
𝑦
= 𝑛 𝑥 log
𝑥
=nz
THE END OF TOPIC 2