NivaarExam PrepOfficial exam papers ↗

04-BS-1 · December 2015

Question 4 of 8: Constrained Max/Min via Lagrange Multipliers (Ellipsoid Constraint)

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

National Exams — December 2015 — 04-BS-1 Mathematics. Three-hour, closed-book exam (one double-sided aid sheet permitted, approved calculator allowed). Format: eight questions offered; any five constitute a complete paper and only the first five appearing in the answer book are marked. All eight are solved below for completeness.

Reference texts: Kreyszig, Advanced Engineering Mathematics (10th ed., Wiley) — ODEs, systems of ODEs, line/surface integrals, Stokes'/divergence theorems; Stewart, Calculus: Early Transcendentals (9th ed., Cengage) — Lagrange multipliers, planes and lines in space, surface/flux integrals, volumes.

Question 4: Constrained Max/Min via Lagrange Multipliers (Ellipsoid Constraint) (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. Objective $f(x,y,z)=x+y-2z$; constraint $g(x,y,z)=x^2+y^2+4z^2-1=0$ (a compact ellipsoid).

Find. The global maximum and minimum of $f$ on the ellipsoid.

Approach. The ellipsoid is closed and bounded, so $f$ (continuous) attains both a max and a min on it. Use Lagrange multipliers: $\nabla f=\lambda\nabla g$ together with the constraint gives exactly two critical points.

  1. Set up the Lagrange conditions. $\nabla f=(1,1,-2)$, $\nabla g=(2x,2y,8z)$, so $$1=2\lambda x,\qquad 1=2\lambda y,\qquad -2=8\lambda z.$$ Solving each for the variable: $x=y=\dfrac{1}{2\lambda},\qquad z=-\dfrac{1}{4\lambda}.$
  2. Substitute into the constraint. $$x^2+y^2+4z^2=\frac{2}{4\lambda^2}+\frac{4}{16\lambda^2}=\frac{1}{2\lambda^2}+\frac{1}{4\lambda^2}=\frac{3}{4\lambda^2}=1 \;\Rightarrow\; \lambda^2=\frac34 \;\Rightarrow\; \lambda=\pm\frac{\sqrt3}{2}.$$
  3. Evaluate $f$ at both critical points. $$f=x+y-2z=\frac{1}{2\lambda}+\frac{1}{2\lambda}+\frac{1}{2\lambda}=\frac{3}{2\lambda}.$$ For $\lambda=+\tfrac{\sqrt3}{2}$: $f=\dfrac{3}{\sqrt3}=\sqrt3$ (maximum). For $\lambda=-\tfrac{\sqrt3}{2}$: $f=-\sqrt3$ (minimum).

$$f_{\max}=\boxed{\sqrt3}\ \text{at}\ \left(\tfrac{1}{\sqrt3},\tfrac{1}{\sqrt3},-\tfrac{1}{2\sqrt3}\right),\qquad f_{\min}=\boxed{-\sqrt3}\ \text{at}\ \left(-\tfrac{1}{\sqrt3},-\tfrac{1}{\sqrt3},\tfrac{1}{2\sqrt3}\right)$$

QuantityResult
$\lambda$ values$\pm\sqrt3/2$
$f_{\max}$$\sqrt3\approx1.732$
$f_{\min}$$-\sqrt3\approx-1.732$