Some level curves of a function f(x,y) are plotted in the xy–plane
below.
For each of the four statements below, circle the letters of
all points in the diagram where the situation applies.
For example, if the statement were “These points are on the y–axis”, you would circle both P and U, but none of the other letters.
You may assume that a local maximum occurs at point T.
(i) (ii) (iii) ∇f is zerof has a saddle point the partial derivative fy is positiveP R S T UP R S T UP R S T U
The diagram below shows three “y traces” of a graph z=F(x,y) plotted
on xz–axes. (Namely, the intersections of the surface z=F(x,y) with the
three planes y=1.9, y=2, and y=2.1.) For each statement below, circle the
correct word.
(i) (ii) (iii) the first order partial derivative Fx(1,2) isF has a critical point at (2,2) the second order partial derivative Fxy(1,2) ispositive/negative/zero (circle one)true/false (circle one)positive/negative/zero (circle one)
Answer+
(a) (i) T, U
(a) (ii) U
(a) (iii) S
(b) (i) Fx(1,2)>0
(b) (ii) F does not have a critical point at (2,2).
(b) (iii) Fxy(1,2)<0
Full solution+
a) (i) ∇f is zero or does not exist at critical points.
The point T is a local maximum and the point U is
a saddle point. The remaining points P, R, S, are not
critical points.
(a) (ii) Only U is a saddle point.
(a) (iii) We have fy(x,y)>0 if f increases as you move vertically upward
through (x,y). Looking at the diagram, we see
fy(P)<0fy(Q)<0fy(R)=0fy(S)>0fy(T)=0fy(U)=0
So only S works.
(b) (i) The function z=F(x,2) is increasing at x=1,
because the y=2.0 graph in the diagram has positive slope at x=1.
So Fx(1,2)>0.
(b) (ii) The function z=F(x,2) is also increasing (though slowly) at x=2,
because the y=2.0 graph in the diagram has positive slope at x=2.
So Fx(2,2)>0. So F does not have a critical point
at (2,2).
(b) (iii) From the diagram the looks like
Fx(1,1.9)>Fx(1,2.0)>Fx(1,2.1).
That is, it looks like the slope of the y=1.9 graph at x=1
is larger than the slope of the y=2.0 graph at x=1,
which in turn
is larger than the slope of the y=2.1 graph at x=1.
So it looks like Fx(1,y) decreases as y increases through y=2,
and consequently Fxy(1,2)<0.
Make a reasonably accurate sketch of the level curves in the xy–plane
of z=f(x,y) for z=0, 1 and 16. Be sure to show the scales
on the coordinate axes.
Verify that (0,0) is a critical point for z=f(x,y), and
determine from part (a) or directly from the formula for f(x,y)
whether (0,0) is a local minimum, a local maximum or a saddle point.
Can you use the Second Derivative Test to determine whether the
critical point (0,0) is a local minimum, a local maximum or
a saddle point? Give reasons for your answer.
Hint+
Write down the equations of specified level curves.
Answer+
(a)
(b) (0,0) is a local (and also absolute) minimum.
(c) No. See the solutions.
Full solution+
(a)
The level curve z=0 is y2−x2=0, which is the pair
of 45∘ lines y=±x.
When C>0, the level curve z=C4 is (y2−x2)2=C4, which is the pair of hyperbolae
y2−x2=C2, y2−x2=−C2 or
y=±x2+C2x=±y2+C2
The hyperbola y2−x2=C2 crosses the y–axis (i.e. the line x=0)
at (0,±C).
The hyperbola y2−x2=−C2 crosses the x–axis (i.e. the line y=0)
at (±C,0).
Here is a sketch showing the level curves z=0, z=1 (i.e. C=1),
and z=16 (i.e. C=2).
(b)
As fx(x,y)=−4x(y2−x2) and fy(x,y)=4y(y2−x2), we have
fx(0,0)=fy(0,0)=0 so that (0,0) is a critical point. Note that
As fx(0,0)=fy(0,0)=0, we have that (0,0) is always a critical point
for f. According to the Second Derivative Test, (0,0) is also a saddle point
for f if
fxx(0,0)fyy(0,0)−fxy(0,0)2<0⟺4−c2<0⟺∣c∣>2
As a remark, the Second Derivative Test provides no information
when the expression
fxx(0,0)fyy(0,0)−fxy(0,0)2=0, i.e. when c=±2.
But when c=±2,
f(x,y)=x2±2xy+y2=(x±y)2
and f has a local minimum, not a saddle point, at (0,0).
Find and classify all critical points of the function
f(x,y)=x3−y3−2xy+6.
Hint+
Use the Second Derivative Test
Answer+
pointcritical
type
(0,0)
saddle point
(−32,32)
local max
Full solution+
To find the critical points we will need the first order partial derivatives of f, and to
apply the second derivative test of
Theorem 16.1.14 in the text
we will need all second order partial derivatives. So we need all
partial derivatives of f up to order two.
Here they are.
Find all critical points for f(x,y)=x(x2+xy+y2−9).
Also find out which of these points give local maximum values for
f(x,y), which give local minimum values, and which give saddle points.
Hint+
Use the Second Derivative Test
Answer+
pointcritical
type
(0,3)
saddle point
(0,−3)
saddle point
(−2,1)
local max
(2,−1)
local min
Full solution+
To find the critical points we will need the
first order partial derivatives of f, and to apply the second derivative test of
Theorem 16.1.14 in the text
we will need all
second order partial derivatives. So we need all partial derivatives of
f up to order two.
Here they are.
Find and classify all the critical points of f(x,y)=x2+y2+x2y+4.
Hint+
Use the Second Derivative Test
Answer+
pointcritical
type
(0,0)
local min
(2,−1)
saddle point
(−2,−1)
saddle point
Full solution+
To find the critical points we will need the
first order partial derivatives of f, and to apply the second derivative test of
Theorem 16.1.14 in the text
we will need all second order partial derivatives. So we need
all partial derivatives of f up to order two. Here they are.
Find all saddle points, local minima and local maxima of the function
f(x,y)=x3+x2−2xy+y2−x.
Hint+
Use the second derivative test
Answer+
pointcritical
type
(31,31)
local min
−(31,31)
saddle point
Full solution+
To find the critical points we will need the
first order partial derivatives of f, and to apply the second derivative test of
Theorem 16.1.14 in the text
we will need all
second order partial derivatives. So we need all partial derivatives of
f up to order two.
Here they are.
Find and classify [as local maxima, local minima, or saddle points] all critical points of f(x,y).
Hint+
Use the Second Derivative Test
Answer+
pointcritical
type
(0,0)
local max
(2,0)
saddle point
Full solution+
To find the critical points we will need the first order partial derivatives of f and to
apply the second derivative test of
Theorem 16.1.14 in the text
we will need all second order partial derivatives. So we need all
partial derivatives of f up to order two.
Here they are.
For the function z=f(x,y)=x3+3xy+3y2−6x−3y−6.
Find and classify as [local maxima, local minima, or saddle points] all critical points of
f(x,y).
The images below depict level sets f(x,y)=c of the functions in the list at heights
c=0,0.1,0.2,…,1.9,2.
Label the pictures with the corresponding function and mark the critical points in each
picture. (Note that in some cases, the critical points might not be drawn on the images
already. In those cases you should add them to the picture.)
f(x,y)=(x2+y2−1)(x−y)+1
f(x,y)=y(x+y)(x−y)+1
Hint+
When you're looking for critical points, remember you need bothfx=0 and fy=0. So if it's hard to solve (say) fx=0, then first solve fy=0; then you can narrow your search of fx=0.
Answer+
(a)
pointcritical
type
(23,−41)
local min
(−1,1)
saddle point
(b)
(i)
(ii)
Full solution+
(a)
To find the critical points we will need the
first order partial derivatives of f and to apply the second derivative test of
Theorem 16.1.14 in the text
we will need all
second order partial derivatives. So we need all partial derivatives of
f up to order two.
Here they are.
The first partial derivatives exists everywhere (as they are polynomials with two variables) and so the first order partial derivatives exist everywhere. So the critical points are the solutions of
fx=3x2+3y−6=0fy=3x+6y−3=0
Subtracting the second equation from 2 times the first equation gives
6x2−3x−9=0⟺3(2x−3)(x+1)=0⟺x=23,−1
Since y=21−x (from the second equation),
the critical points are (23,−41), (−1,1) and
the classification is
pointcritical
fxxfyy−fxy2
fxx
type
(23,−41)
(9)×(6)−(3)2>0
9
local min
(−1,1)
(−6)×(6)−(3)2<0
saddle point
(b) Notice that the lines x=y, x=−y and y=0 are all level curves
of the function f(x,y)=y(x+y)(x−y)+1 (i.e. of (iii))
with f=1. So the first picture goes with (iii). And the second picture
goes with (i).
Here are the pictures with critical points marked on them.
There are saddle points where level curves cross and there
are local max's or min's at “bull's eyes”.
Classify
all critical points of f(x,y) as local maxima, local minima, or saddle points.
Answer+
pointcritical
type
(23,−41)
local min
(−1,1)
saddle point
Full solution+
To find the critical points we will need the
first order partial derivatives of f, and to apply the second derivative test of
Theorem 16.1.14 in the text
we will need all
second order partial derivatives. So we need all partial derivatives of
f up to order two.
Here they are.
Find and classify the critical points of
f(x,y)=3x2y+y3−3x2−3y2+4.
Answer+
(0,0) is a local max
(0,2) is a local min
(1,1) and (-1,1) are saddle points
Full solution+
Thinking a little way ahead, to find the critical points we will need the
first order partial derivatives of f, and to apply the second derivative test of
Theorem 16.1.14 in the text
we will need all
second order partial derivatives. So we need all partial derivatives of
f up to order two.
Here they are.
where k>0 is a constant.
Find and classify all critical points of f(x,y) as local minima,
local maxima, saddle points or points of indeterminate type.
Carefully distinguish the cases k<21, k=21
and k>21.
Answer+
*Case k<21: *
pointcritical
type
(0,0)
local max
(0,2)
saddle point
*Case k=21: *
pointcritical
type
(0,0)
local max
(0,2)
unknown
*Case k>21: *
pointcritical
type
(0,0)
local max
(0,2)
local min
(k31(2k−1),k1)
saddle point
(−k31(2k−1),k1)
saddle point
Full solution+
To find the critical points we will need the
first order partial derivatives of f and to apply the second derivative test of
Theorem 16.1.14 in the text
we will need all
second order partial derivatives. So we need all partial derivatives of
f up to order two.
Here they are.
(Of course, fxy and fyx have to be the same. It is still
useful to compute both, as a way to catch some mechanical errors.)
The first partial derivatives are defined everywhere. So the critical points are the solution of
fx=6x(ky−1)=0fy=3kx2+3y2−6y=0
The first equation is satisfied if at least one of x=0, y=1/k
are satisfied. (Recall that k>0.)
If x=0, the second equation reduces to 3y(y−2)=0, which is
satisfied if either y=0 or y=2.
If y=1/k, the second equation reduces to
3kx2+k23−k6=3kx2+k23(1−2k)=0.
*Case k<21: *
If k<21, then k23(1−2k)>0 and the equation
3kx2+k23(1−2k)=0 has no real solutions. In this case
there are two critical points: (0,0), (0,2) and the classification is
pointcritical
fxxfyy−fxy2
fxx
type
(0,0)
(−6)×(−6)−(0)2>0
−6
local max
(0,2)
(12k−6)×6−(0)2<0
saddle point
*Case k=21: *
If k=21, then k23(1−2k)=0 and the equation
3kx2+k23(1−2k)=0 reduces to 3kx2=0 which has as its only solution x=0. We have already seen this third critical point, x=0, y=1/k=2.
So there are again two critical points: (0,0), (0,2) and
the classification is
pointcritical
fxxfyy−fxy2
fxx
type
(0,0)
(−6)×(−6)−(0)2>0
−6
local max
(0,2)
(12k−6)×6−(0)2=0
unknown
*Case k>21: *
If k>21, then k23(1−2k)<0 and the equation
3kx2+k23(1−2k)=0 reduces to 3kx2=k23(2k−1)
which has two solutions, namely x=±k31(2k−1).
So there are four critical points: (0,0), (0,2),
(k31(2k−1),k1) and
(−k31(2k−1),k1) and
the classification is
An experiment yields data points (xi,yi),i=1,2,⋯,n. We wish to find the straight line y=mx+b which “best" fits the data. The definition of “best" is “minimizes the root mean square error", i.e. minimizes
∑i=1n(mxi+b−yi)2. Find m and b.
Hint+
Check Example 16.1.11 in the text.
Answer+
m=nSx2−Sx2nSxy−SxSy and
b=nSx2−Sx2SySx2−SxSxy where
Sy=i=1∑nyi, Sx2=i=1∑nxi2 and
Sxy=i=1∑nxiyi.
Full solution+
We wish to choose m and b so as to minimize the (square of the)
rms error E(m,b)=i=1∑n(mxi+b−yi)2.
There are a lot of symbols in those two equations. But remember that only two
of them, namely m and b, are unknowns. All of the xi's and yi's are given data. We can make the equations look a lot less imposing if we define Sx=∑i=1nxi,
Sy=∑i=1nyi, Sx2=∑i=1nxi2 and
Sxy=∑i=1nxiyi. In terms of this notation, the two
equations are (after dividing by two)
Sx2m+SxbSxm+nb=Sxy=Sy(1)(2)
This is a system of two linear equations in two unknowns.
One way (This procedure is probably not the most efficient one. But it has the advantage that it always works, it does not require any ingenuity on the part of the solver, and it generalizes easily to larger linear systems of equations.) to solve them, is to use one of the two equations to solve
for one of the two unknowns in terms of the other unknown. For example,
equation (2) gives that
b=n1(Sy−Sxm)
If we now substitute this into equation (1) we get