EMS 112-Topic 2-Calculus-2
EMS 112-Topic 2-Calculus-2
MATHEMATICS 1
To all B.Sc.IEM I Students
By:
Masoud Amri Komunte
Department of mathematics and Statistics Studies (MSS)
Mzumbe University
1. Differentiation
2. Integration
3. Taylor’s theorem and Maclaurin’s theorem
2
SUB-TOPIC 1:
DIFFERENTIATION
A. Total Differentiation
3.Some applications
B. Partial Differentiation
1. Definitions.
2. First order and second order partial derivatives
3. Applications optimization and finding maximum and minimum
values for a function of two variables
3
A. Total Differentiation
•Definition
•Evaluation of Limits
•Continuity
•Limits Involving Infinity
4
Limit
We say that the limit of f ( x) as x approaches a is L and write
lim f ( x) L
x a
y f ( x)
L
5
Limits, Graphs, and Calculators
x 1
1. a) Use table of values to guess the value of lim 2
x 1 x 1
x 1
b) Use your calculator to draw the graph f ( x) 2
x 1
and confirm your guess in (a)
2. Find the following limits
sin x
a) lim by considering the values
x 0
x
x 1, 0.5, 0.1, 0.05, 0.001. Thus the limit is 1.
sin x
Confirm this by ploting the graph of f ( x)
x
6
x by considering the values
b) lim sin
x 0
(i) x 1, 1 , 1 , 1
10 100 1000
(ii) x 1, 2 , 2 , 2
3 103 1003
This shows the limit does not exist.
x
Confrim this by ploting the graph of f ( x) sin
7
3x if x 2
c) Find lim f ( x) where f ( x)
x 2
1 if x 2
lim f ( x) = lim 3x
x 2 x 2
6 3 lim x
x 2
is not involved -2
8
3) Use your calculator to evaluate the limits
4( x 2 4) Answer : 16
a. lim
x 2
x 2
9
One-Sided Limit
One-Sided Limits
The right-hand limit of f (x), as x approaches a,
equals L
written: lim f ( x) L
xa
if we can make the value f (x) arbitrarily close
to L by taking x to be sufficiently close to the
right of a.
y f ( x)
L
10
The left-hand limit of f (x), as x approaches a,
equals M
written: lim f ( x) M
xa
M
a
11
Examples
Find lim f ( x)
x3
lim f ( x) lim 2 x 6
x3 x3
Find lim f ( x)
x3
lim f ( x) lim x 2 9
x 3 x 3
12
More Examples
x 1, if x 0
2. Let f ( x)
x 1, if x 0. Find the limits:
a) lim f ( x) lim ( x 1) 0 1 1
x 0 x 0
b) lim f ( x) lim ( x 1) 0 1 1
x 0 x 0
c) lim f ( x) lim(
x 1) 1 1 2
x 1 x 1
13
A Theorem
lim f ( x) L if and only if lim f ( x) L and lim f ( x) L.
x a x a x a
But
lim f ( x) 2 because lim f ( x) 2 and lim f ( x) 2.
x 1 x 1 x 1
14
Limit Rules
If c is any number, lim f ( x) L and lim g ( x) M , then
x a x a
a) lim f ( x) g ( x) L M b) lim f ( x) g ( x) L M
x a x a
c) lim f ( x) g ( x) L M
xa
d)
x a
lim f ( x)
g ( x) L , ( M 0)
M
e) lim c f ( x) c L f) lim f ( x) Ln
n
xa
x a
g) lim c c h) lim x a
x a x a
i) lim x n a n j) lim f ( x) L , ( L 0)
x a x a
15
Examples Using Limit Rule
Ex. lim x 2 1 lim
x3
x 2 lim1
x3
x 3
lim1
2
lim x
x 3 x 3
32 1 10
2 1 1
35 8
16
More Examples
1. Suppose lim f ( x) 4 and lim g ( x) 2. Find
x 3 x 3
a) lim f ( x) g ( x) lim
x 3
f ( x) lim g ( x)
x 3
x 3
4 (2) 2
4 (2) 6
2 f ( x) g ( x) lim 2 f ( x) lim g ( x) 2 4 (2) 5
c) lim x 3 x 3
x 3
f ( x) g ( x) lim f ( x) lim g ( x) 4 (2) 4
x 3 x 3
17
Indeterminate Forms
18
More Examples
x 3 ( x 3)( x 3)
a) lim
= lim
x 9 ( x 9)( x 3)
x 9 x 9
x 9 1 1
lim 6
x 9
lim
x 9 ( x 9)( x 3)
x 3
4 x2 (2 x)(2 x)
b) lim 2 = lim
x 2 2 x x 3
x 2 x 2 (2 x)
2 x
= lim
x
x 2 2
2 (2) 4
1
(2) 2
4
19
The Squeezing Theorem
If f ( x) g ( x) h( x) when x is near a, and if
lim f ( x) lim h( x) L, then lim g ( x) L
x a x a x a
Example: Show that lim x 2 sin 0.
x
x DNE!
x 0
Note that we cannot use product rule because lim sin
x 0
But 1 sin x
1 and so x 2 x 2 sin x 2 .
x
Since lim x 2 lim( x 2 ) 0, we use the Squeezing Theorem to conclude
x 0 x 0
x 0.
lim x 2 sin
x 0
20
Continuity
f(a)
21
A function f is continuous at the point x = a if
the following are true:
i) f (a) is defined
ii ) lim f ( x) exists
xa
iii ) lim f ( x) f (a )
x a f(a)
22
Examples At which value(s) of x is the given function
discontinuous?
x 9
2
1. f ( x) x 2 2. g ( x)
x3
Continuous everywhere
Continuous everywhere
lim( x 2) a 2
x a
except at x 3
6 2
4 -6 -4 -2 2 4
-2
2
-4
-6
-4 -2 2 4
-2 -8
-10
23
x 2, if x 1 1, if x 0
3. h( x) 4. F ( x)
1, if x 1 1, if x 0
lim F ( x) 1 and xlim F ( x) 1
lim h( x) 1
x 1
and lim h( x)
x 1
3 x 0 0
3
4
3 2
2
1
-10 -5 5 10
-2 2 4
-1
-1
-2
-2
-3 -3
24
Continuous Functions
If f and g are continuous at x = a, then
f g , fg , and f
g g (a) 0 are continuous
at x a
25
Intermediate Value Theorem
If f is a continuous function on a closed interval [a, b]
and L is any number between f (a) and f (b), then there
is at least one number c in [a, b] such that f(c) = L.
y f ( x)
f (b)
f (c) = L
f (a)
a c b
26
Example
Given f ( x) 3x 2 2 x 5,
Show that f ( x) 0 has a solution on 1, 2.
f (1) 4 0
f (2) 3 0
27
Limits at Infinity
1 1
For all n > 0, lim n lim n 0
x x x x
1
provided that n is defined.
x
3x 5 x 1
2 3 5 1
lim
x x 2 Divide
Ex. xlim 2
2 4x 2 x 2 4 by x
x2
lim 3 lim 5
x x
x lim 1 x 3 0 0 3
x
2
lim 2
x
x2 lim 4
x
04 4
28
More Examples
2 x3 3x 2 2
2 x3 3x 2 2 3
3 3
1. lim 3
x x x 2 100 x 1
lim 3 x 2 x x
x x
x 100 x 1
3
x x 3
x 3
x 3
3 2
2 x x3
lim
x 1 100 1
1 2 3
x x x
2
2
1
29
4 x 5 x 21
2 x2 2x 4
2. lim 3 3. lim
x 7 x 5 x 2 10 x 1
x
12 x 31
x2 2 x 4
4 x 2 5 x 21
3 3
3 lim x x x
lim 3 x x x
2
x
12 x 31
x 7 x
5 x 10 x 1 x x
3 3 3 3
x x x x
4 5 21 4
lim
x x 2 x3
x2 x
lim
31
x 5 10 1
7 2 3 x
x x x 12
0 x
2
7
12
0
30
4. lim
x
x 1 x
2
lim
x2 1 x x 1 x
2
x
1 x2 1 x
x2 1 x2
lim
x
x 1 x
2
1
lim
x
x 1 x
2
1 1
0
31
A. TOTAL DIFFERENTIATION
-DERIVATIVE OF A FUNCTION
f a h f a
lim
h 0
is called the derivative of f at a.
h
f x h f x
We write: f x lim
h 0 h
“The derivative of f with respect to x is …”
32
Derivative of a Function
4
The derivative is 2
the slope of the
1
y f x
original function.
0 1 2 3 4 5 6 7 8 9
3
33
Derivative of a Function
6
y x2 3
5
4
3
2
1
x h
0 2
3 x2 3
-3 -2 -1 1 2 3
x
-1
y lim
-2
-3
6 h 0 h
5
4
y lim 2 x h
3
2
h 0
1
-3 -2 -1 0 1 2 3
-1 x
-2
-3 y 2 x
-4
-5
-6
34
Derivative of a Function
35
Differentiability
f x x 2
f x x3
corner cusp
1, x 0
f x 3
x f x
1, x 0
36
Differentiability
37
Differentiability
Intermediate Value Theorem for Derivatives
If a and b are any two points in an interval on which f is
differentiable, then f takes on every value between f a and
f b .
f b 3
38
Rules/Techniques for Differentiation
d example: y 3
c 0
dx y 0
39
Rules/Techniques for
Differentiation
We saw that if y x 2 , y 2 x .
examples:
d n
dx
x nx n 1
f x x 4 y x8
f x 4 x3 y 8x7
power rule
40
Rules/Techniques for
Differentiation
Proof:
d n
x nx n 1 d n ( x h) n x n
dx x lim
dx h0 h
d n x n nx n1h ... hn x n
x lim
dx h0 h
d n nx n1h ... hn
x lim
dx h0 h
d n
x lim nx n 1 nx n 1
dx h 0
41
Rules/Techniques for
Differentiation
42
Rules/Techniques for
Differentiation
d du
constant multiple rule: cu c
dx dx
sum and difference rules:
d du dv d du dv
u v u v
dx dx dx dx dx dx
y x 12 x
4 y x 4
2 x 2
2
(Each term
dyis treated separately)
y 4x 12
3
4 x 3
4x
dx
43
Rules/Techniques for
Differentiation
Find the horizontal tangents of:
dy
y x4 2 x2 2 4 x3 4 x
dx
Horizontal tangents occur when slope = zero.
4 x3 4 x 0 Substituting the x values into
x3 x 0 the original equation, we get:
y 2, y 1, y 1
x x 2 1 0
(The function is even, so we
x x 1 x 1 0 only get two horizontal
x 0, 1, 1 tangents.)
44
Rules/Techniques for
Differentiation
4
y x4 2 x2 2
3
2 y2
1 y 1
-2 -1 0 1 2
-1
-2
45
Rules/Techniques for
Differentiation
4
y x4 2 x2 2
3
dy
1 4 x3 4 x
dx
-2 -1 0 1 2
-1
First derivative -2
(slope) is zero at:
x 0, 1, 1
46
Rules/Techniques for
Differentiation
product rule:
d u ( x h )v ( x h ) u ( x )v ( x )
d
uv u
dv
v
du (uv) lim
dx h0 h
dx dx dx
add and subtract u(x+h)v(x)
Proof
in the numerator
d u ( x h )v ( x h ) u ( x )v ( x ) u ( x h )v ( x ) u ( x h )v ( x )
(uv) lim
dx h0 h
d u ( x h)v( x h) v( x) v( x)u ( x h) u ( x)
(uv ) lim
dx h 0
h
d dv du
(uv) u v
dx dx dx
47
Rules/Techniques for
Differentiation
product rule:
d dv du
uv u v Notice that this is not just the
dx dx dx
product of two derivatives.
This is sometimes memorized as: d uv u dv v du
d 2
dx x 3 2 x 3 5 x
x 2 3 6 x 2 5 2 x3 5 x 2x
d
dx
2 x 5 5 x 3 6 x 3 15 x
d
dx
2 x 5 11x 3 15 x 6 x 4 5x 2 18x 2 15 4 x 4 10 x 2
10 x4 33x2 15 10 x4 33x2 15
48
Rules/Techniques for
Differentiation
quotient rule:
du dv
v u u v du u dv
d u dx dx d
or
v v2
dx v v 2
d 2 x3 5 x
x 2 3 6 x 2 5 2 x3 5 x 2 x
dx x 3
2 2
x 3
2
49
Rules/Techniques for
Differentiation
Suppose u and v are functions that are differentiable at
x = 3, and that u(3) = 5, u’(3) = -7, v(3) = 1, and v’(3)= 4.
Find the following at x = 3 :
d d
1. (uv ) (uv ) uv ' vu' 5(3) (1)(7) 8
dx dx
d u d u vu'uv ' (1)( 7) (5)( 4)
2. 27
dx v dx v v2 1 2
50
Rules/Techniques for
Differentiation
Chain Rule
Consider a simple composite function:
y 6 x 10 y 6 x 10 y 2u u 3x 5
y 2 3x 5
dy dy du
6 2 3
If u 3x 5 dx du dx
then y 2u
6 23
dy dy du
dx du dx
51
Rules/Techniques for
Differentiation
dy dy du
Chain Rule:
dx du dx
If fog is the composite of y f u and u g x ,
then:
f x cos x g x 2x g 2 4 4 0
f 0 g 2 cos 0 2 2 1 4 4
52
Rules/Techniques for
Differentiation
Chain Rule:
f g x sin x 2 4
cos x 2 4 2 x
dy
y sin x 2 4 dx
y sin u u x2 4
cos 22 4 2 2
dy
dy du
cos u 2x dx
du dx
dy
cos 0 4
dy dy du dx
dx du dx
dy
dy
cos u 2 x 4
dx dx
53
Rules/Techniques for
Differentiation
Chain Rule:
Here is a faster way to find the derivative:
y sin x 2 4
y cos x 2 4 x 4
d 2
Differentiate the outside function...
dx
At x 2, y 4
54
Rules/Techniques for
Differentiation
Chain Rule:
d
d cos 3x
2
cos 2 3 x
dx dx
d
2 cos 3x cos 3 x
dx
d The chain rule can be used
2 cos 3x sin 3 x 3 x more than once.
dx
2 cos 3x sin 3 x 3 (That’s what makes the
“chain” in the “chain rule”!)
6 cos 3x sin 3x
55
Rules/Techniques for
Differentiation
Chain Rule:
Derivative formulas include the chain rule!
d n du d du
u nu n 1 sin u cos u
dx dx dx dx
d du d du
cos u sin u tan u sec 2 u
dx dx dx dx
56
Rules/Techniques for
Differentiation
Chain Rule:
Find
dy
dx
dy
y cos(3x2 x) sin( 3 x 2 x)( 6 x 1)
dx
dy
y sin(cos(x)) cos(cos x)( sin x)
dx
dy
y cos3 (4x3 2x) 3 cos 2 (4 x3 2 x)( sin( 4 x3 2 x))(12 x 2 2)
dx
dy
(36 x 2 6) cos 2 (4 x3 2 x)( sin( 4 x3 2 x))
dx
57
Rules/Techniques for
Differentiation
Chain Rule:
58
Rules/Techniques for
Differentiation
Chain Rule:
x 3cos t y 2sin t
dx dy dy 2 cos t 2
3sin t 2 cos t cot t
dt dt dx 3sin t 3
59
Implicit Differentiation
60
Implicit Differentiation
61
Implicit Differentiation
62
Implicit Differentiation
Find the equations of the lines tangent and normal to the
curve x2 xy y 2 7 at (1, 2) .
4 tangent: normal:
m 5
5 4
y 2 x 1 y2 x 1
5 4
4 4 5 5
y2 x y2 x
5 5 4 4
4 14 5 3
y x y x
5 5 4 4
63
Implicit Differentiation
64
Implicit Differentiation
yx q
Raise both sides to the q power
dy
qy q 1 px p1 Solve for dy/dx
dx
65
Implicit Differentiation
dy px p1
q1 Substitute for y
dx qy
dy px p1
Remove parenthesis
dx q( x p / q )q1
dy px p1
p p / q Subtract exponents
dx qx
dy px p1( p p / q ) dy p ( p / q )1
x
dx q dx q
66
Higher Order Derivatives:
dy
y is the first derivative of y with respect to x.
dx
dy d dy d 2 y is the second derivative.
y
dx dx dx dx 2 (y double prime)
dy
y is the third derivative.
dx We will learn
4 d later what
y y is the fourth derivative. these higher
dx
order
derivatives are
used for.
67
Higher Order Derivatives:
d2y
Find 2 if 2x3 3 y 2 7 .
dx
y 2 x x 2 y
2x3 3 y2 7 y
y2
6x2 6 y y 0 y
2x x 2
2 y
y y
6 y y 6x2 2 2 Substitutey
2x x x
6 x2 y back into the
y y y2 y equation.
6 y
2x x 4
y
x2 y 3
y y y
68
A. TOTAL DIFFERENTIATION
-SOME APPLICATIONS
(a)Velocity and other Rates of Change
Consider a graph of displacement (distance traveled) vs. time.
Average velocity can be found
by taking:
B change in position s
distance s
change in time t
(miles) A
t s f t t f t
Vave
t t
time (hours)
The speedometer in a car does not measure average
velocity, but instantaneous velocity.
ds f t t f t
V t lim (The velocity at one
dt t 0 t moment in time.)
69
(a)Velocity and other Rates of
Change
Velocity is the first derivative of position.
70
(a)Velocity and other Rates of
Change
Gravitational
Example: Free Fall Equation Constants:
ft
g 32
1 1 sec 2
s g t2 s 32 t 2
2 2
m
g 9.8
sec 2
ds
s 16 t 2 V 32 t
dt
cm
Speed is the absolute value of velocity. g 980
sec 2
71
(a)Velocity and other Rates of
Change
Acceleration is the derivative of velocity.
dv d 2s v 32t
a 2 example:
dt dt a 32
If distance is in: feet
feet
Velocity would be in:
sec
ft
ft
Acceleration would be in:
sec
sec sec 2
72
(a)Velocity and other Rates of
Change
73
(a)Velocity and other Rates of
Change
Rates of Change:
f x h f x
Average rate of change =
h
f x h f x
Instantaneous rate of change = h0
f x lim
h
74
(a)Velocity and other Rates of Change
For a circle: A r2
dA d
r2
dr dr
dA
2 r
dr
Instantaneous rate of change of the area with
dA 2 r dr
respect to the radius.
For tree ring growth, if the change in area is constant then dr
must get smaller as r gets larger.
75
APPLICATIONS
(b) In Economics
76
(b) In Economics
Example
Suppose it costs: c x x 6 x 15 x to produce x stoves.
3 2
If you are currently producing 10 stoves, the 11th stove will cost
approximately:
c x 3 x 2 12 x 15
c 10 3 102 12 10 15
300 120 15
$195
marginal cost
The actual cost is: C 11 C 10 113 6 112 15 11 103 6 102 15 10
79
x2 4
Consider: lim
x2 x 2
0
If we try to evaluate this by direct substitution, we get:
0
Zero divided by zero can not be evaluated, and is an example
of indeterminate form.
lim
x2 4
lim
x 2 x 2 lim x 2
4
x2 x 2
x 2 x2 x 2
80
f x x2 4
lim lim
xa g x x2 x 2
x2 4 4
0.05
3
2
1
-3 -2 -1 1
x
2 3 If we zoom in far enough,
0
-1
the curves
0 1.95 will2 appear as2.05
x
-2 straight lines.
-3
-4
x2 -5
-0.05
81
f x x2 4
lim lim
xa g x x2 x 2
0.05
f x As x2
f x
becomes:
g x
g x
0 1.95 2 2.05
x
-0.05
82
f x x2 4
lim lim
xa g x x2 x 2
0.05
df As x2
f x
becomes:
dg
g x
0 1.95 2 dx 2.05
x
df
df
dx
dg dg
-0.05
dx
83
f x x2 4
d 2
x 4
2x
lim lim lim dx lim 4
xa g x x2 x 2 x2 d
x 2
x 2 1
dx
L’Hôpital’s Rule:
f x
If lim
xa g x
is indeterminate, then:
f x f x
lim lim
xa g x x a g x
84
We can confirm L’Hôpital’s rule by working backwards, and
using the definition of derivative:
f x f a f x f a
f a lim
xa xa xa
lim
g a g x g a xa g x g a
lim
xa xa xa
f x f a f x 0 f x
lim lim lim
xa g x g a xa g x 0 xa g x
85
Example:
If it’s no longer
indeterminate, then STOP!
86
On the other hand, you can apply L’Hôpital’s rule as many
times as necessary as long as the fraction is still
indeterminate:
x
1 x 1 0
2 1
lim
0
x 0 x2 4
1 2
1
1 x 1 x
2 (Rewritten in
lim 2 exponential form.)
1
x 0 x2
1
8
1 1
1 x
2
0
lim 2 2
x 0 2x 0
3
1
1 x 2
0
not
lim 4 0
x 0 2
87
This makes limits very easy!
On your own time find the following:
3x sin x
1. lim x 0
x
1 x 1
2. lim x 0
5x
x sin x
3. lim x 0 3
x
88
B. Partial Differentiation
-Function of several variables
-Partial differentiation
-Techniques of partial differentiation
-Total differentiation for f(x.y)
-Application in Economics
89
Function of Two
Variables
90
Definition
Functions of Two Variables
91
Functions of Two Variables
The Domain of a Function
of Two Variables
92
Example 1
Functions of Two Variables
f 2,3 3 2 3 15
2
2
2
f 2, 2 3 2 8
93
Example 2
Functions of Two Variables
3 x 5y
2
f x, y
xy
a) Find the domain of f.
b) Compute f(1, 2)
94
Example 3
Functions of Two Variables
95
Example 3 (Continued)
Functions of Two Variables
a) Let
x the number of bottles of Brand A sold
y the number of bottles of Brand B
sold. Then, the revenue function is
R x, y 1.25 x 1.50 y
b)
R 100,150 1.25 100 1.50 150
125 225
350
96
Functions of Two Variables Cobb-Douglas
Production Functions
Economists use a formula called the Cobb-
Douglas Production Functions to model
the production levels of a company (or a
country). Output Q at a factory is often
regarded as a function of the amount K of
capital investment and the size L of the
labor force. Output functions of the form
Q K , L AK L
1
97
Functions of Two Variables Cobb-Douglas Production
Functions (Cont.)
where A and are positive constants and
01 have proved to be especially useful
in economic analysis. Such functions are
known as Cobb-Douglas production
function.
98
Example 5
Functions of Two Variables
102
Example 1
For the function
Partial Derivatives
f x, y 4 x 2 3 xy 5 y 2
Find z / y and z / x
fy (1,2) if f x, y x 2 2 xy 2
104
Total derivative/differentiation
105
Example 4
Suppose that the production function
Partial Derivatives
106
Example 4 (Cont.)
Q
Partial Derivatives
0.5
1000 y
2000 0.5 x 0.5 y 0.5
x x 0.5
Q 1000 x 0.5
2000 0.5 x 0.5 y 0.5
y y 0.5
108
Example 5
It is estimated that the weekly output at a
Partial Derivatives
110
Optimal Decision Making
• Overview
• Unconstrained Optimization
• Constrained Optimization
111
Overview
112
Analytical Approach to Optimal
Decision Making
• Express the relationship between the
objective and various decision and
exogenous variables.
• Dependent variable =f(independent
variables)
• Example: Profit = f(quantity) or P=
f(Q)
– Illustration: Find the quantity of output that
maximizes profit: P(Q) = 16Q - Q2
113
Unconstrained Optimization
• Unconstrained Optimization involves
finding the optimum to some decision
problem in which there are no
constraints.
Example:
Find the quantity of output that
maximizes profit: P(Q) = 16Q - Q2
114
constrained Optimization
• Constrained Optimization involves finding the optimum
to some decision problem in which there are constraints/
conditions to be fulfilled.
• That is finding the optimum to some decision problem in
which the decision-maker faces constraints. Examples of
constraints: constraints of money, time, capacity, energy
etc
Example:
Find the quantity of output per time and time that
maximizes profit:
P(Q) = 16tQ - tQ2
If Q and t are such that Qt=10
115
Format of Constrained Optimization
117
Solving unconstrained Optimization Problems
Note the following:
-Optimum Can Be Highest or Lowest
-Calculus teaches that when the first derivative is zero,
the solution is at an optimum
118
Optimization Rules-One variable
Maximization Conditions
𝒅𝒚
1. =𝟎
𝒅𝒙
𝒅𝟐 𝒚
2. 𝒅𝒙𝟐
≤𝟎
Minimization Conditions
𝒅𝒚
1. =𝟎
𝒅𝒙
𝒅𝟐 𝒚
2. 𝒅𝒙𝟐
≥𝟎
119
Example-Maximization problem
Example:
Find the quantity of output that maximizes profit, if
the profit function is P(Q) = 50Q - Q2 where Q is the
quantity produced. What is the maximum profit?
Solution
If P= 50Q - Q2,
Then dP/dQ = 50 - 2Q
Then 50 - 2Q = 0 thus Q = 25
123
Definition
Let z f x, y)
Partial Derivatives
If z f(x, y)
the partial derivative of fx with respect to x is
z z
2
fxx fx x or 2
x x x
the partial derivative of fx with respect to y is
2
z z
fxy fx y or
y x y x
125
Second-Order Partial
Derivatives (Cont.)
Partial Derivatives
If z f(x, y)
the partial derivative of fy with respect to
x is 2z z
fyx fy or
x xy x y
f x, y xy 5 xy 2x 1
3 2
127
Remark
Partial Derivatives
128
Maximum and Minimum of
Functions of two Variables
129
Relative Extrema of a Function of Two Variables
Let f be a function defined on a region R containing
(a, b).
f (a, b) is a relative maximum of f if f ( x, y) f (a, b)
for all (x, y) sufficiently close to (a, b).
f (a, b) is a relative minimum of f if f ( x, y) f (a, b)
for all (x, y) sufficiently close to (a, b).
130
Partial Derivatives: Application of Second Partial
Critical Point of f
A critical point of f is a point (a, b) in the
domain of f such that both
f f
a, b 0 and a, b 0
x y
131
Partial Derivatives: Application of Second Partial
Determining Relative Extrema
1. Find all the critical points by solving the system
f x 0, f y 0
2. The 2nd Derivative Test: Compute
D( x, y ) f xx f yy f xy2
132
Ex. Determine the relative extrema of the function
f ( x, y) 2x x y
2 2
133
Application
Example
The total weekly revenue (in dollars) that Acrosonic realizes in
producing and selling its bookshelf loudspeaker systems is
given by R x, y 1 x 2 3 y 2 1 xy 300 x 240 y
4 8 4
where x denotes the number of fully assembled units and y
denotes the number of kits produced and sold each week. The
total weekly cost is given by C x, y 180 x 140 y 5000
1 1
Px x y 120 0 1
2 4
3 1
Py y x 100 0 2
4 4
135
Substitute in 1
y 2x 480
Substitute in 2
3 1
Py 2 x 480 x 100 0
4 4
6 x 1440 x 400 0
x 208
Substitute this value into the equation y 2 x 480
y 64
Therefore, P has the critical point (208,64)
136
1 1 3
Pxx Pxy Pyy
2 4 4
2
1 3 1 5
D x, y
2 4 4 16
138
Method of Lagrange Multipliers
139
Then there is a value of such that ( x0 , y0 , ) is a
solution of the system of equations
F f g
0 1
x x x
F f g
0 2
y y y
F
g x, y 0 3
140
Steps for Using the Method of Lagrange Multipliers
Step 1: Write the function to be maximized (or
minimized) and the constraint in the form:
Find the maximum (or minimum) value of
z f x, y
141
Step 3: Set up the system of equations
F
0 1
x
F
0 2
y
F
g x, y 0 3
Step 4: Solve the system of equations for x, y and
142
Find D* = Fxx . Fyy - (Fxy)2
D* 0 Test is inconclusive
143
Example:
Find the minimum of
f(x,y) = 5x2 + 6y2 - xy
subject to the constraint
x+2y = 24
Solution:
F(x,y, ) = 5x2 + 6y2 - xy + (x + 2y - 24)
Fx = F = 10x - y + ; Fxx = 10
x
Fy = F = 12y - x + 2 ; Fyy = 12
y
F = F = x + 2y - 24 ; Fxy = -1
144
The critical point,
10x - y + = 0
12y - x + 2= 0
x + 2y - 24= 0
The solution of the system is x = 6, y = 9, = -51
D*=(10)(12)-(-1)2=119>0
Fxx = 10>0
145
Example
A manufacturer produces two types of engines, x units of type I
and y units of type II. The joint profit function is given by
P x, y x 2 3xy 6 y
to maximize profit, how many engines of each type should be
produced if there must be a total of 42 engines produced?
146
Maximize z P x, y x 3xy 6 y
2
Subject to constraint g ( x, y) x y 42 0
F x, y, P x, y g x, y
x 2 3xy 6 y x y 42
F
2x 3y 0 1 ; Fxx 2
x
F
3x 6 0 2 ; Fyy 0
y
F
x y 42 0 3 ; Fxy 3
147
Fxx 2 0
D* (2)(0) (3)2 9 0
148
SUB-TOPIC 2:
INTEGRATION
Definition
Integration is the reverse process of differentiation.
That is, it is a process of finding a function F(x) whose
slope f(x) is known it is written as follows
F ( x) f ( x)dx
149
Definite Integrals
Definition
Area Under a Curve (as a Definite Integral)
If y = f(x) is non negative and integrable over a closed interval
[a,b], then the area under the curve y = f(x) from a to b
is the integral of f from a to b.
f x dx
b
A= a
150
Fundamental Theorem of
Calculus
The Fundamental Theorem of Calculus
If f is continuous at every point of a, b , and if
f x dx F b F a
b
f x dx 0
a
2.
a
If the upper and lower limits are equal,
then the integral is zero.
k f x dx k f x dx
b b
3.
a a
Constant multiples can be
moved outside.
f x g x dx f x dx g x dx
b b b
4. a a a
a b c
153
Indefinite Integrals and
Antiderivatives
An indefinite integral is where limits are not given.
An antiderivative of f `(x) is f(x)
The indefinite integral: f `( x ) dx f ( x ) c
For any polynomial you just need to remember the following
a n 1
n
ax dx x c
n 1
154
Example-Definite Integral
Example: yx 2
Find the area under the curve from
4
x=1 to x=2.
2
2 1 3 1
3
1
x dx 2 1
3 3
2 2
1 3 8 1 7
x
1
3 1 3 3 3
0 1 2 Area from x=0 Area from x=0
to x=2 to x=1
Area under the curve from x=1 to x=2.
155
Example-Indefinite Integral
dx
3
1. Find 2x
Solution
3 1 4
2 x x
dx 3 1 c 2 c
3
2 x
5
2. Find 2 dx
x
Solution
1
5 5 x 5
x2
2
dx 5 x dx c c
1 x 156
Techniques of integration
157
Substitution Techniques
158
Example 1:
x 2 Let u x 2
5
dx
du dx
u 5 du
The variable of integration
must match the variable in
1 6
u c the expression.
6
Don’t forget to substitute the value
( x 2) 6
for u back into the problem!
c
6
159
Example 2:
One of the clues that we look for is
if we can find a function and its
1 x 2 2 x dx derivative in the integral.
The derivative of 1 x 2
is 2 x dx .
1
u Let u 1 x
2 2
du
3 du 2 x dx
2
u C
2
3
Note that this only worked because
3 of the 2x in the original.
2
3
1 x
2 2
C Many integrals can not be done by
substitution.
160
Example 3:
4 x 1 dx Let u 4 x 1
du 4 dx
1
1
u 2
du
4
1
du dx
Solve for dx.
3
4
2 1
u C
2
3 4
3
1
u C2
6
3
1
4 x 1 2 C
6 161
Example 8:
u 1 0
1
x 1 dx Let u x3 1
2 3
3x
1
du 3x dx
2
u 1 2
1
2
0
u du2
2
2 3
u 2 Don’t forget to use the new limits.
3 0
3
2 2 4 2
2 2 2 2
3 3 3
162
MULTIPLE INTEGRALS
163
DOUBLE INTEGRALS
164
165
166
167
168
169
170
TRIPLE INTEGRALS
V= 𝑓 𝑥, 𝑦, 𝑧 𝑑𝑉
𝐵
171
172
APPLICATIONS OF INTEGRATION
IN ECONOMICS
173
Example 1
174
Example 2
175
SUB-TOPIC 3:
TAYLOR’S AND
MACLAURIN’S SERIES
176
Taylor’s and Maclaurin’s Series
• We start by supposing that f is any function that
can be represented by a power series
• f (x) = c0 + c1(x – a) + c2(x – a)2 + c3(x – a)3 +
c4(x – a)4 + . . .
• Let’s try to determine what the coefficients cn
must be in terms of f.
• To begin, notice that if we put x = a in Equation 1,
then all terms after the first one are 0 and we get
• f(a) = c0
177
Taylor’s and Maclaurin’s Series
• We can differentiate the series in Equation 1 term by term:
• f (x) = c1 + 2c2(x – a) + 3c3(x – a)2 + 4c4(x – a)3 + . . .
178
Taylor’s and Maclaurin’s Series
• Let’s apply the procedure one more time.
Differentiation of the series in Equation 3 gives
• f'''(x) = 2 3c3 + 2 3 4c4(x – a) + 3 4 5c5(x
– a)2 + ..
• and substitution of x = a in Equation 4 gives
180
Taylor’s and Maclaurin’s Series
• Substituting this formula for cn back into the
series, we see that if f has a power series
expansion at a, then it must be of the
following form.
181
Taylor’s and Maclaurin’s Series
The series in Equation 6 above is called the Taylor series of
the function f at “a” (or about “a” or centered at “a”).
NB:
This is despite the fact that the Maclaurin series is
really just a special case of the Taylor series.
184
Example 2:Find the Taylor series for f(x) = e–2x at a = 0
4 x 2 8x3 2n x n
1 2x ...... ...
2! 3! n!
( 2 x ) n
n 0 n!
185
Example 3: Find the Taylor series for f(x) = sin x at a = /4
2
f
f(x) = sin x 4 2
2
f ’(x) = cos x f '
4 2
2
f ’’(x) = - sin x f ''
4 2
f ’’’(x) = - cos x 2
f '''
4 2
2
( 4)
f(4)(x) = sinx f
4 2
f ( n ) ( x a)n f ( n ) (a )
n 0 n!
f (a ) f '(a )( x a ) .....
n!
( x a) n ....
2 2 2 2 2 3 2 4
(x ) (x ) (x ) ( x ) ....
2 2 4 2 2! 4 2 3! 4 2 4! 4 186
Example 3: Find the Taylor series for f(x) = sin x at c = /4
f ( n ) ( x a)n 2 2 2 2
n 0 n!
2
2
(x )
4 2 2!
( x ) 2 .....
4 2 n!
( x ) n ....
4
2
3
4
x x x
2 4 4 4
1 (x ) ....
2 4 2! 3! n!
2 n ( n 1)
( x / 4) n 1
2 n 0
(1) 2
(n 1)!
1
187
Binomial series
The Maclaurin series for a function of the form (1+x)n is
called the Binomial series
Obtain the Maclaurin series for f(x) = (1 + x)k
Then 1 x (1 x)1/2
1 1 2 1 1 1 3 1 1 1 1 n
1 x 1 2 x 1 2 .... ( n 1) x
1 x
2 2
1 2 2 2 ..... 2 2 2 2
2 2! 3! n!
x x 2 1.3x 3 1.3.5 x 4
1 2 3 4 .......
2 2 2! 2 3! 2 4!
x (1) n 11 3 5 (2n 3) x n
1
2 n2 2 n n!
189
Example: Find the Maclaurin polynomial for f(x) = x cos x
2
Write the Maclaurin polynomial for cos x and
replace x by 2x, and then simplify.
Answer: 1
(1) (2 x)
n 2n
1
2 n0 (2n)!