Beruflich Dokumente
Kultur Dokumente
Lesson 13
Wang Fei
matwf@nus.edu.sg
Department of Mathematics
Office: S14-02-09
Tel: 6516-2937
1
Chapter 4: Application of Differentiation 2 / 21
Optimization Problems
• What is optimization problem?
◦ Finding extreme values in practical application.
• Maximize areas, volumes, profits, . . . ,
• Minimize distances, costs, times, . . . .
• How to optimize?
◦ Understand the problem.
◦ Draw a diagram.
◦ Introduce notations.
◦ Find relations among the variables.
◦ Express the problem as finding the absolute maximum
or minimum of a function f (x) on a specified domain.
◦ Find the absolute maximum and minimum.
• Closed Interval Method (on finite closed interval),
• Increasing/Decreasing Test (works for all cases).
3 / 21
Example 1
• Example. A farmer has 2400 ft of fencing and wants to fence off a rectangular field that borders a
straight river. He needs no fence along the river. What are the dimensions of the field that has the
largest area?
x A = Area x
4 / 21
2
Example 1
• Maximize A = xy , where 2x + y = 2400, x, y ≥ 0.
◦ 2x + y = 2400 ⇒ y = 2400 − 2x.
• y ≥ 0 ⇒ x ≤ 1200.
• It is equivalent to
Finding maximum of A(x) = x(2400 − 2x) on [0, 1200].
◦ Critical number:
• A′ (x) = 2400 − 4x.
• A′ (x) = 0 ⇒ x = 600. A(600) = 720 000.
◦ Endpoints: x = 0, 1200. A(0) = A(1200) = 0.
◦ A(x) has maximum value 720 000 when x = 600.
• Conclusion: the field has the largest area 720 000 ft2 ,
when it has width 600 ft, and length 1200 ft.
5 / 21
Example 2
• A cylindrical can is to be made to hold 1 liter of oil. Find the dimensions that will minimize the cost
of the metal to manufacture the can.
6 / 21
3
Example 2
• Minimize S = 2πr 2 + 2πrh, V = πr 2 h = 1, r, h > 0.
1 2πr 2
◦ h= 2
⇒ S = 2πr 2 + 2 = 2πr 2 + .
πr πr r
2
Find the minimum of S(r) = 2πr 2 + for r > 0.
r
2 2
◦ S ′ (r) = 4πr − 2 = 2 (2πr 3 − 1).
r r
1
◦ S (r) = 0 ⇒ r = √
′
3
= r0 .
2π
0 < r < r0 ⇒ S ′ (r) < 0; r > r0 ⇒ S ′ (r) > 0.
S(r) is decreasing on (0, r0 ], is increasing on [r0 , ∞).
∴ S(r) has the absolute minimum at r = r0 .
• The cost is minimized when we choose r
1 3 4
radius r = r0 = √ , and height h = .
3
2π π
7 / 21
Example 3
• Find the point on the parabola y 2 = 2x that is closest to the point (1, 4).
y (1, 4)
b
b
b (x, y)
b y 2 = 2x
b
b
b
b
O b x
b
b
b
b
b
p
◦ Minimize d = (x − 1)2 + (y − 4)2 ,
• where y 2 = 2x.
8 / 21
4
Example 3
p
• Minimize d = (x − 1)2 + (y − 4)2 , with y 2 = 2x.
r
y2 2 y2
◦ d(y) = − 1 + (y − 4)2 , (x = ).
2 2
It is equivalent to minimizing
y2 2
◦ f (y) = (d(y))2 = −1 + (y − 4)2 on R.
2
• f ′ (y) = y 3 − 8. Then f ′ (y) = 0 ⇒ y = 2.
• If y < 2, f ′ (y) < 0; f is decreasing on (−∞, 2].
• If y > 2, f ′ (y) > 0; f is increasing on [2, ∞).
◦ So f (y) attains the absolute minimum at y = 2.
∴ d(y) attains the absolute minimum at y = 2. (x = 2)
◦ Therefore, the point on y 2 = 2x which is closest to (4, 1) is (2, 2). Moreover, the distance is
p √
d = (2 − 4)2 + (2 − 1)2 = 5.
9 / 21
Example 4
• A man launches his boat from point A on a bank of a straight river, 3km wide, and wants to reach
point B , 8km downstream on the opposite bank, as quick as possible. If he can row 6km/h and
run 8km/h, where should he land?
A
b
√
9 + x2 km
3km
b b
C D 8km B
xkm (8 − x)km
√
9 + x2 8 − x
◦ Minimize T (x) = + , 0 ≤ x ≤ 8.
6 8
10 / 21
5
Example 4
√
9 + x2 8 − x
• Minimize T (x) = + on [0, 8].
6 8
x 1
◦ T ′ (x) = √ − .
6 9 + x2 √8
T (x) = 0 ⇒ 8x = 6 9 + x2 ⇒ 16x2 = 81 + 9x2
′
9
⇒ 7x2 = 81 ⇒ x = √ (x > 0).
7
9
◦ Compare the values T (0), T (8) and T ( √ ):
7
73
• T (0) = 1.5, T (8) = ≈ 1.42, and
√ 6
9 7
T (√ ) = 1 + ≈ 1.33.
7 8
√
◦ Therefore, he should land at 9/ 7 km away downstream from the starting point.
11 / 21
θ1
a
θ1
B′
bC
A′ x d−x
θ2
b
θ2
bB
12 / 21
6
Example 5: Fermat’s Principle and Snell’s Law
A b d−x
a θ1 θ1
B′
bC
A′ x
θ2 b
θ2
bB
√ p
a2 + x2 b2 + (d − x)2
• Minimize T (x) = + on [0, d].
v1 v2
x d−x sin θ1 sin θ2
T ′ (x) = √ − p = − .
v1 2
a +x2 2
v2 b + (d − x) 2 v1 v2
sin θ1 sin θ2
∴ T (x) attains the min if x = x0 , at which = .
v1 v2
13 / 21
A
b
√
9 + x2 km
θ
3km
θ
b b
C D 8km B
xkm (8 − x)km
sin θ sin π2
• By Snell’s Law, the time is minimized when = .
v1 v2
√
x/ 9 + x2 1 9
◦ = ⇒x= √ .
6 8 7
14 / 21
7
Limits of Indeterminate Forms
• How do we compute the following limits?
√
1 − cos x x − sin x 1 − x − 1 + x2
◦ lim , lim , lim .
x→0 x + x2 x→0 x3 x→0 x2
Both the numerator and denominator tend to 0 as x → 0.
They have the 0/0 Indeterminate Form.
• How to compute the following?
sec x x2 + 3x
◦ limπ , lim .
x→ 2 1 + tan x x→∞ 3x2 + 1
π
Both the numerator and denominator tend to ±∞ as x → 2
or x → ∞.
They have the ∞/∞ Indeterminate Form.
• Question. Can we evaluate the limits without using ǫ, δ -definition?
◦ We may use differentiation.
15 / 21
Example
1 − cos x
• lim .
x→0 x + x2
[f (x) − f (0)]/(x − 0)
= lim
x→0 [g(x) − g(0)]/(x − 0)
16 / 21
8
l’Hôpital’s Rule
• l’Hôpital’s Rule. Let f and g be functions such that
◦ lim f (x) = lim g(x) = 0, and
x→a x→a
◦ f and g are differentiable near a (except at a), and
◦ g ′ (x) 6= 0 near a (except at a).
f (x) f ′ (x)
Then lim = lim ′ , provided that the limit on the right hand side exists or equals ±∞.
x→a g(x) x→a g (x)
17 / 21
Examples
√
1 − x − 1 + x2
• Find lim .
x→0 x2
√ √ ′
1 − x − 1 + x2 1 − x − 1 + x2
lim = lim
x→0 x2 x→0 (x2 )′
′
−1 1 −1 1
√ + √ +
2 1−x 2 2 1−x 2
= lim = lim
x→0 2x x→0 (2x)′
−1 1
· p
2 2 (1 − x)3
= lim
x→0 2
1
=− .
8
18 / 21
9
Examples
x − sin x
• Find lim .
x→0 x3
x − sin x (x − sin x)′
lim = lim
x→0 x3 x→0 (x3 )′
1 − cos x
= lim
x→0 3x2
(1 − cos x)′
= lim
x→0 (3x2 )′
sin x
= lim
x→0 6x
(sin x)′
= lim
x→0 (6x)′
cos x 1
= lim = .
x→0 6 6
19 / 21
20 / 21
10
The Four Tests
• Increasing Test: f is continuous on [a, b].
◦ f ′ (x) > 0 on (a, b) ⇒ f is increasing on [a, b],
◦ f ′ (x) < 0 on (a, b) ⇒ f is decreasing on [a, b],
◦ f ′ (x) = 0 on (a, b) ⇔ f is constant on [a, b].
• Concavity Test: f is twice differentiable on an interval I .
◦ f ′′ (x) > 0 on I ⇒ f is concave up on I ,
◦ f ′′ (x) < 0 on I ⇒ f is concave down on I .
• 1st Derivative Test: f is differentiable near critical number c, (except possibly at c).
◦ f ′ changes from “+” to “−” at c ⇒ local max at c,
◦ f ′ changes from “−” to “+” at c ⇒ local min at c,
◦ f ′ does not change sign at c ⇒ no local max/min at c.
• 2nd Derivative Test:
◦ f ′ (c) = 0 and f ′′ (c) < 0 ⇒ local max at c,
◦ f ′ (c) = 0 and f ′′ (c) > 0 ⇒ local min at c.
21 / 21
11