How do you minimize and maximize #f(x,y)=x^3-y# constrained to #x-y=4#?

Answer 1

we'll do it first as a problem in single variable calculus.

we have #f(x,y)=x^3-y# but also the constraint #x-y = 4# so we can sub the constraint in to get
#f(x)=x^3-(x-4)#

it's all the usual stuff from here on

#f' = 3x^2 -1# #f'' = 6x#
so #f' = 0 implies x = pm 1/sqrt3#
and #f''(1/sqrt3) >0 # so min
#f''(-1/sqrt3) <0 # so a max

i'll do a Lagrange Multiplier next to compare. the basic premise is that with

#f(x,y)=x^3-y# to optimise
plus the constraint #g(x,y)= x-y = const#
we can say that #nabla f = lambda nabla g#

or

#((3x^2),(-1)) = lambda ((1),(-1))#
#implies lambda = (3x^2)/1 = -1/-1#
So #3x^2 = 1# with same conclusion, stationary points at #x = pm 1/sqrt3# and from the constraint #y = pm 1/sqrt3 - 4#

I'm asking for a second opinion on this next bit.

Because there is no simple way to explore the nature of the turning points, especially with more complex problems, when using the LM approach. You can often play with the physical reality and reason a solution but there is no quick second derivative check, sadly, that i am aware of.

I am just wondering if the Hessian for let's say #L(xy) = x^3-y + lambda(x-y) = const#

would be of any use here.

Sign up to view the whole answer

By signing up, you agree to our Terms of Service and Privacy Policy

Sign up with email
Answer 2

To minimize and maximize f(x,y)=x3yf(x, y) = x^3 - y constrained to xy=4x - y = 4, follow these steps:

  1. Solve the constraint equation xy=4x - y = 4 for yy to get y=x4y = x - 4.
  2. Substitute y=x4y = x - 4 into the objective function f(x,y)=x3yf(x, y) = x^3 - y to get the function in terms of xx only: g(x)=x3(x4)g(x) = x^3 - (x - 4).
  3. Find the critical points of g(x)g(x) by setting its derivative equal to zero and solving for xx.
  4. Determine the corresponding yy-values for each critical point using the constraint equation.
  5. Evaluate the objective function f(x,y)f(x, y) at each critical point to find the maximum and minimum values.

Alternatively, you can use Lagrange multipliers to solve this constrained optimization problem.

Sign up to view the whole answer

By signing up, you agree to our Terms of Service and Privacy Policy

Sign up with email
Answer from HIX Tutor

When evaluating a one-sided limit, you need to be careful when a quantity is approaching zero since its sign is different depending on which way it is approaching zero from. Let us look at some examples.

When evaluating a one-sided limit, you need to be careful when a quantity is approaching zero since its sign is different depending on which way it is approaching zero from. Let us look at some examples.

When evaluating a one-sided limit, you need to be careful when a quantity is approaching zero since its sign is different depending on which way it is approaching zero from. Let us look at some examples.

When evaluating a one-sided limit, you need to be careful when a quantity is approaching zero since its sign is different depending on which way it is approaching zero from. Let us look at some examples.

Not the question you need?

Drag image here or click to upload

Or press Ctrl + V to paste
Answer Background
HIX Tutor
Solve ANY homework problem with a smart AI
  • 98% accuracy study help
  • Covers math, physics, chemistry, biology, and more
  • Step-by-step, in-depth guides
  • Readily available 24/7