Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to minimize the following function:

$$J(x, y, z) = x^a + y^b + z^c$$

I know I can easily determine the minimum value of $J$ using partial derivative. But I have also the following condition:

$$ x + y + z = D$$

How can I approach now?

share|cite|improve this question
up vote 3 down vote accepted

Lagrange multipliers...? Define


Find conditions for


share|cite|improve this answer

This is an easy example of using Lagrange multiplier. If you reformulate your constraint as $C(x,y,z) = x+y+z-D=0$, you can define $L(x,y,z,\lambda) := J(x,y,z)-\lambda \cdot C(x,y,z)$

If you now take the condition $\nabla L=0$ as necessary for your minimum you will fulfill $$\frac{\partial L}{\partial x}=0 \\ \frac{\partial L}{\partial y}=0 \\ \frac{\partial L}{\partial z}=0 \\ $$ Which are required for your minimum and $$ \frac{\partial L}{\partial \lambda}=C(x,y,z)=0 \\ $$ as your constraint.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.