Independent study guide

Constrained Optimization Practice: Six Questions and Solutions

Six guided questions with hints, complete solutions and retries on feasible sets, Lagrange candidates, boundaries and inconclusive tests.

Nablio · 6 questionsPublished

Practise one decision at a time: describe the feasible set, choose substitution or Lagrange multipliers, keep every case and justify the extremum. All variables and objective values below are real and dimensionless. These are original learning questions, not a Concordia assessment. They support later-course MAST 218 topics; use your own section outline for timing and assessment scope.

Try each question before opening its hint or solution. After checking the reasoning, solve the retry without looking back. For the full method, use Constrained optimization: from feasible points to justified extrema.

1. A minimum on an unbounded line

Find the global extrema of f(x,y)=2x2+y2f(x,y)=2x^2+y^2 subject to x+y=6x+y=6. State the feasible set and give both the value and location of every extremum that exists. Verify the candidate using Lagrange multipliers.

Hint

Write y=6−xy=6-x. What values may xx take? Complete the square before deciding whether a maximum exists.

Explained solution

The feasible set is the whole line, so x∈Rx\in\mathbb R. Substitution gives

F(x)=2x2+(6−x)2=3(x−2)2+24.\begin{aligned}F(x)&=2x^2+(6-x)^2\\&=3(x-2)^2+24.\end{aligned}

Thus the unique global minimum is 2424 at (2,4)(2,4). As ∣x∣→∞|x|\to\infty, F(x)→+∞F(x)\to+\infty, so there is no global maximum. The line is unbounded, but that does not prevent a minimum.

For g=x+y=6g=x+y=6, ∇g=(1,1)≠0\nabla g=(1,1)\ne\mathbf0. The equations

4x=λ,2y=λ,x+y=6\begin{gathered}4x=\lambda,\\2y=\lambda,\\x+y=6\end{gathered}

give y=2xy=2x, hence (2,4)(2,4), λ=8\lambda=8. Check the original constraint: 2+4=62+4=6. Check the objective: 2(2)2+42=242(2)^2+4^2=24. The completed square supplies the global proof.

Retry: keep only nonnegative coordinates

Keep the same objective and add x≥0x\ge0, y≥0y\ge0. What changes?

Retry solution

Now 0≤x≤60\le x\le6. The only interior stationary point remains x=2x=2. At the endpoints, f(0,6)=36f(0,6)=36 and f(6,0)=72f(6,0)=72. Comparing these with 2424 gives the same unique minimum at (2,4)(2,4) and a global maximum of 7272 at (6,0)(6,0). The maximum exists because the endpoints restrict how far along the line you may go.

Deeper explanation: substitution and the allowed interval.

2. Both extrema on a circle

Find the global extrema of f(x,y)=3x+4yf(x,y)=3x+4y on x2+y2=25x^2+y^2=25. Why is comparing all regular multiplier candidates enough here?

Hint

Use (3,4)=λ(2x,2y)(3,4)=\lambda(2x,2y). Can λ\lambda be zero? Check that your points lie on the circle.

Explained solution

The circle is nonempty, closed and bounded, and ff is continuous. Both global extrema exist. The constraint gradient (2x,2y)(2x,2y) is nonzero everywhere on the circle, which has no endpoints.

The equations are

3=2λx,4=2λy,x2+y2=25.\begin{gathered}3=2\lambda x,\\4=2\lambda y,\\x^2+y^2=25.\end{gathered}

Here λ=0\lambda=0 is impossible because the first equation would give 3=03=0. Thus x=3/(2λ)x=3/(2\lambda) and y=4/(2λ)y=4/(2\lambda). The constraint becomes 25/(4λ2)=2525/(4\lambda^2)=25, so λ=±1/2\lambda=\pm1/2.

The candidates are (3,4)(3,4), with value 2525, and (−3,−4)(-3,-4), with value −25-25. They give the global maximum and minimum respectively. Every possible global extremum must satisfy these candidate equations, and every solution has been checked.

Independent check: Cauchy–Schwarz gives ∣3x+4y∣≤32+42x2+y2=25\begin{gathered}|3x+4y|\\\le\sqrt{3^2+4^2}\sqrt{x^2+y^2}\\=25\end{gathered}, with equality at exactly these aligned or oppositely aligned points.

Retry: replace the circle by an open disk

Now use x2+y2<25x^2+y^2<25. Do the same extreme values occur?

Retry solution

For every feasible point, ∣3x+4y∣<25|3x+4y|<25; neither boundary point is allowed. For 0<t<10<t<1, the points (3t,4t)(3t,4t) give f=25t→25f=25t\to25 as t→1−t\to1^-, and (−3t,−4t)(-3t,-4t) give f=−25t→−25f=-25t\to-25. Therefore the supremum is 2525 and the infimum is −25-25, but neither is attained. There is no global maximum or minimum. A supremum is the least upper bound; an infimum is the greatest lower bound. They need not be values at feasible points.

Deeper explanation: existence and feasible sets.

3. Keep every candidate on an ellipse

Find all points of global maximum and minimum of f(x,y)=xyf(x,y)=xy subject to x2+4y2=4x^2+4y^2=4.

Hint

Use y=2λxy=2\lambda x and x=8λyx=8\lambda y. Check zero-coordinate cases before cancelling. Relate x2x^2 and y2y^2 without choosing signs too early.

Explained solution

The ellipse is compact, and ∇g=(2x,8y)\nabla g=(2x,8y) is never zero on it. Both global extrema exist and must appear among the regular candidates.

If x=0x=0, the first multiplier equation forces y=0y=0, which is infeasible. Similarly y=0y=0 cannot be a candidate. Multiplying the first equation by yy and the second by xx yields

y2=2λxy,x2=8λxy,\begin{gathered}y^2=2\lambda xy,\\x^2=8\lambda xy,\end{gathered}

so x2=4y2x^2=4y^2. The constraint then gives 8y2=48y^2=4, or y2=1/2y^2=1/2, and x2=2x^2=2.

The global maximum is 11 at (2,1/2)(\sqrt2,1/\sqrt2) and (−2,−1/2)(-\sqrt2,-1/\sqrt2). The global minimum is −1-1 at (2,−1/2)(\sqrt2,-1/\sqrt2) and (−2,1/2)(-\sqrt2,1/\sqrt2). All four satisfy the constraint and multiplier equations; same signs give λ=1/4\lambda=1/4, opposite signs give λ=−1/4\lambda=-1/4.

Independent check: (x−2y)2≥0(x-2y)^2\ge0 and (x+2y)2≥0(x+2y)^2\ge0, together with the constraint, imply −1≤xy≤1-1\le xy\le1. The listed points attain the two bounds.

Retry: change only the objective

On the same ellipse, optimize h(x,y)=x2+4y2h(x,y)=x^2+4y^2.

Retry solution

The constraint itself gives h=4h=4 at every feasible point. Thus the global maximum and minimum are both 44, each attained everywhere on the ellipse. They are not strict extrema. With g=x2+4y2g=x^2+4y^2, the equations ∇h=λ∇g\nabla h=\lambda\nabla g hold at every point for λ=1\lambda=1. A candidate set need not be a finite list.

Deeper explanation: multiple candidates on a compact constraint.

4. Do not drop the interior of a disk

Find the global extrema of f(x,y)=x2+2y2f(x,y)=x^2+2y^2 on x2+y2≤4x^2+y^2\le4. Give separate interior and boundary candidate lists, then compare them.

Hint

Inside the disk, use ∇f=0\nabla f=\mathbf0. On the circle, use the constraint to rewrite ff, or solve the multiplier equations while keeping zero-coordinate cases.

Explained solution

Continuity on the closed disk guarantees both global extrema. In the interior, ∇f=(2x,4y)=0\nabla f=(2x,4y)=\mathbf0 gives the feasible point (0,0)(0,0), with value 00.

On the boundary, x2+y2=4x^2+y^2=4, so f=4+y2f=4+y^2. Its boundary minimum is 44 at (±2,0)(\pm2,0), and its boundary maximum is 88 at (0,±2)(0,\pm2).

For completeness, the boundary multiplier equations are

2x=2λx,4y=2λy,x2+y2=4.\begin{gathered}2x=2\lambda x,\\4y=2\lambda y,\\x^2+y^2=4.\end{gathered}

If both coordinates were nonzero, the first equation would give λ=1\lambda=1 and the second λ=2\lambda=2, impossible. If y=0y=0, the candidates are (±2,0)(\pm2,0); if x=0x=0, they are (0,±2)(0,\pm2). Both cannot be zero on the circle. No boundary cases are missing.

Comparing the five points gives the unique global minimum 00 at (0,0)(0,0) and global maximum 88 at both (0,2)(0,2) and (0,−2)(0,-2). A direct bound checks the result: 0≤x2+2y2≤2(x2+y2)≤8\begin{aligned}0\le x^2+2y^2&\le2(x^2+y^2)\\&\le8\end{aligned}, with the stated equality cases. The boundary minimum 44 is not the minimum on the disk.

Retry: keep only the boundary

Replace the inequality by x2+y2=4x^2+y^2=4.

Retry solution

The origin is now infeasible. The global minimum is 44 at (±2,0)(\pm2,0); the global maximum remains 88 at (0,±2)(0,\pm2). The objective did not change, but the feasible set did.

Deeper explanation: interior and boundary comparisons.

5. Diagnose a constraint-gradient failure

Optimize f(x,y)=x+yf(x,y)=x+y subject to (x2+y2−1)2=0(x^2+y^2-1)^2=0. A student obtains no Lagrange candidates and says there can be no extrema. Identify the failed hypothesis, then solve the problem.

Hint

Which set does the squared equation describe? Compute its gradient on that set. Can the same set be represented by a regular equation?

Explained solution

The feasible set is exactly the unit circle. If G=(x2+y2−1)2G=(x^2+y^2-1)^2, then

∇G=4(x2+y2−1)(x,y)=0\begin{aligned}\nabla G&=4(x^2+y^2-1)(x,y)\\&=\mathbf0\end{aligned}

at every feasible point. Since ∇f=(1,1)\nabla f=(1,1), the equations ∇f=λ∇G\nabla f=\lambda\nabla G have no solutions. The regularity hypothesis has failed everywhere; those equations are not a necessary condition here.

Use the equivalent regular constraint g=x2+y2=1g=x^2+y^2=1. Now (1,1)=2λ(x,y)(1,1)=2\lambda(x,y), so λ≠0\lambda\ne0 and x=yx=y. The constraint gives x=y=±1/2x=y=\pm1/\sqrt2. The continuous objective on the compact circle therefore has maximum 2\sqrt2 at (1/2,1/2)(1/\sqrt2,1/\sqrt2) and minimum −2-\sqrt2 at (−1/2,−1/2)(-1/\sqrt2,-1/\sqrt2). The bound ∣x+y∣≤2|x+y|\le\sqrt2 provides an independent check.

Retry: a singular point that must be checked directly

Find the global extrema of h(x,y)=x2+y2h(x,y)=x^2+y^2 on y2=x3y^2=x^3, without discarding the origin when the constraint gradient vanishes.

Retry solution

The feasible parametrization (x,y)=(t2,t3)(x,y)=(t^2,t^3), t∈Rt\in\mathbb R, covers the whole cusp. Indeed, the constraint forces x≥0x\ge0; for x>0x>0, setting t=y/xt=y/x gives t2=xt^2=x and t3=yt^3=y, while the origin corresponds to t=0t=0.

Then h=t4+t6≥0h=t^4+t^6\ge0, with equality only at t=0t=0. The unique global minimum is 00 at (0,0)(0,0); there is no global maximum because h→+∞h\to+\infty as ∣t∣→∞|t|\to\infty. For g=y2−x3g=y^2-x^3, ∇g=(−3x2,2y)\nabla g=(-3x^2,2y) vanishes at the origin, so it deserves a direct check even though it happens also to satisfy the multiplier equation for this objective.

Deeper explanation: singular constraints and representations.

6. A zero second derivative leaves a decision to make

Optimize f(x,y)=(x−1)4+y2f(x,y)=(x-1)^4+y^2 on y=2y=2. Find the Lagrange candidate. A student checks the second derivative of the reduced function, gets zero and concludes “no minimum.” Repair that reasoning.

Hint

Write F(x)=f(x,2)F(x)=f(x,2). A direct sign comparison can settle the problem even when the second-derivative test cannot.

Explained solution

The regular constraint g=y=2g=y=2 has gradient (0,1)(0,1). Lagrange gives

4(x−1)3=0,2y=λ,y=2,\begin{gathered}4(x-1)^3=0,\\2y=\lambda,\\y=2,\end{gathered}

so the candidate is (1,2)(1,2), with λ=4\lambda=4. Substitution gives

F(x)=(x−1)4+4,F′′(x)=12(x−1)2.\begin{gathered}F(x)=(x-1)^4+4,\\F''(x)=12(x-1)^2.\end{gathered}

Thus F′′(1)=0F''(1)=0, and the second-derivative test is inconclusive. However, F(x)≥4F(x)\ge4, with equality only at x=1x=1. The unique global minimum is 44 at (1,2)(1,2). There is no global maximum because the fourth power is unbounded above. The inequality supplies the missing classification.

Retry: change the fourth power to a cube

Optimize h(x,y)=(x−1)3+y2h(x,y)=(x-1)^3+y^2 on y=2y=2. Does the stationary point still give a minimum?

Retry solution

The candidate is again (1,2)(1,2): 3(x−1)2=03(x-1)^2=0, 2y=λ2y=\lambda, y=2y=2. But the reduced function is H(x)=(x−1)3+4H(x)=(x-1)^3+4. For every ε>0\varepsilon>0,

H(1+ε)=4+ε3,H(1−ε)=4−ε3.\begin{gathered}H(1+\varepsilon)=4+\varepsilon^3,\\H(1-\varepsilon)=4-\varepsilon^3.\end{gathered}

Hence the candidate is neither a local minimum nor a local maximum along the line. As x→±∞x\to\pm\infty, the objective is unbounded in both directions, so there is no global extremum either. Again the second derivative at the candidate is zero; the sign comparison resolves what that test leaves open.

Deeper explanation: stationary candidates and inconclusive tests.

Review the reasoning you want to improve

  • Missed a condition or an endpoint? Revisit the feasible set.
  • Found a candidate but could not classify it? Use the conclusion checklist.
  • Lost a zero-coordinate case? Rework question 4 without dividing by either coordinate.

For MAST 218 tutoring, bring your feasible-set sketch, full candidate list and the step where the conclusion became uncertain. We work through permitted practice and comparable examples, without completing graded assessments on your behalf.

Useful for

Work on the step you’re missing.

Tell us the subject and your preferred time. Nablio confirms the details by text or email.

Request a lesson