Final Practice Sol
Final Practice Sol
Final Practice Sol
Problem 1.
Find the critical points of the function
f (x, y) = 2x3 − 3x2 y − 12x2 − 3y 2
and determine their type i.e. local min/local max/saddle point. Are there any global min/max?
Solution: Partial derivatives
fx = 6x2 − 6xy − 24x, fy = −3x2 − 6y.
To find the critical points, we solve
fx = 0 =⇒ x2 − xy − 4x = 0 =⇒ x(x − y − 4) = 0 =⇒ x = 0 or x − y − 4 = 0
fy = 0 =⇒ x2 + 2y = 0.
When x = 0 we find y = 0 from the second equation. In the second case, we solve the system
below by substitution
x − y − 4 = 0, x2 + 2y = 0 =⇒ x2 + 2x − 8 = 0
=⇒ x = 2 or x = −4 =⇒ y = −2 or y = −8.
The three critical points are
(0, 0), (2, −2), (−4, −8).
To find the nature of the critical points, we apply the second derivative test. We have
A = fxx = 12x − 6y − 24, B = fxy = −6x, C = fyy = −6.
At the point (0, 0) we have
fxx = −24, fxy = 0, fyy = −6 =⇒ AC − B 2 = (−24)(−6) − 0 > 0 =⇒ (0, 0)is local max .
Similarly, we find
(2, −2) is a saddle point
since
AC − B 2 = (12)(−6) − (−12)2 =< 0
and
(−4, −8) is saddle
since
AC − B 2 = (−24)(−6) − (24)2 < 0.
The function has no global min since
lim f (x, y) = −∞
y→∞,x=0
1
Problem 2.
Determine the global max and min of the function
f (x, y) = x2 − 2x + 2y 2 − 2y + 2xy
over the compact region
−1 ≤ x ≤ 1, 0 ≤ y ≤ 2.
Solution:
By the chain rule
∂z ∂z ∂x
= · = 3e3x+2y · 2 = 6e3x e2y = 6e3u+6v e2 ln(3u−w) = 6e3u+6v (3u − w)2 .
∂v ∂x ∂v
Similarly,
∂z ∂z ∂y −1 −1
= · = 2e3x+2y · = 2e3u+6v e2 ln(3u−w)
∂w ∂y ∂w 3u − w 3u − w
−1
= 2e3u+6v (3u − w)2 · = −2e3u+6v (3u − w).
3u − w
Problem 11.
(i) Find z such that
1 1 1
1+ + 2 + 3 + . . . = 3.
z z z
(ii) Calculate the series
1 2 22 299
+ 2 + 3 + . . . + 100 .
3 3 3 3
Solution:
(i) This is a geometric series with step z1 . Its sum equals
1 1 1 3
1 = 3 =⇒ 1 − = =⇒ z = .
1− z
z 3 2
(ii) This is a finite geometric series with 100 terms and initial term 1/3 and step 2/3. The sum
equals
100 100
1 1 − 23 2
· 2 =1− .
3 1− 3 3
Problem 12.
The probability density function for the outcome x of a certain experiment is
p(x) = Ce−x , for x ≥ 0.
(i) What is the value of the constant C?
(ii) What is the cumulative distribution function?
(iii) What is the median of the experiment?
(iv) What is the mean of the experiment?
(v) What is the probability that the outcome of the experiment is bigger than 1?
Solution:
(i) The pdf must integrate to 1 hence
Z ∞ Z ∞
p(x)dx = 1 =⇒ C e−x = 1 =⇒ −C · e−x |∞
x=0 = 1 =⇒ −C(0 − 1) = 1 =⇒ C = 1.
0 0
(ii) The cdf is obtained by integrating the pdf:
Z x Z x
P (x) = p(t)dt = e−t dt = −e−t |t=x −x
t=0 = 1 − e .
0 0
(iii) To find the median, we set the pdf to 1/2:
1 1 1
P (T ) = =⇒ 1 − e−T = =⇒ e−T = =⇒ T = ln 2.
2 2 2
(iv) The mean is computed by the integral
Z ∞ Z ∞
mean = xp(x) dx = xe−x = 1.
0 0
The last integral was found by integration by parts
Z ∞ Z ∞ Z ∞
−x −x ∞ −x
xe = −xe |x=0 + e dx = 0 + e−x dx = −e−x |∞
x=0 = 1.
0 0 0
(v) The probability the outcome is at most 1 is P (1) = 1 − e−1 . The probability that x ≥ 1 is
1 − P (1) = e−1 .
Problem 13.
Consider the function f (x, y) = 5 − (x + 1)2 − y 2 .
(i) Draw the cross section corresponding to x = 1.
(ii) Draw the contour diagram of f showing at least three levels.
(iii) Draw the graph of f .
(iv) What is the equation of the tangent plane to the graph of f at (1, 0, 1)?
Solution:
(i) The cross section is the parabola z = 1 − y 2 .
(ii) The level curve for level c is
f (x, y) = c =⇒ (x + 1)2 + y 2 = 5 − c.
√
√ and radius 5 − c. For instance, picking levels
The level curves are circles of centers (−1, 0)
c = 1, c = 2, c = 4 we get circles of radii 2, 3, 1 of center (−1, 0).
(iii) The graph of f is a downward pointing paraboloid with vertex at (−1, 0, 5).
(iv) The partial derivatives
fx = −2(x + 1) =⇒ fx (1, 0) = −4
fy = −2y =⇒ fy (1, 0) = 0.
The tangent plane is
z − 1 = −4(x − 1) + 0(y − 0) =⇒ z = −4x + 5.
Problem 14.
Find the point on the plane
2x + 3y + 4z = 29
that is closest to the origin. You may want to minimize the square of the distance to the origin.
Solution: We minimize the square of the distance to the origin
f (x, y, z) = x2 + y 2 + z 2
subject to the constraint
g(x, y, z) = 2x + 3y + 4z = 29.
We use Lagrange multipliers
∇f = (2x, 2y, 2z), ∇g = (2, 3, 4).
Then
3λ
∇f = λ∇g =⇒ 2x = 2λ, 2y = 3λ, 2z = 4λ =⇒ x = λ, y = , z = 2λ.
2
Since
9λ 29λ
2x + 3y + 4z = 2λ + + 8λ = = 29 =⇒ λ = 2 =⇒ x = 2, y = 3, z = 4.
2 2
The closest point is (2, 3, 4).
Problem 15.
Find the critical points of the function f (x, y) = 2x3 + 6xy + 3y 2 and describe their nature.
Solution:
We set the first derivatives to zero:
fx = 6x2 + 6y = 0 =⇒ x2 + y = 0
fy = 6x + 6y = 0 =⇒ x + y = 0.
We solve
y = −x2 = −x =⇒ x2 = x =⇒ x = 0 or x = 1.
The critical points are (0, 0) and (1, −1).
We compute the second derivatives
A = fxx = 12x, B = fxy = 6, C = fyy = 6.
For the critical point (0, 0) we have
AC − B 2 = 0 · 6 − 62 < 0 =⇒ (0, 0) is saddle point.
For the critical point (1, −1) we have
AC − B 2 = 12 · 6 − 62 > 0, A > 0 =⇒ (1, −1) is local minimum.