Multivariable Calculus: Limits, Derivatives, Optimization, and Lagrange Multipliers

Limits and Continuity in Higher Dimensions

  • Functions of Two Variables:

    • Let f(x,y)f(x,y) be a real-valued function of two independent variables xx and yy.

  • Limit of a Multivariable Function:

    • The limit of f(x,y)f(x,y) as (x,y)(x,y) approaches the point (a,b)(a,b) is written as:     lim⁡(x,y)→(a,b)f(x,y)=L\lim_{(x,y) \to (a,b)} f(x,y) = L

  • Definition of Continuity:

    • A function f(x,y)f(x,y) is continuous at (a,b)(a,b) if the limit LL exists and the value of the limit equals the value of the function at that point:     L=f(a,b)L = f(a,b)

Multivariable Partial Derivatives

  • Limit Definitions of Partial Derivatives:

    • The partial derivative of f(x,y)f(x,y) with respect to xx is defined as:     lim⁡h→0f(x+h,y)−f(x,y)h\lim_{h \to 0} \frac{f(x+h, y) - f(x,y)}{h}

    • The partial derivative of f(x,y)f(x,y) with respect to yy is defined as:     lim⁡h→0f(x,y+h)−f(x,y)h\lim_{h \to 0} \frac{f(x, y+h) - f(x,y)}{h}

  • Worked Example Using the Limit Definition:

    • Given the function f(x,y)=2x+yf(x,y) = 2x + y:

    • Differentiating with respect to xx:     lim⁡h→02(x+h)+y−(2x+y)h\lim_{h \to 0} \frac{2(x+h) + y - (2x+y)}{h}     lim⁡h→02x+2h+y−2x−yh\lim_{h \to 0} \frac{2x + 2h + y - 2x - y}{h}     lim⁡h→02hh=2\lim_{h \to 0} \frac{2h}{h} = 2

    • Differentiating with respect to yy:     lim⁡h→02x+(y+h)−(2x+y)h\lim_{h \to 0} \frac{2x + (y+h) - (2x+y)}{h}     lim⁡h→02x+y+h−2x−yh\lim_{h \to 0} \frac{2x + y + h - 2x - y}{h}     lim⁡h→0hh=1\lim_{h \to 0} \frac{h}{h} = 1

  • The Constant-Variable Shortcut Rule:

    • An easier method to compute partial derivatives is to treat the variable not currently being differentiated with respect to as a constant.

  • Computational Examples:

    • Given f(x,y)=sin⁡(x+y)−xyf(x,y) = \sin(x+y) - xy:

    • Differentiating with respect to xx:       ∂f∂x=cos⁡(x+y)−y\frac{\partial f}{\partial x} = \cos(x+y) - y

    • Differentiating with respect to yy:       ∂f∂y=cos⁡(x+y)−x\frac{\partial f}{\partial y} = \cos(x+y) - x

    • Given f(x,y)=ln⁡(x2y)−eyf(x,y) = \ln(x^2 y) - e^y:

    • Differentiating with respect to xx:       ∂f∂x=2yxx2y−0=2x\frac{\partial f}{\partial x} = \frac{2yx}{x^2 y} - 0 = \frac{2}{x}

    • Differentiating with respect to yy:       ∂f∂y=x2x2y−ey=1y−ey\frac{\partial f}{\partial y} = \frac{x^2}{x^2 y} - e^y = \frac{1}{y} - e^y

Higher-Order Partial Derivatives and Clairaut's Theorem

  • Definitions of Mixed Partial Derivatives:

    • fxyf_{xy} represents taking the partial derivative first with respect to xx, and then with respect to yy.

    • fyxf_{yx} represents taking the partial derivative first with respect to yy, and then with respect to xx.

  • Demonstration of Mixed Partials Equality:

    • Let f(x,y)=x2sin⁡(x+y)f(x,y) = x^2 \sin(x+y).

    • Finding fxyf_{xy}:

    • First partial with respect to xx via the product rule:       fx=2xsin⁡(x+y)+x2cos⁡(x+y)f_x = 2x \sin(x+y) + x^2 \cos(x+y)

    • Differentiating fxf_x with respect to yy:       fxy=0+2xcos⁡(x+y)+0+(−x2sin⁡(x+y))f_{xy} = 0 + 2x \cos(x+y) + 0 + (-x^2 \sin(x+y))       fxy=2xcos⁡(x+y)−x2sin⁡(x+y)f_{xy} = 2x \cos(x+y) - x^2 \sin(x+y)

    • Finding fyxf_{yx}:

    • First partial with respect to yy treating xx as constant:       fy=0+x2cos⁡(x+y)f_y = 0 + x^2 \cos(x+y)

    • Differentiating fyf_y with respect to xx via the product rule:       fyx=2xcos⁡(x+y)+(−x2sin⁡(x+y))f_{yx} = 2x \cos(x+y) + (-x^2 \sin(x+y))       fyx=2xcos⁡(x+y)−x2sin⁡(x+y)f_{yx} = 2x \cos(x+y) - x^2 \sin(x+y)

    • Conclusion: fxy=fyxf_{xy} = f_{yx}, showing that mixed partial derivatives are equal.

The Gradient Vector and Level Curves

  • Gradient Definition:

    • Given a surface z=f(x,y)z = f(x,y), the gradient of ff is denoted by the total derivative vector:     ∇f(x,y)=⟨fx(x,y),fy(x,y)⟩\nabla f(x,y) = \langle f_x(x,y), f_y(x,y) \rangle

  • Geometric Property:

    • The gradient vector ∇f(x,y)\nabla f(x,y) is orthogonal (perpendicular) to the level curves of ff.

  • Worked Example:

    • Find the gradient of f(x,y)=x2y+3y3f(x,y) = x^2 y + 3y^3 at the point (1,2)(1,2):

    • Partial derivative with respect to xx:       ∂f∂x=2yx+0=2yx\frac{\partial f}{\partial x} = 2yx + 0 = 2yx

    • Partial derivative with respect to yy:       ∂f∂y=x2+9y2\frac{\partial f}{\partial y} = x^2 + 9y^2

    • Evaluating at (1,2)(1,2):       fx(1,2)=2(2)(1)=4f_x(1,2) = 2(2)(1) = 4       fy(1,2)=(1)2+9(2)2=1+9(4)=37f_y(1,2) = (1)^2 + 9(2)^2 = 1 + 9(4) = 37

    • The resulting gradient vector is:       ∇f(1,2)=⟨4,37⟩\nabla f(1,2) = \langle 4, 37 \rangle

Tangent Planes to Surfaces

  • Vector Formulation of Tangent Vectors:


    • }The lines lying within the tangent plane at (x0,y0,f(x0,y0))(x_0, y_0, f(x_0, y_0)) are given by:     (x0,y0,f(x0,y0))+t⟨1,0,fx(x0,y0)⟩(x_0, y_0, f(x_0, y_0)) + t \langle 1, 0, f_x(x_0, y_0) \rangle     (x0,y0,f(x0,y0))+t⟨0,1,fy(x0,y0)⟩(x_0, y_0, f(x_0, y_0)) + t \langle 0, 1, f_y(x_0, y_0) \rangle

  • Equation of the Tangent Plane via Cross Product:

    • Computing the cross product of the two tangent vectors yields the normal vector:     ⟨1,0,fx(x0,y0)⟩×⟨0,1,fy(x0,y0)⟩=⟨−fx(x0,y0),−fy(x0,y0),1⟩\langle 1, 0, f_x(x_0, y_0) \rangle \times \langle 0, 1, f_y(x_0, y_0) \rangle = \langle -f_x(x_0, y_0), -f_y(x_0, y_0), 1 \rangle

    • Parametric plane formulation:     (x0,y0,f(x0,y0))+t⟨fx(x0,y0),fy(x0,y0),1⟩(x_0, y_0, f(x_0, y_0)) + t \langle f_x(x_0, y_0), f_y(x_0, y_0), 1 \rangle

  • Standard Tangent Plane Equation:

    • The Cartesian equation of the tangent plane at (x0,y0)(x_0, y_0) is:     ∂f∂x(x0,y0)(x−x0)+∂f∂y(x0,y0)(y−y0)+f(x0,y0)=z\frac{\partial f}{\partial x}(x_0, y_0)(x - x_0) + \frac{\partial f}{\partial y}(x_0, y_0)(y - y_0) + f(x_0, y_0) = z

  • Worked Example: Derivatives of an Exponential-Trigonometric Function:

    • Given f(x,y)=ex−y−cos⁡(x2y)f(x,y) = e^{x-y} - \cos(x^2 y):

    • First partial with respect to xx:       fx=ex−y+sin⁡(x2y)(2yx)f_x = e^{x-y} + \sin(x^2 y)(2yx)

    • First partial with respect to yy:       fy=−ex−y+sin⁡(x2y)(x2)f_y = -e^{x-y} + \sin(x^2 y)(x^2)

    • Second mixed partial fxyf_{xy}:       fxy=−ex−y+cos⁡(x2y)(2yx)(x2)+sin⁡(x2y)(2x)f_{xy} = -e^{x-y} + \cos(x^2 y)(2yx)(x^2) + \sin(x^2 y)(2x)

  • Worked Example: Tangent Vectors for an Oscillating Surface:

    • Given z=sin⁡(2x)cos⁡(3y)z = \sin(2x) \cos(3y):

    • Tangent vector v1v_1 along the xx-direction:       v1=⟨1,0,−sin⁡(2x)sin⁡(3y)(0)+cos⁡(3y)cos⁡(2x)(2)⟩v_1 = \langle 1, 0, -\sin(2x) \sin(3y)(0) + \cos(3y) \cos(2x)(2) \rangle       v1=⟨1,0,2cos⁡(3y)cos⁡(2x)⟩v_1 = \langle 1, 0, 2\cos(3y) \cos(2x) \rangle

    • Tangent vector v2v_2 along the yy-direction:       v2=⟨0,1,−sin⁡(2x)sin⁡(3y)(3)+cos⁡(3y)cos⁡(2x)(0)⟩v_2 = \langle 0, 1, -\sin(2x) \sin(3y)(3) + \cos(3y) \cos(2x)(0) \rangle       v2=⟨0,1,−3sin⁡(2x)sin⁡(3y)⟩v_2 = \langle 0, 1, -3\sin(2x) \sin(3y) \rangle

The Multivariable Chain Rule

  • Chain Rule Formula:

    • Given a function f(x(t),y(t))f(x(t), y(t)) dependent on parameter tt:     dfdt=∂f∂xdxdt+∂f∂ydydt\frac{df}{dt} = \frac{\partial f}{\partial x} \frac{dx}{dt} + \frac{\partial f}{\partial y} \frac{dy}{dt}     dfdt=fx⋅x′(t)+fy⋅y′(t)\frac{df}{dt} = f_x \cdot x'(t) + f_y \cdot y'(t)

  • Worked Example:

    • Given f(x,y)=2x+y2f(x,y) = 2x + y^2 where x(t)=sin⁡(t)x(t) = \sin(t) and y(t)=cos⁡(t)y(t) = \cos(t):

    • Compute the spatial partial derivatives:       fx=2f_x = 2       fy=2yf_y = 2y

    • Compute the derivatives with respect to tt:       dxdt=cos⁡(t)\frac{dx}{dt} = \cos(t)       dydt=−sin⁡(t)\frac{dy}{dt} = -\sin(t)

    • Apply the chain rule formula:       dfdt=2cos⁡(t)+2y(−sin⁡(t))\frac{df}{dt} = 2\cos(t) + 2y(-\sin(t))

    • Substitute y=cos⁡(t)y = \cos(t) into the expression:       dfdt=2cos⁡(t)−2cos⁡(t)sin⁡(t)\frac{df}{dt} = 2\cos(t) - 2\cos(t)\sin(t)

The Directional Derivative

  • Definition and Formula:

    • The directional derivative of ff in the direction of a unit vector u=⟨cos⁡(θ),sin⁡(θ)⟩u = \langle \cos(\theta), \sin(\theta) \rangle is:     Duf=∂f∂xcos⁡(θ)+∂f∂ysin⁡(θ)D_u f = \frac{\partial f}{\partial x}\cos(\theta) + \frac{\partial f}{\partial y}\sin(\theta)     Duf=∇f(a,b)⋅uD_u f = \nabla f(a,b) \cdot u

  • Worked Example:

    • Find the directional derivative of f(x,y)=sin⁡(xy)f(x,y) = \sin(xy) at the point (π2,π2)(\frac{\sqrt{\pi}}{2}, \frac{\sqrt{\pi}}{2}) in the direction of vector ⟨1,1⟩\langle 1, 1 \rangle:

    • Normalize the direction vector to a unit vector uu:       u=⟨12,12⟩u = \langle \frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}} \rangle

    • Formulate the general directional derivative:       Duf=ycos⁡(xy)cos⁡(θ)+xcos⁡(xy)sin⁡(θ)D_u f = y\cos(xy)\cos(\theta) + x\cos(xy)\sin(\theta)

    • Evaluate at the coordinates where xy=(π2)(π2)=π4xy = (\frac{\sqrt{\pi}}{2})(\frac{\sqrt{\pi}}{2}) = \frac{\pi}{4}:       Duf(π2,π2)=π2cos⁡(π4)cos⁡(θ)+π2cos⁡(π4)sin⁡(θ)D_u f\left(\frac{\sqrt{\pi}}{2}, \frac{\sqrt{\pi}}{2}\right) = \frac{\sqrt{\pi}}{2} \cos\left(\frac{\pi}{4}\right) \cos(\theta) + \frac{\sqrt{\pi}}{2} \cos\left(\frac{\pi}{4}\right) \sin(\theta)

    • Since cos⁡(π4)=22\cos(\frac{\pi}{4}) = \frac{\sqrt{2}}{2}:       Duf=π222(1)+π222(1)D_u f = \frac{\sqrt{\pi}}{2} \frac{\sqrt{2}}{2} (1) + \frac{\sqrt{\pi}}{2} \frac{\sqrt{2}}{2} (1)

    • Taking the dot product of the gradient and the unit vector:       ⟨π222,π222⟩⋅⟨12,12⟩=π4+π4=π2\langle \frac{\sqrt{\pi}}{2} \frac{\sqrt{2}}{2}, \frac{\sqrt{\pi}}{2} \frac{\sqrt{2}}{2} \rangle \cdot \langle \frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}} \rangle = \frac{\sqrt{\pi}}{4} + \frac{\sqrt{\pi}}{4} = \frac{\sqrt{\pi}}{2}

Multivariable Optimization, Critical Points, and Extrema

  • Critical Points:

    • A point (a,b)(a,b) is a critical point of ff if:     fx(a,b)=0andfy(a,b)=0f_x(a,b) = 0 \quad \text{and} \quad f_y(a,b) = 0     or if either fx(a,b)f_x(a,b) or fy(a,b)f_y(a,b) does not exist (DNE).

  • Worked Example:

    • Find the critical points of f(x,y)=x2+2xy−4y2f(x,y) = x^2 + 2xy - 4y^2:

    • Compute partial derivatives:       fx=2x+2yf_x = 2x + 2y       fy=2x−8yf_y = 2x - 8y

    • Set both equations to zero:       2x+2y=0  ⟹  x=−y2x + 2y = 0 \implies x = -y       2x−8y=0  ⟹  2(−y)−8y=−10y=0  ⟹  y=0,x=02x - 8y = 0 \implies 2(-y) - 8y = -10y = 0 \implies y = 0, x = 0

    • Critical point is (0,0)(0,0).

    • Gradient vector at the critical point:       ∇f(0,0)=⟨0,0⟩\nabla f(0,0) = \langle 0, 0 \rangle

Stick figure at the top of a peak illustrating that at a critical point there is no unique direction of greatest increase
  • Geometric Significance of Critical Points:

    • At an extreme point (such as the peak of a surface), there is no unique direction of greatest increase because the directional derivative in every direction is zero.

  • Definitions of Local Extrema:

    • A function f(x,y)f(x,y) has a local minimum at (a,b)(a,b) if f(x,y)≥f(a,b)f(x,y) \ge f(a,b) for all (x,y)(x,y) that are close to (a,b)(a,b).

    • A function f(x,y)f(x,y) has a local maximum at (a,b)(a,b) if f(x,y)≤f(a,b)f(x,y) \le f(a,b) for all (x,y)(x,y) that are close to (a,b)(a,b).

  • Definition of Saddle Points:

    • If a critical point (a,b)(a,b) is neither a local minimum nor a local maximum, (a,b)(a,b) is classified as a saddle point of the function.

The Hessian Matrix and Second-Order Taylor Approximation

  • Definition of the Hessian Matrix:

    • The Hessian matrix H(a,b)H(a,b) is the matrix of second-order partial derivatives used to classify critical points:     H(a,b)=(fxx(a,b)fxy(a,b)fyx(a,b)fyy(a,b))H(a,b) = \begin{pmatrix} f_{xx}(a,b) & f_{xy}(a,b) \\ f_{yx}(a,b) & f_{yy}(a,b) \end{pmatrix}

  • Determinant Formula:

    • The determinant of HH is defined as:     det⁡(H)=ad−bc=AC−B2\det(H) = ad - bc = AC - B^2

    • where A=fxx(a,b)A = f_{xx}(a,b), B=fxy(a,b)B = f_{xy}(a,b), and C=fyy(a,b)C = f_{yy}(a,b).

  • Multivariable Taylor Approximation (Second Order):

    • The second-order Taylor expansion about (a,b)(a,b) is:     f(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)+12fxx(a,b)(x−a)2+fxy(a,b)(x−a)(y−b)+12fyy(a,b)(y−b)2f(x,y) = f(a,b) + f_x(a,b)(x-a) + f_y(a,b)(y-b) + \frac{1}{2} f_{xx}(a,b)(x-a)^2 + f_{xy}(a,b)(x-a)(y-b) + \frac{1}{2} f_{yy}(a,b)(y-b)^2

  • Simplified Algebraic Representation via Completing the Square:

    • In terms of AA, BB, and CC:     f(x,y)≈A(x+BAy)2+1A(AC−B2)y2f(x,y) \approx A \left( x + \frac{B}{A}y \right)^2 + \frac{1}{A}(AC - B^2)y^2

  • Worked Example: Hessian Matrix Calculation:

    • Calculate H(a,b)H(a,b) for f(x,y)=x3−3xy2f(x,y) = x^3 - 3xy^2 at the point (1,0)(1,0):

    • First-order partial derivatives:       fx=3x2−3y2f_x = 3x^2 - 3y^2       fy=−6xyf_y = -6xy

    • Second-order partial derivatives:       fxx=6xf_{xx} = 6x       fxy=−6yf_{xy} = -6y       fyx=−6yf_{yx} = -6y       fyy=−6xf_{yy} = -6x

    • General Hessian matrix:       H(a,b)=(6x−6y−6y−6x)H(a,b) = \begin{pmatrix} 6x & -6y \\ -6y & -6x \end{pmatrix}

    • Evaluating at (1,0)(1,0):       H(1,0)=(600−6)H(1,0) = \begin{pmatrix} 6 & 0 \\ 0 & -6 \end{pmatrix}

    • Determinant calculation:       det⁡(H)=(6)(−6)−(0)(0)=−36\det(H) = (6)(-6) - (0)(0) = -36

Classification of Critical Points via the Second Derivative Test

  • Second Derivative Test Criteria:

    • If det⁡(H)>0\det(H) > 0 and fxx(a,b)>0f_{xx}(a,b) > 0, then (a,b)(a,b) is a local minimum.

    • If det⁡(H)>0\det(H) > 0 and fxx(a,b)<0f_{xx}(a,b) < 0, then (a,b)(a,b) is a local maximum.

    • If det⁡(H)<0\det(H) < 0, then (a,b)(a,b) is a saddle point.

    • If det⁡(H)=0\det(H) = 0, the test is inconclusive.

  • Worked Classification Example 1:

    • Find and classify the critical points of f(x,y)=4x2+9y2+8x−36y+24f(x,y) = 4x^2 + 9y^2 + 8x - 36y + 24:

    • First partial derivatives set to zero:       fx=8x+8=0  ⟹  x=−1f_x = 8x + 8 = 0 \implies x = -1       fy=18y−36=0  ⟹  y=2f_y = 18y - 36 = 0 \implies y = 2

    • Critical point is (−1,2)(-1, 2).

    • Compute the Hessian matrix:       H=(80018)H = \begin{pmatrix} 8 & 0 \\ 0 & 18 \end{pmatrix}

    • Evaluate classification parameters:       fxx(−1,2)=8>0f_{xx}(-1, 2) = 8 > 0       det⁡(H)=(8)(18)−(0)(0)=144>0\det(H) = (8)(18) - (0)(0) = 144 > 0

    • Conclusion: The point (−1,2)(-1, 2) is a local minimum.

  • Worked Classification Example 2:

    • Find and classify the critical points of f(x,y)=(y−2)x2−y2=x2y−2x2−y2f(x,y) = (y-2)x^2 - y^2 = x^2 y - 2x^2 - y^2:

    • First partial derivatives set to zero:       fx=2yx−4x=0  ⟹  2x(y−2)=0f_x = 2yx - 4x = 0 \implies 2x(y - 2) = 0       fy=x2−2y=0f_y = x^2 - 2y = 0

    • Solving the system:

      • If x=0x = 0, then 02−2y=0  ⟹  y=00^2 - 2y = 0 \implies y = 0, giving critical point (0,0)(0,0).

      • If y=2y = 2, then x2−2(2)=0  ⟹  x2=4  ⟹  x=±2x^2 - 2(2) = 0 \implies x^2 = 4 \implies x = \pm 2, giving critical points (2,2)(2,2) and (−2,2)(-2,2).

    • Second partial derivatives:       fxx=2y−4f_{xx} = 2y - 4       fxy=2xf_{xy} = 2x       fyy=−2f_{yy} = -2

    • Classifying (0,0)(0,0):       H=(000−2)H = \begin{pmatrix} 0 & 0 \\ 0 & -2 \end{pmatrix}       det⁡(H(0,0))=0\det(H(0,0)) = 0       Conclusion: Inconclusive.

    • Classifying (2,2)(2,2):       H=(044−2)H = \begin{pmatrix} 0 & 4 \\ 4 & -2 \end{pmatrix}       det⁡(H(2,2))=(0)(−2)−(4)(4)=−16\det(H(2,2)) = (0)(-2) - (4)(4) = -16       Conclusion: Saddle point.

    • Classifying (−2,2)(-2,2):       H=(0−4−4−2)H = \begin{pmatrix} 0 & -4 \\ -4 & -2 \end{pmatrix}       det⁡(H(−2,2))=16\det(H(-2,2)) = 16       Conclusion: Local maximum.

Absolute Extrema on Closed and Bounded Domains

  • Definitions of Sets:

    • A set is closed if it contains all of its boundary points.

    • A set is bounded if it can fit entirely inside a disc of fixed radius.

  • Extreme Value Theorem (EVT):

    • For a continuous function f(x,y)f(x,y) defined on a closed and bounded set, there exist points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) such that:

    • (x1,y1)(x_1, y_1) is an absolute maximum.

    • (x2,y2)(x_2, y_2) is an absolute minimum.

  • Worked Example: Triangular Domain:

    • Find the absolute minimum and maximum of f(x,y)=x2−2xy+2yf(x,y) = x^2 - 2xy + 2y on the region bounded by vertices (0,0)(0,0), (1,0)(1,0), and (0,1)(0,1).

Triangular region in the xy-plane with vertices at (0,0), (1,0), and (0,1) showing boundary parameter vectors
  • Step 1: Interior Critical Points:

    • Setting first partial derivatives to zero:     fx=2x−2y=0f_x = 2x - 2y = 0     fy=−2x+2=0  ⟹  x=1,y=1f_y = -2x + 2 = 0 \implies x = 1, y = 1

    • Interior critical point candidate is (1,1)(1,1).

    • Hessian matrix:     H=(2−2−20)H = \begin{pmatrix} 2 & -2 \\ -2 & 0 \end{pmatrix}     fxx=2f_{xx} = 2     fyy=0f_{yy} = 0     fxy=−2=fyxf_{xy} = -2 = f_{yx}

  • Step 2: Boundary Evaluation along the Bottom Edge from (0,0)(0,0) to (1,0)(1,0):

    • Parametrized as t⟨1,0⟩=⟨t,0⟩t \langle 1, 0 \rangle = \langle t, 0 \rangle with t∈[0,1]t \in [0,1]:     f(t,0)=t2f(t,0) = t^2     f′(t)=2t=0  ⟹  t=0f'(t) = 2t = 0 \implies t = 0

  • Step 3: Boundary Evaluation along the Left Edge from (0,0)(0,0) to (0,1)(0,1):

    • Parametrized as ⟨0,t⟩\langle 0, t \rangle with t∈[0,1]t \in [0,1]:     f(0,t)=2tf(0,t) = 2t     f′(t)=2f'(t) = 2     Critical point evaluation yields t=2t = 2.

  • Step 4: Boundary Evaluation along the Hypotenuse from (0,1)(0,1) to (1,0)(1,0):

    • Parametrized as vector line:     r(t)=⟨0,1⟩+t⟨1,−1⟩=⟨t,1−t⟩r(t) = \langle 0, 1 \rangle + t \langle 1, -1 \rangle = \langle t, 1-t \rangle

    • Substitute into the function:     f(t)=t2−2t(1−t)+2(1−t)f(t) = t^2 - 2t(1-t) + 2(1-t)     f(t)=t2−2t+2t2+2−2t=3t2−4t+2f(t) = t^2 - 2t + 2t^2 + 2 - 2t = 3t^2 - 4t + 2

    • Differentiating and setting to zero:     f′(t)=6t−4=0  ⟹  t=46=23f'(t) = 6t - 4 = 0 \implies t = \frac{4}{6} = \frac{2}{3}

    • The boundary critical point on the hypotenuse is:     (23,1−23)=(23,13)\left( \frac{2}{3}, 1 - \frac{2}{3} \right) = \left( \frac{2}{3}, \frac{1}{3} \right)

  • Step 5: Candidate Evaluation:

    • At (0,0)(0,0): f(0,0)=0f(0,0) = 0 (Absolute Minimum)

    • At (0,1)(0,1): f(0,1)=2f(0,1) = 2 (Absolute Maximum)

    • At (1,0)(1,0): f(1,0)=1f(1,0) = 1

    • At (23,13)(\frac{2}{3}, \frac{1}{3}): f(23,13)=23f(\frac{2}{3}, \frac{1}{3}) = \frac{2}{3}

Constrained Optimization Using Lagrange Multipliers

  • Method Concept:

    • At an extremum (x0,y0)(x_0, y_0) subject to the constraint g(x,y)=0g(x,y) = 0, the gradient of ff is proportional to the gradient of gg for some scalar multiplier λ\lambda:     ∇f(x0,y0)=λ∇g(x0,y0)\nabla f(x_0, y_0) = \lambda \nabla g(x_0, y_0)

  • Four-Step Optimization Procedure:

    1. Identify the objective function f(x,y)f(x,y) and constraint g(x,y)=0g(x,y) = 0.

    2. Set up the vector equation ∇f(x0,y0)=λ∇g(x0,y0)\nabla f(x_0, y_0) = \lambda \nabla g(x_0, y_0) along with g(x,y)=0g(x,y) = 0.

    3. Solve the resulting system of equations for xx and yy.

    4. Compare the values of ff at the solution points: the largest value maximizes ff, and the smallest value minimizes ff.

  • Worked Example 1:

    • Optimize f(x,y)=x2+4y2−2x+8yf(x,y) = x^2 + 4y^2 - 2x + 8y subject to g(x,y)=x+2y=7g(x,y) = x + 2y = 7:

    • Formulate constraint equation:       x+2y−7=0x + 2y - 7 = 0

    • Compute gradients:       ∇f=⟨2x−2,8y+8⟩\nabla f = \langle 2x - 2, 8y + 8 \rangle       λ∇g=λ⟨1,2⟩=⟨λ,2λ⟩\lambda \nabla g = \lambda \langle 1, 2 \rangle = \langle \lambda, 2\lambda \rangle

    • Equate components:       2x−2=λ2x - 2 = \lambda       8y+8=2λ8y + 8 = 2\lambda

    • Simplify second equation:       4y+4=λ4y + 4 = \lambda

    • Equate the expressions for λ\lambda:       2x−2=4y+42x - 2 = 4y + 4       2x+2=4y+42x + 2 = 4y + 4

    • Solving the system with constraint x+2y=7x + 2y = 7 gives:       x=5x = 5       y=1y = 1

    • Classification:       f(5,1)f(5,1) is the extremum point (absolute maximum or minimum determined by testing surrounding constraint values).

  • Worked Example 2:

    • Find the maximum and minimum values of f(x,y)=x2yf(x,y) = x^2 y subject to x2+2y=6x^2 + 2y = 6:

    • Constraint equation:       x2+2y−6=0x^2 + 2y - 6 = 0

    • Gradient equations:       ∇f=⟨2yx,x2⟩\nabla f = \langle 2yx, x^2 \rangle       ∇g=⟨2x,2⟩\nabla g = \langle 2x, 2 \rangle

  • Equate gradient components using multiplier λ\lambda:   2yx=2xλ2yx = 2x\lambda   x2=2λx^2 = 2\lambda

  • Case 1 (x≠0x \ne 0):

    • Dividing 2yx=2xλ2yx = 2x\lambda by 2x2x yields:     y=λy = \lambda

    • Substitute into the second equation:     x2=2yx^2 = 2y

    • Substitute x2=6−2yx^2 = 6 - 2y into the relation:     6−2y=2y  ⟹  6=4y  ⟹  y=326 - 2y = 2y \implies 6 = 4y \implies y = \frac{3}{2}

    • Solve for xx:     x2=2(32)=3  ⟹  x=±3x^2 = 2\left(\frac{3}{2}\right) = 3 \implies x = \pm\sqrt{3}

    • Resulting points:     (3,32)and(−3,32)\left(\sqrt{3}, \frac{3}{2}\right) \quad \text{and} \quad \left(-\sqrt{3}, \frac{3}{2}\right)

  • Case 2 (x=0x = 0):

    • Substitute x=0x = 0 into the constraint equation:     02+2y=6  ⟹  2y=6  ⟹  y=30^2 + 2y = 6 \implies 2y = 6 \implies y = 3

    • Resulting point is (0,3)(0,3).

  • Candidate Evaluation:

    • At (3,32)(\sqrt{3}, \frac{3}{2}):     f(3,32)=(3)2(32)=3(32)=92f\left(\sqrt{3}, \frac{3}{2}\right) = (\sqrt{3})^2 \left(\frac{3}{2}\right) = 3\left(\frac{3}{2}\right) = \frac{9}{2} (Maximum)

    • At (−3,32)(-\sqrt{3}, \frac{3}{2}):     f(−3,32)=(−3)2(32)=3(32)=92f\left(-\sqrt{3}, \frac{3}{2}\right) = (-\sqrt{3})^2 \left(\frac{3}{2}\right) = 3\left(\frac{3}{2}\right) = \frac{9}{2} (Maximum)

    • At (0,3)(0,3):     f(0,3)=(0)2(3)=0f(0,3) = (0)^2(3) = 0 (Minimum)

    • Comparative constraint point test:     f(2,1)=22(1)=4f(2,1) = 2^2(1) = 4     confirming the maximum value is 92\frac{9}{2} and the minimum value is 00.