CalcPath
ProgressProblem setsFeedback
← Question sheet

Calculus · Solutions

Partial Derivatives

12 questions · about 108 minutes

Work this sheet on paper, showing every step — the method is what is being tested, and the solutions are written so you can check your route rather than just your answer. Name every theorem you use (“by the two-path test”, “by Clairaut's Theorem”, “by the Extreme Value Theorem”) and check its hypotheses; whenever a direction is involved, say explicitly that your vector is a unit vector. No calculator is needed anywhere: every answer is an exact closed form. Full worked solutions are on a separate page; each question also has its own reveal, so you can check one answer without seeing the rest.

  1. 1.Sketch

    Three pictures, each with a justification. A drawing with nothing written beside it earns nothing: every feature — an included or excluded boundary, the shape of a curve, the direction of an arrow — must be backed by an equation or an inequality.

    1. (a)Find the domain of f(x,y)=x2+y2−1y−x​​ and sketch it, making clear which boundary points belong to it and which do not.
    2. (b)Sketch the level curves of g(x,y)=x2+1y​ for k=−1,0,1,2 on one set of axes and describe the shape of each. Then, reading only your contour map, say in which direction from the origin g increases fastest, and why.
    3. (c)Describe the level surfaces F(x,y,z)=k of F(x,y,z)=z−x2+y2​ for k=−1,0,1. What single surface are they all copies of?

    Solution

    (a) Two restrictions, then intersect. The square root needs y−x≥0, that is y≥x; the denominator needs x2+y2=1. So

    D={(x,y):y≥x, x2+y2=1}.

    Draw the line y=x solid, since points on it satisfy y−x=0≥0 and belong to D, and shade the closed half-plane above and to the left of it (test point (0,1): 1−0≥0). Then remove the unit circle. Only the part of the circle inside the shaded region matters: the arc running counter-clockwise from (2​1​,2​1​) through (0,1) and (−1,0) to (−2​1​,−2​1​). Its two endpoints are where y=x meets x2+y2=1, so 2x2=1; they lie on the circle and are therefore excluded, even though they sit on the included line. Draw the arc dashed and its endpoints as open circles. The rest of the circle lies below the line and was never in the domain.

    (b) Solve g=k for y. g(x,y)=k means y=k(x2+1). For k=0 this is the x-axis. For k=1 it is the parabola y=x2+1, vertex (0,1), opening upward; for k=2 it is y=2x2+2, vertex (0,2), opening upward and narrower; for k=−1 it is y=−x2−1, vertex (0,−1), opening downward. No two of them meet, as level curves for different values never can.

    Read the spacing. Along the y-axis the four curves cross at y=−1,0,1,2, one unit apart. Along the line x=1 they cross at y=−2,0,2,4, two units apart, and along x=2 at y=−5,0,5,10. The contours are packed tightest on the y-axis and spread out as ∣x∣ grows, so the surface is steepest above the y-axis and flattens away from it.

    From the origin, which lies on the curve k=0, the nearest point of the curve k=1 is its vertex (0,1), at distance 1: any other point (x,x2+1) of that curve is at distance x2+(x2+1)2​>1. So the shortest walk that gains one unit of g is straight up the positive y-axis, and that is the direction of fastest increase. (The gradient ∇g(0,0)=⟨0,1⟩ agrees.)

    (c) Solve for z. F=k means z=x2+y2​+k. For k=0 this is z=x2+y2​: the upper half of the cone z2=x2+y2, vertex at the origin, opening upward, with its sides at 45∘ to the axis (in the plane y=0 it is z=∣x∣); its horizontal cross-section at height z=c>0 is a circle of radius c. For k=1 the same half-cone is shifted up one unit, vertex (0,0,1); for k=−1 it is shifted down, vertex (0,0,−1). Every level surface is a vertical translate of the single half-cone z=x2+y2​, and since F is defined on all of R3 with range all of R, every real k produces one.

  2. 2.Computation

    Evaluate each limit or show that it does not exist. To show a limit exists, bound ∣f(x,y)−L∣ by an expression that visibly tends to 0 (polar coordinates are welcome); to show it fails, exhibit two paths and quote the two-path test.

    1. (a)(x,y)→(0,0)lim​x2+y2x3−y3​
    2. (b)(x,y)→(0,0)lim​x2+y6xy3​
    3. (c)(x,y)→(1,2)lim​x−1x2y−2x2−y+2​

    Solution

    (a) Bound it in polar coordinates. Substitution gives 00​. With x=rcosθ, y=rsinθ,

    x2+y2x3−y3​=r2r3(cos3θ−sin3θ)​=r(cos3θ−sin3θ).

    Since ∣cos3θ−sin3θ∣≤∣cosθ∣3+∣sinθ∣3≤2 for every θ,

    ​x2+y2x3−y3​−0​≤2r,

    which tends to 0 as r→0+ regardless of θ. The limit is 0; in ε–δ terms, δ=ε/2 works. Without polar coordinates: x2+y2x2​≤1 gives x2+y2∣x∣3​≤∣x∣, likewise for y, so ∣f(x,y)∣≤∣x∣+∣y∣→0.

    (b) Every line agrees; a cubic curve does not. Along y=mx,

    f(x,mx)=x2+m6x6x⋅m3x3​=1+m6x4m3x2​⟶0,

    and along the y-axis f(0,y)=0. Every straight line reports 0. But along the curve x=y3,

    f(y3,y)=y6+y6y3⋅y3​=21​(y=0).

    Two paths into the origin, limits 0 and 21​: by the two-path test the limit does not exist. Polar coordinates would not have rescued this one — after substitution the expression still depends on θ in a way no bound in r alone controls, which is itself the warning sign.

    (c) Factor and cancel. At (1,2) the numerator is 2−2−2+2=0 and the denominator is 0: the form is 00​. Group the numerator:

    x2y−2x2−y+2=x2(y−2)−(y−2)=(x2−1)(y−2)=(x−1)(x+1)(y−2).

    The function is undefined on the whole line x=1, but a limit only looks at points of the domain, and at those points x−1=0 may be cancelled:

    x−1x2y−2x2−y+2​=(x+1)(y−2)(x=1).

    The right-hand side is a polynomial, hence continuous, so its limit is its value: (1+1)(2−2)=0.

  3. 3.Computation

    Compute the following. In each part state which variable is being held constant, and name any theorem that lets you choose the order of differentiation.

    1. (a)fx​ and fy​ for f(x,y)=x2cos(xy).
    2. (b)Show that u(x,y)=ln(x2+y2) satisfies Laplace's equation uxx​+uyy​=0 at every point other than the origin.
    3. (c)gxyy​ for g(x,y)=xsiny+y3e2x+1+exx5​, choosing the order of differentiation that makes the work shortest and justifying the choice.

    Solution

    (a) Product rule with the chain rule inside. Holding y constant, x2cos(xy) is a product of x2 and cos(xy), and ∂x∂​(xy)=y:

    fx​=2xcos(xy)+x2⋅(−sin(xy))⋅y=2xcos(xy)−x2ysin(xy).

    Holding x constant, x2 is a constant factor and ∂y∂​(xy)=x:

    fy​=x2⋅(−sin(xy))⋅x=−x3sin(xy).

    (b) Differentiate twice in each variable. With y held constant, ux​=x2+y22x​, and by the quotient rule

    uxx​=(x2+y2)22(x2+y2)−2x⋅2x​=(x2+y2)22y2−2x2​.

    The formula for u is unchanged when x and y are swapped, so swapping them in uxx​ gives uyy​=(x2+y2)22x2−2y2​ (a direct computation from uy​=x2+y22y​ confirms it). Adding,

    uxx​+uyy​=(x2+y2)22y2−2x2+2x2−2y2​=0.

    Every step needed x2+y2=0, which is exactly the punctured plane on which u is defined. So u is harmonic there.

    (c) Choose the order with Clairaut's Theorem. Every partial derivative of g, of every order, is built from polynomials, siny, e2x and the quotient 1+exx5​ whose denominator never vanishes, so they are all continuous on R2. Clairaut's Theorem, applied twice, gives gxyy​=gyxy​=gyyx​: only the number of differentiations in each variable matters. Differentiate in y first, because the term 1+exx5​ contains no y and vanishes at the first stroke, whereas differentiating it in x first would cost a quotient rule for nothing:

    gy​=xcosy+3y2e2x,gyy​=−xsiny+6ye2x,gyyx​=−siny+12ye2x.

    Hence gxyy​=−siny+12ye2x. Check by the other order on the two surviving terms: gx​=siny+2y3e2x+(a function of x alone), gxy​=cosy+6y2e2x, gxyy​=−siny+12ye2x, the same.

  4. 4.Computation

    Let f(x,y)=x2ey.

    1. (a)Find the tangent plane to z=f(x,y) at the point (2,0,4). State the hypothesis on f that the tangent plane formula requires, and check that the point lies on your plane.
    2. (b)Use the linearization of f at (2,0) to approximate f(1.9,0.05).
    3. (c)The inputs are measured as x=2 and y=0 with possible errors of 0.01 and 0.02 respectively. Use the total differential dz to estimate the maximum error in the computed value f(2,0)=4, and the maximum relative error.

    Solution

    (a) Two partials, one formula. fx​=2xey and fy​=x2ey are continuous on all of R2, which is the hypothesis the tangent plane theorem needs. At (2,0): f=4, fx​=4, fy​=4. The tangent plane is

    z−4=4(x−2)+4(y−0),that is,z=4x+4y−4.

    Check: at (2,0) the plane gives 8+0−4=4, the height of the point.

    (b) Evaluate the plane, not the function. The linearization is L(x,y)=4x+4y−4, so

    f(1.9,0.05)≈L(1.9,0.05)=7.6+0.2−4=3.8.

    (For reference, the true value is 3.61e0.05≈3.795; the step from the base point is small and the estimate is good to two decimals.)

    (c) Differential, worst case. dz=fx​dx+fy​dy=2xeydx+x2eydy, which at (2,0) is dz=4dx+4dy. With ∣dx∣≤0.01 and ∣dy∣≤0.02, the worst case is both errors with the same sign:

    ∣dz∣≤4(0.01)+4(0.02)=0.04+0.08=0.12.

    The maximum relative error is 40.12​=0.03, that is 3%. The same number comes from dividing through: zdz​=x2dx​+dy=2(0.005)+0.02=0.03. Note that an absolute error in y becomes a relative error in f, because y sits in the exponent.

  5. 5.Proof

    Work from the ε–δ definition of lim(x,y)→(a,b)​f(x,y)=L. Throughout, r=(x−a)2+(y−b)2​ denotes the distance from (x,y) to (a,b).

    1. (a)Prove that (x,y)→(0,0)lim​x2+y2x4−y4​=0, giving an explicit δ in terms of ε.
    2. (b)Let f(x,y)=x2+y2x4−y4​ for (x,y)=(0,0) and f(0,0)=c. Find every value of c for which f is continuous on all of R2, justifying continuity away from the origin by naming the facts you use.
    3. (c)Prove that if lim(x,y)→(a,b)​f(x,y)=L, then for every real m the one-variable limit x→alim​f(x,b+m(x−a)) exists and equals L. Then explain in one sentence why this is what makes the two-path test work.

    Solution

    (a) Cancel first, then estimate. For (x,y)=(0,0) the denominator is nonzero and

    x2+y2x4−y4​=x2+y2(x2−y2)(x2+y2)​=x2−y2,

    and ∣x2−y2∣≤x2+y2=r2.

    Proof. Let ε>0 and set δ=ε​. If 0<r<δ, then

    ​x2+y2x4−y4​−0​=∣x2−y2∣≤r2<δ2=ε.

    Since ε was arbitrary, the limit is 0. ■

    (b) Only c=0. Away from the origin f is a rational function whose denominator does not vanish, and rational functions are continuous wherever they are defined (limits of sums, products and quotients are the sums, products and quotients of the limits, with limx=a and limy=b from the definition). At the origin, continuity means lim(x,y)→(0,0)​f(x,y)=f(0,0); by (a) the left side is 0, so continuity holds exactly when c=0. A second way to see it: with c=0 the function is f(x,y)=x2−y2 at every point, the origin included, and that is a polynomial.

    (c) Proof. Assume, as the statement implicitly does, that f is defined at the points of the line near (a,b). Let ε>0. By hypothesis there is δ>0 such that ∣f(x,y)−L∣<ε whenever 0<r<δ. A point of the line has the form (x,b+m(x−a)), and its distance from (a,b) is

    r=(x−a)2+m2(x−a)2​=∣x−a∣1+m2​.

    Put δ′=1+m2​δ​>0. If 0<∣x−a∣<δ′, then 0<r=∣x−a∣1+m2​<δ, so ​f(x,b+m(x−a))−L​<ε. That is precisely the ε–δ statement of limx→a​f(x,b+m(x−a))=L, with δ′ as the tolerance. ■

    The two-path test is the contrapositive: if the limit existed, every line (and, by the same argument with the distance along any curve into (a,b), every path) would have to report the same value L, so two paths reporting different values rule the limit out. Note the direction of the implication — the result never says that lines agreeing makes the limit exist.

  6. 6.Critique

    Let f(x,y)=x4+y2x2y​ for (x,y)=(0,0) and f(0,0)=0. A student writes:

    Step 1. f(x,0)=0 for every x, so fx​(0,0)=h→0lim​hf(h,0)−f(0,0)​=0; likewise f(0,y)=0 for every y, so fy​(0,0)=0.

    Step 2. Both partial derivatives exist at the origin, so f is differentiable at (0,0).

    Step 3. Hence the tangent plane at the origin is z=0, and the linear approximation gives f(x,y)≈0 for all (x,y) near (0,0).

    Step 4. Since differentiability implies continuity, f is continuous at (0,0).

    1. (a)Identify the first step that is wrong. Name the theorem the student believes they are using, state its actual hypothesis, and explain why that hypothesis has not been established.
    2. (b)Prove that f is not continuous at (0,0), and deduce — naming the result you use — that f is not differentiable there. Which of Steps 1–4 make true claims, whatever their justification?
    3. (c)Show directly from the definition of differentiability that no functions ε1​,ε2​→0 can make Δz=fx​(0,0)Δx+fy​(0,0)Δy+ε1​Δx+ε2​Δy hold along the path (Δx,Δy)=(t,t2).

    Solution

    (a) Step 2 is the first error. Step 1 is correct: f(h,0)=h40​=0 and f(0,k)=k20​=0, so both difference quotients are identically 0. Step 2 appeals to the theorem continuous partials imply differentiability: if fx​ and fy​ exist near (a,b) and are continuous at (a,b), then f is differentiable at (a,b). The hypothesis is continuity of the partial derivatives, not their existence, and Step 1 established only two values. Existence of fx​(a,b) and fy​(a,b) says nothing about differentiability, because the partials look along two lines only while differentiability is a statement about every direction at once.

    The hypothesis in fact fails here. For (x,y)=(0,0) the quotient rule gives

    fx​=(x4+y2)22xy(x4+y2)−x2y⋅4x3​=(x4+y2)22xy3−2x5y​,

    and along y=2x2 this is 25x816x7−4x7​=25x12​, which is unbounded as x→0. So fx​ is not continuous at the origin, and the theorem is silent. (Part (b) gives a shorter reason: were the partials continuous, f would be differentiable, hence continuous, and it is not.)

    (b) Two paths. Along the x-axis, f(x,0)=0→0. Along the parabola y=x2,

    f(x,x2)=x4+x4x2⋅x2​=21​(x=0),

    so f→21​ on that path. By the two-path test lim(x,y)→(0,0)​f(x,y) does not exist, and continuity at the origin — which requires that limit to exist and equal f(0,0)=0 — fails. The corollary differentiability implies continuity, read in contrapositive, now says: not continuous, therefore not differentiable at (0,0).

    So Step 2's claim is false, Step 4's claim is false, and Step 3's claim is false too: f equals 21​ at points (t,t2) arbitrarily close to the origin, so “f(x,y)≈0 near (0,0)” is wrong — the plane z=0 misses the surface by 21​ no matter how close you zoom. Only Step 1 makes a true claim.

    (c) From the definition. With (Δx,Δy)=(t,t2) and t=0,

    Δz=f(t,t2)−f(0,0)=21​−0=21​,

    so the required identity would read

    21​=0⋅t+0⋅t2+ε1​t+ε2​t2.

    If ε1​,ε2​→0 as (Δx,Δy)→(0,0), then as t→0 the right-hand side tends to 0⋅0+0⋅0=0, while the left-hand side is the constant 21​. Contradiction; no such ε1​,ε2​ exist, and f is not differentiable at the origin. The error in the tangent-plane approximation along this path is 21​ — not small compared with the distance moved, not even small — which is exactly what differentiability forbids.

  7. 7.Computation

    Draw the tree diagram for each part before you differentiate, and write one term per root-to-leaf path.

    1. (a)Let z=f(x,y) be differentiable with fx​(2,3)=−1 and fy​(2,3)=4, and let x=t2+1, y=3et−1. Find dtdz​ at t=1.
    2. (b)Let w=f(u,v) have continuous partial derivatives, where u=x2−y2 and v=2xy. Show that (∂x∂w​)2+(∂y∂w​)2=4(x2+y2)[(∂u∂f​)2+(∂v∂f​)2].
    3. (c)The equation z3+xz−y2=0 defines z implicitly as a function of x and y near the point (3,2,1). Find ∂x∂z​ and ∂y∂z​ there, saying why the implicit differentiation formula applies, and write down the tangent plane to the surface at that point.

    Solution

    (a) Case 1 of the chain rule. The tree has z over x and y, each over t: two paths, two terms,

    dtdz​=fx​dtdx​+fy​dtdy​.

    At t=1: x=1+1=2 and y=3e0=3, so the partials are to be evaluated at (2,3), which is where they were given. Also dtdx​=2t=2 and dtdy​=3et−1=3. Hence

    dtdz​​t=1​=(−1)(2)+(4)(3)=10.

    (b) Case 2, then square and add. The four inner partials are ux​=2x, uy​=−2y, vx​=2y, vy​=2x. Case 2 gives

    wx​=fu​⋅2x+fv​⋅2y,wy​=fu​⋅(−2y)+fv​⋅2x.

    Squaring,

    wx2​=4x2fu2​+8xyfu​fv​+4y2fv2​,wy2​=4y2fu2​−8xyfu​fv​+4x2fv2​.

    The cross terms cancel, and collecting the rest gives

    wx2​+wy2​=4(x2+y2)fu2​+4(x2+y2)fv2​=4(x2+y2)(fu2​+fv2​).

    (c) Implicit differentiation formula. Let F(x,y,z)=z3+xz−y2. Then F(3,2,1)=1+3−4=0, so the point is on the surface; F is a polynomial, so its partials are continuous; and

    Fx​=z,Fy​=−2y,Fz​=3z2+x,

    which at (3,2,1) are 1, −4 and 6. Since Fz​=6=0, the formulas apply:

    ∂x∂z​=−Fz​Fx​​=−61​,∂y∂z​=−Fz​Fy​​=64​=32​.

    The tangent plane to z=z(x,y) at (3,2,1) is

    z−1=−61​(x−3)+32​(y−2).

    Multiplying by 6: 6z−6=−x+3+4y−8, so x−4y+6z=1. Check: 3−8+6=1, and the coefficients ⟨1,−4,6⟩ are exactly ∇F(3,2,1), as they must be.

  8. 8.Computation

    Every direction below must be a unit vector before it is dotted with a gradient; say so each time.

    1. (a)Let f(x,y,z)=xey−yz2 and P=(1,0,2). Find the rate of change of f at P in the direction from P toward Q=(3,−1,4), the direction in which f increases fastest at P, and that maximum rate.
    2. (b)A differentiable function g(x,y) has, at a point P, directional derivative 3 in the direction u=⟨53​,54​⟩ and directional derivative −1 in the direction v=⟨54​,−53​⟩. Find ∇g(P), the maximum rate of change of g at P, and the two unit directions in which the rate of change is 0.
    3. (c)Find the tangent plane and the normal line to the surface xyz=6 at (1,2,3), naming the theorem that supplies the normal vector.

    Solution

    (a) Gradient, then a unit vector. ∇f=⟨ey, xey−z2, −2yz⟩, so ∇f(P)=⟨1, 1−4, 0⟩=⟨1,−3,0⟩. The vector from P to Q is ⟨2,−1,2⟩, of length 4+1+4​=3, so the unit direction is u=⟨32​,−31​,32​⟩ and

    Du​f(P)=⟨1,−3,0⟩⋅⟨32​,−31​,32​⟩=32​+1+0=35​.

    By the theorem on maximising the directional derivative, f increases fastest in the direction of ∇f(P)=⟨1,−3,0⟩ — as a unit vector, 10​1​⟨1,−3,0⟩ — and the maximum rate is ∣∇f(P)∣=10​. Sanity check: 35​<10​, as every directional derivative must be.

    (b) Two known rates pin down the gradient. Both u and v are unit vectors (259​+2516​=1) and they are perpendicular (2512​−2512​=0), so they form an orthonormal basis of the plane. Write ∇g(P)=αu+βv; then Du​g=∇g⋅u=α and Dv​g=β, so α=3, β=−1 and

    ∇g(P)=3⟨53​,54​⟩−⟨54​,−53​⟩=⟨59​−54​, 512​+53​⟩=⟨1,3⟩.

    (Alternatively, solve the linear system 53​a+54​b=3, 54​a−53​b=−1 for ∇g=⟨a,b⟩: multiplying by 3 and 4 and adding gives 5a=5, then b=3.) Check: ⟨1,3⟩⋅u=53​+512​=3 and ⟨1,3⟩⋅v=54​−59​=−1.

    The maximum rate of change is ∣∇g(P)∣=10​, in the direction 10​1​⟨1,3⟩. The rate is 0 exactly when w⊥∇g(P), i.e. along the level curve: w=±10​1​⟨3,−1⟩, since ⟨1,3⟩⋅⟨3,−1⟩=0.

    (c) The gradient is normal to level sets. The surface is the level set F=6 of F(x,y,z)=xyz, and by the theorem that the gradient is normal to level sets, ∇F(1,2,3) is a normal vector, provided it is nonzero:

    ∇F=⟨yz, xz, xy⟩,∇F(1,2,3)=⟨6,3,2⟩=0.

    Tangent plane: 6(x−1)+3(y−2)+2(z−3)=0, that is 6x+3y+2z=18; check 6+6+6=18. Normal line, through (1,2,3) in the direction ⟨6,3,2⟩:

    6x−1​=3y−2​=2z−3​,orx=1+6t,  y=2+3t,  z=3+2t.

  9. 9.Computation

    Let f(x,y)=x2y−2xy+y2−3y.

    1. (a)Find all critical points of f. Show your case analysis — a factored equation has more than one solution branch, and each must be followed to the end.
    2. (b)Classify each critical point with the Second Derivatives Test, stating the value of D at each one and the hypothesis the test requires.
    3. (c)Is the local minimum value you found the absolute minimum of f on R2? Prove your answer.

    Solution

    (a) Factor fx​, then split into cases. f is a polynomial, so both partials exist everywhere and the critical points are exactly the simultaneous zeros of

    fx​=2xy−2y=2y(x−1),fy​=x2−2x+2y−3.

    fx​=0 forces y=0 or x=1.

    Case y=0. Then fy​=x2−2x−3=(x−3)(x+1)=0, so x=3 or x=−1: the points (3,0) and (−1,0).

    Case x=1. Then fy​=1−2+2y−3=2y−4=0, so y=2: the point (1,2).

    Three critical points: (3,0), (−1,0), (1,2).

    (b) Second Derivatives Test. fxx​=2y, fxy​=2x−2, fyy​=2, all polynomials, hence continuous on every disc — the hypothesis of the test. So

    D=fxx​fyy​−fxy2​=4y−4(x−1)2.

    At (3,0): D=0−16=−16<0, a saddle point. At (−1,0): D=0−16=−16<0, a saddle point. At (1,2): D=8−0=8>0 and fxx​=4>0, a local minimum, with value

    f(1,2)=2−4+4−6=−4.

    (c) No — f is unbounded below. Restrict f to the line y=−1:

    f(x,−1)=−x2+2x+1+3=−x2+2x+4⟶−∞as x→∞;

    for instance f(10,−1)=−100+20+4=−76<−4. So no value is an absolute minimum, and −4 is a local minimum only. (Likewise f(0,y)=y2−3y→∞, so there is no absolute maximum either.) There is no contradiction with the test: critical points are where a local extremum can be, and on an unbounded domain nothing — no Extreme Value Theorem — promises that an absolute extremum exists at all.

  10. 10.Computation

    Find the absolute maximum and minimum values of f(x,y)=x2−y2+2y on the closed disc x2+y2≤4, and the points where they occur. Before you begin, say why you know they exist.

    1. (a)Find and classify the critical points of f in the open disc, and explain why the value at a critical point classified as a saddle can be neither the absolute maximum nor the absolute minimum.
    2. (b)Reduce f on the boundary circle to a function of one variable on a closed interval — by parametrising, or by substituting x2=4−y2 — and find its extreme values, endpoints included.
    3. (c)Combine to state the absolute extrema. Then explain what changes if the region is the open disc x2+y2<4.

    Solution

    Existence. f is a polynomial, hence continuous, and the closed disc is closed (it contains its boundary circle) and bounded (it lies inside the disc of radius 2). By the Extreme Value Theorem for two variables, f attains an absolute maximum and an absolute minimum on it.

    (a) Interior. fx​=2x and fy​=−2y+2 vanish together only at (0,1), which is inside the disc since 0+1<4; there f(0,1)=−1+2=1. The second partials fxx​=2, fyy​=−2, fxy​=0 are continuous and give D=(2)(−2)−0=−4<0: a saddle point. An absolute extremum attained at an interior point is in particular a local extremum there, and a saddle point is neither a local maximum nor a local minimum; so the value 1 is out, and both absolute extrema must lie on the boundary circle.

    (b) Boundary. On the circle x2=4−y2 with −2≤y≤2, and because f depends on x only through x2, the substitution is legitimate:

    h(y)=(4−y2)−y2+2y=−2y2+2y+4,−2≤y≤2.

    Closed-interval method: h′(y)=−4y+2=0 at y=21​, and

    h(21​)=−21​+1+4=29​,h(2)=−8+4+4=0,h(−2)=−8−4+4=−8.

    Translate back to points: y=21​ gives x2=4−41​=415​, so x=±215​​; y=2 gives (0,2); y=−2 gives (0,−2). (Parametrising instead, x=2cost, y=2sint gives g(t)=4−8sin2t+4sint, the same quadratic in s=sint, with its maximum at sint=41​, i.e. y=21​ — the substitution route simply avoids an ugly angle.)

    Check one directly: f(215​​,21​)=415​−41​+1=414​+1=29​.

    (c) Compare. The candidates are 1 (interior saddle, already excluded), 29​, 0 and −8. The absolute maximum is 29​, at the two points (±215​​,21​); the absolute minimum is −8, at (0,−2).

    On the open disc the set is not closed, so the Extreme Value Theorem no longer applies, and in fact both extrema disappear: the only interior critical point is a saddle, so f has no local extremum anywhere in the open disc, hence no absolute one. The values 29​ and −8 are approached — f(0,y)=−y2+2y→−8 as y→−2 from inside — but never attained. The open disc has a supremum and an infimum of f, not a maximum and a minimum.

  11. 11.Computation

    Use Lagrange multipliers. In each part say why the extreme values exist before you look for them, and treat every case that arises when you eliminate λ — a division by a quantity that might be 0 is a case split, not a step.

    1. (a)Find the maximum and minimum values of f(x,y)=x2y on the ellipse x2+2y2=6, and the points where they occur.
    2. (b)Find the highest and lowest points on the curve in which the cylinder x2+y2=1 meets the plane x+y+z=1 — that is, the extreme values of z on that curve.

    Solution

    (a) Existence, gradient check, then cases. The ellipse is closed and bounded and f is continuous, so by the Extreme Value Theorem both extremes exist. With g(x,y)=x2+2y2, ∇g=⟨2x,4y⟩ vanishes only at the origin, which is not on the ellipse, so the method applies everywhere on it. Since ∇f=⟨2xy, x2⟩, the equations ∇f=λ∇g and g=6 are

    2xy=2λx(1),x2=4λy(2),x2+2y2=6(3).

    Equation (1) says x(y−λ)=0, so either x=0 or λ=y.

    Case x=0. Then (3) gives 2y2=6, y=±3​, and (2) reads 0=4λy, so λ=0, consistent. Candidates (0,±3​), where f=0.

    Case x=0, so λ=y. Then (2) gives x2=4y2, and (3) becomes 4y2+2y2=6, so y=±1 and x=±2: four candidates (±2,1) and (±2,−1), with

    f(±2,1)=4,f(±2,−1)=−4.

    Comparing 0,4,−4: the maximum is 4 at (2,1) and (−2,1), the minimum is −4 at (2,−1) and (−2,−1). Dividing (1) through by x would have silently discarded the first case; here those points happen not to be extremes, but nothing guaranteed that in advance.

    (b) Two constraints. The curve is the intersection of the cylinder with a non-vertical plane, an ellipse: it is bounded, since x2+y2=1 bounds x and y and then z=1−x−y is bounded too, and closed, so z attains a maximum and a minimum on it. Take f(x,y,z)=z, g=x2+y2, h=x+y+z:

    ∇f=⟨0,0,1⟩,∇g=⟨2x,2y,0⟩,∇h=⟨1,1,1⟩.

    These last two are never parallel on the curve (a multiple of ∇h has nonzero third component, while ∇g has third component 0 and is itself nonzero on the cylinder), so the two-constraint condition ∇f=λ∇g+μ∇h holds at each extremum:

    0=2λx+μ,0=2λy+μ,1=μ.

    So μ=1 and 2λx=−1=2λy. This forces λ=0, and then x=y. The cylinder gives 2x2=1, x=y=±2​1​, and the plane gives z=1−x−y=1∓2​. The two candidates are

    (2​1​,2​1​,1−2​)and(−2​1​,−2​1​,1+2​),

    so the lowest point has z=1−2​ and the highest has z=1+2​. Check by parametrising: x=cost, y=sint gives z=1−cost−sint=1−2​sin(t+4π​), whose range is exactly [1−2​, 1+2​].

  12. 12.Proof

    Let k>0 and let T be the triangle

    T={(x,y,z):x+y+z=k, x≥0, y≥0, z≥0}.

    This question uses Lagrange multipliers to prove an inequality, so the logic — why a maximum exists, where it can be, and why the candidate found is the maximum — matters as much as the algebra.

    1. (a)Explain why f(x,y,z)=xyz attains a maximum on T, and why that maximum is attained at a point with x, y and z all strictly positive.
    2. (b)Use the method of Lagrange multipliers to show that the maximum is (3k​)3, attained only at x=y=z=3k​.
    3. (c)Deduce the arithmetic–geometric mean inequality 3abc​≤3a+b+c​ for all a,b,c≥0, with equality if and only if a=b=c.
    4. (d)Explain why the same argument proves nothing if the sign conditions are dropped and T is replaced by the whole plane x+y+z=k.

    Solution

    (a) Extreme Value Theorem, then push off the edges. T is bounded: each coordinate is at least 0 and, since the other two are at least 0 and the three sum to k, at most k; so T lies in a ball of radius k3​. T is closed: it is cut out by an equation and non-strict inequalities in continuous functions, so any limit of points of T satisfies the same conditions and is in T. And f is a polynomial, hence continuous. By the Extreme Value Theorem, f attains an absolute maximum M at some point of T.

    On the edges of T — the points where at least one coordinate is 0 — the product xyz is 0. But the point (3k​,3k​,3k​) belongs to T and gives f=27k3​>0. Hence M≥27k3​>0, and a maximiser cannot lie on an edge: at the maximiser, x,y,z are all strictly positive.

    (b) Lagrange at an interior point. Near a point of T with all coordinates positive, the constraint set is the smooth level surface g(x,y,z)=x+y+z=k, with ∇g=⟨1,1,1⟩=0. So at the maximiser ∇f=λ∇g, that is,

    yz=λ,xz=λ,xy=λ,x+y+z=k.

    From yz=xz and z>0 we get x=y; from xz=xy and x>0 we get z=y. (These divisions are legal precisely because (a) put us in the interior.) So x=y=z, and the constraint gives 3x=k, x=3k​. There is exactly one candidate. Since a maximiser exists and must be a candidate, the maximum is

    M=f(3k​,3k​,3k​)=(3k​)3,

    and it is attained only there: any other maximiser would be an interior point solving the same system, hence the same point. ■

    (c) The inequality. Let a,b,c≥0. If a+b+c=0 then a=b=c=0, both sides are 0, and equality holds with a=b=c. Otherwise put k=a+b+c>0; then (a,b,c)∈T, so by (b)

    abc≤(3k​)3=(3a+b+c​)3,

    and taking cube roots, which is an increasing operation on [0,∞), gives 3abc​≤3a+b+c​. For equality: if 3abc​=3a+b+c​ then abc=(3k​)3, so (a,b,c) is a maximiser of f on T, and by (b) a=b=c=3k​. Conversely, if a=b=c both sides equal a. ■

    (d) Without the sign conditions there is no maximum to find. On the whole plane x+y+z=k the function is unbounded in both directions: along (t,t,k−2t),

    f=t2(k−2t)⟶−∞  as t→+∞,f⟶+∞  as t→−∞.

    The plane is unbounded, so the Extreme Value Theorem does not apply, and indeed neither a maximum nor a minimum exists. The Lagrange system is unchanged and still produces the candidate (3k​,3k​,3k​) — a local maximum on the plane, but not an absolute one, since f exceeds 27k3​ far out. The method produces candidates only; the existence argument in (a) is what turned the candidate into a theorem.

← Back to the question sheet

CalcPath·Free university mathematics

SubjectsProblem setsProgressFeedbackAbout