Lagrange Multipliers Notes
These Lagrange Multipliers Notes explain how to find the largest and smallest values a function can take while a constraint is obeyed, with the working shown line by line. At such a point the two gradients line up, because otherwise you could still slide along the constraint and improve. Setting one gradient to a multiple of the other gives the equations to solve. Following the same pattern every time keeps the constraint in play throughout.
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the gradients of f and g.
- Write the Lagrange system.
- Remove lambda and solve.
- Evaluate f at each solution.
Formula: Lagrange Multiplier Conditions
At a maximum or minimum on the constraint, the gradient of f is a multiple of the gradient of g, and the point satisfies the constraint.
Useful Tips to Remember
Always include the constraint \(g(x, y) = k\) as one of the equations, or the system cannot be solved. The number \(\lambda\) is only a helper, and the answer is the values of f at the solutions. Compare f at every solution to find the maximum and the minimum. If the constraint curve is closed, like a circle, both a maximum and a minimum always exist.
Required knowledge
- How to find the gradient, covered in the Gradient Calculator.
- How to solve a system of equations, covered in the Nonlinear System of Equations Calculator.
- How to find the partial derivatives, covered in the Partial Derivatives Calculator.
Where Are Lagrange Multipliers Used?
Lagrange multipliers find the best value of something when there is a limit to obey, which is how most real optimisation problems look. Economists maximise utility or output under a fixed budget. Engineers minimise cost or weight while meeting a strength or volume requirement. In physics, constrained motion and the shapes of hanging chains and soap films come from the same idea, and machine learning uses it in support vector machines.
- Maximising utility under a budget in economics
- Minimising cost for a required volume or strength
- Constrained motion in physics
- Support vector machines in machine learning
- Finding the closest point on a curve or surface
Lagrange Multipliers Practice Problems
Example 1 finds the extreme values of \(x y\) on the circle \(x^{2} + y^{2} = 1\), and Example 2 uses \(x + y\) on \(x^{2} + y^{2} = 2\). Examples 3 and 4 give you two more of the same kind to try, \(f(x, y) = x + 2 y,\; x^{2} + y^{2} = 5\) and \(f(x, y) = x y,\; x + y = 10\). Set up the system, solve it and compare the values of f.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the gradients of f and g.
- Write the Lagrange system.
- Remove lambda and solve.
- Evaluate f at each solution.
Formula
Formula: Lagrange Multiplier Conditions
At a maximum or minimum on the constraint, the gradient of f is a multiple of the gradient of g, and the point satisfies the constraint.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the largest and smallest values of \(f(x, y) = x y\) on the curve \(x^{2} + y^{2} = 1\).
Step 2
Step 2 - Write the formula.
In this problem: At a maximum or minimum on the constraint, the gradient of f points the same way as the gradient of g, so one is a multiple \(\lambda\) of the other.
Step 3
Step 3 - Find the gradients of f and g.
In this problem: Both gradients are needed, covered in the Gradient Calculator, so each one is found in turn.
Step 3a
Step 3a - Find the gradient of f.
In this problem: Differentiating f with respect to x and y gives \(\nabla f = \left\langle y,\; x \right\rangle\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the gradient of \(f(x, y) = x y\).
Step 2
Step 2 - Write the formula.
In this problem: The gradient is the vector of partial derivatives. It points in the direction in which f increases fastest.
Step 3
Step 3 - Find each partial derivative.
In this problem: Each partial derivative is found with the other variables held constant, as in the Partial Derivatives Calculator.
Step 3a
Step 3a - Find the partial derivative with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x y\) with respect to \(x\), covered in the Power Rule Calculator, gives \(\frac{\partial f}{\partial x} = y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(y\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(x^{1} y\). The constant coefficient is \(y\), and the variable part is \(x^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(y\) outside the derivative and leave \(x^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Use the rewritten power form from Step 1. Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(y\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x\) and multiply by the constant \(y\). This gives \(y\).
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x y\) with respect to \(y\), covered in the Power Rule Calculator, gives \(\frac{\partial f}{\partial y} = x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(x\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(x y^{1}\). The constant coefficient is \(x\), and the variable part is \(y^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(x\) outside the derivative and leave \(y^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Use the rewritten power form from Step 1. Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(x\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(y\) and multiply by the constant \(x\). This gives \(x\).
Final Answer
Step 4
Step 4 - Collect the partial derivatives into the gradient.
In this problem: Placing the partial derivatives in order gives \(\nabla f = \left\langle y,\; x \right\rangle\).
Final Answer
Step 3b
Step 3b - Find the gradient of g.
In this problem: Differentiating g with respect to x and y gives \(\nabla g = \left\langle 2 x,\; 2 y \right\rangle\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the gradient of \(f(x, y) = x^{2} + y^{2}\).
Step 2
Step 2 - Write the formula.
In this problem: The gradient is the vector of partial derivatives. It points in the direction in which f increases fastest.
Step 3
Step 3 - Find each partial derivative.
In this problem: Each partial derivative is found with the other variables held constant, as in the Partial Derivatives Calculator.
Step 3a
Step 3a - Find the partial derivative with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x^{2} + y^{2}\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 2 x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{2}\), \(y^{2}\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{x}^{1}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y^{2}\).
In this problem: The separated term is \(y^{2}\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y^{2}\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(y^{2}\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x^{2} + y^{2}\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = 2 y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{2}\), \(y^{2}\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This expression does not contain \(y\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(x^{2}\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y^{2}\).
In this problem: The separated term is \(y^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{y}^{1}\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Collect the partial derivatives into the gradient.
In this problem: Placing the partial derivatives in order gives \(\nabla f = \left\langle 2 x,\; 2 y \right\rangle\).
Final Answer
Step 4
Step 4 - Write the Lagrange system.
In this problem: Matching the components of \(\nabla f = \lambda \nabla g\) and adding the constraint gives three equations in x, y and \(\lambda\).
Step 5
Step 5 - Remove lambda and solve.
In this problem: Multiplying the first equation by \(2 y\) and the second by \(2 x\) makes the \(\lambda\) terms on the right the same, so subtracting removes \(\lambda\) and leaves \(\left(y\right)\left(2 y\right) - \left(x\right)\left(2 x\right) = - 2 x^{2} + 2 y^{2} = 0\). Solving this together with the constraint, covered in the Nonlinear System of Equations Calculator, gives the points \(\left(- \frac{\sqrt{2}}{2},\; - \frac{\sqrt{2}}{2}\right)\), \(\left(- \frac{\sqrt{2}}{2},\; \frac{\sqrt{2}}{2}\right)\), \(\left(\frac{\sqrt{2}}{2},\; - \frac{\sqrt{2}}{2}\right)\) and \(\left(\frac{\sqrt{2}}{2},\; \frac{\sqrt{2}}{2}\right)\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the method.
- Rearrange one equation.
- Substitute into the other equation.
- Solve the equation in one variable.
- Find the matching values of the other variable.
Formula
Formula: Substitution
When one equation gives y in terms of x, replacing y in the other equation leaves an equation in x only.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding every pair \((x, y)\) that makes both equations true at the same time. Because at least one equation is not linear, there can be more than one solution, or none.
Step 2
Step 2 - Write the method.
In this problem: Substitution turns two equations in two variables into one equation in one variable. One equation gives one variable in terms of the other, and that expression replaces it in the other equation. When neither equation can be rearranged, one variable is removed by adding or subtracting the equations instead.
Step 3
Step 3 - Eliminate one variable.
In this problem: Multiplying equation 1 by \(1\) and equation 2 by \(2\) makes the \(x^{2}\) terms match, so adding them removes it. Collecting terms on one side gives \(4 y^{2} - 2 = 0\).
Step 4
Step 4 - Write the equation in one variable.
In this problem: The new equation only contains \(y\), so it can be solved on its own, and the other variable is found from it afterwards.
Step 5
Step 5 - Solve the equation in one variable.
In this problem: Solving \(4 y^{2} - 2 = 0\), covered in the Quadratic Equation Calculator, gives \(y = - \frac{\sqrt{2}}{2}\) or \(y = \frac{\sqrt{2}}{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(4y^{2} - 2 = 0\), and the unknown is \(y\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(4y^{2} - 2 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 4\), \(b = 0\) and \(c = -2\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 4\), \(b = 0\) and \(c = -2\) into the formula gives \(y = \frac{-0 \pm \sqrt{0^{2} - 4(4)(-2)}}{2(4)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: Under the square root, \(0^{2} = 0\) and \(4(4)(-2) = -32\), so \(0 + 32 = 32\). Underneath, \(2(4) = 8\). Then \(\sqrt{32} = 4\sqrt{2}\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: The \(\pm\) means there are two solutions, one with \(+\) and one with \(-\).
Step 6a
Step 6a - Take the \(+\) sign.
In this problem: Using \(+\) gives \(y = \frac{0 + 4\sqrt{2}}{8} = \frac{\sqrt{2}}{2}\).
Step 6b
Step 6b - Take the \(-\) sign.
In this problem: Using \(-\) gives \(y = \frac{0 - 4\sqrt{2}}{8} = \frac{-\sqrt{2}}{2}\).
Final Answer
Step 6
Step 6 - Find the matching values of the other variable.
In this problem: Each value is put back in turn to find the matching value of the other variable.
Step 6a
Step 6a - Put back \(y = - \frac{\sqrt{2}}{2}\).
In this problem: Putting \(y = - \frac{\sqrt{2}}{2}\) into equation 1 gives \(- 2 \times x^{2} + 2 \times \left(- \frac{\sqrt{2}}{2}\right)^{2} = 0\). Solving \(2 x^{2} - 1 = 0\), covered in the Quadratic Equation Calculator, gives \(x = - \frac{\sqrt{2}}{2}\) or \(x = \frac{\sqrt{2}}{2}\). Checking each pair in equation 2, \(\left(- \frac{\sqrt{2}}{2},\; - \frac{\sqrt{2}}{2}\right)\) gives \(\left(- \frac{\sqrt{2}}{2}\right)^{2} + {\left(- \frac{\sqrt{2}}{2}\right)}^{2} = 1\), which matches, so it is a solution. \(\left(\frac{\sqrt{2}}{2},\; - \frac{\sqrt{2}}{2}\right)\) gives \(\left(\frac{\sqrt{2}}{2}\right)^{2} + {\left(- \frac{\sqrt{2}}{2}\right)}^{2} = 1\), which matches, so it is a solution.
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(2x^{2} - 1 = 0\), and the unknown is \(x\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(2x^{2} - 1 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 2\), \(b = 0\) and \(c = -1\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 2\), \(b = 0\) and \(c = -1\) into the formula gives \(x = \frac{-0 \pm \sqrt{0^{2} - 4(2)(-1)}}{2(2)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: Under the square root, \(0^{2} = 0\) and \(4(2)(-1) = -8\), so \(0 + 8 = 8\). Underneath, \(2(2) = 4\). Then \(\sqrt{8} = 2\sqrt{2}\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: The \(\pm\) means there are two solutions, one with \(+\) and one with \(-\).
Step 6a
Step 6a - Take the \(+\) sign.
In this problem: Using \(+\) gives \(x = \frac{0 + 2\sqrt{2}}{4} = \frac{\sqrt{2}}{2}\).
Step 6b
Step 6b - Take the \(-\) sign.
In this problem: Using \(-\) gives \(x = \frac{0 - 2\sqrt{2}}{4} = \frac{-\sqrt{2}}{2}\).
Final Answer
Step 6b
Step 6b - Put back \(y = \frac{\sqrt{2}}{2}\).
In this problem: Putting \(y = \frac{\sqrt{2}}{2}\) into equation 1 gives \(- 2 \times x^{2} + 2 \times \left(\frac{\sqrt{2}}{2}\right)^{2} = 0\). Solving \(2 x^{2} - 1 = 0\), covered in the Quadratic Equation Calculator, gives \(x = - \frac{\sqrt{2}}{2}\) or \(x = \frac{\sqrt{2}}{2}\). Checking each pair in equation 2, \(\left(- \frac{\sqrt{2}}{2},\; \frac{\sqrt{2}}{2}\right)\) gives \(\left(- \frac{\sqrt{2}}{2}\right)^{2} + \left(\frac{\sqrt{2}}{2}\right)^{2} = 1\), which matches, so it is a solution. \(\left(\frac{\sqrt{2}}{2},\; \frac{\sqrt{2}}{2}\right)\) gives \(\left(\frac{\sqrt{2}}{2}\right)^{2} + \left(\frac{\sqrt{2}}{2}\right)^{2} = 1\), which matches, so it is a solution.
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(2x^{2} - 1 = 0\), and the unknown is \(x\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(2x^{2} - 1 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 2\), \(b = 0\) and \(c = -1\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 2\), \(b = 0\) and \(c = -1\) into the formula gives \(x = \frac{-0 \pm \sqrt{0^{2} - 4(2)(-1)}}{2(2)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: Under the square root, \(0^{2} = 0\) and \(4(2)(-1) = -8\), so \(0 + 8 = 8\). Underneath, \(2(2) = 4\). Then \(\sqrt{8} = 2\sqrt{2}\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: The \(\pm\) means there are two solutions, one with \(+\) and one with \(-\).
Step 6a
Step 6a - Take the \(+\) sign.
In this problem: Using \(+\) gives \(x = \frac{0 + 2\sqrt{2}}{4} = \frac{\sqrt{2}}{2}\).
Step 6b
Step 6b - Take the \(-\) sign.
In this problem: Using \(-\) gives \(x = \frac{0 - 2\sqrt{2}}{4} = \frac{-\sqrt{2}}{2}\).
Final Answer
Final Answer
Step 6
Step 6 - Evaluate f at each solution.
In this problem: Putting each point into f gives \(f\left(- \frac{\sqrt{2}}{2},\; - \frac{\sqrt{2}}{2}\right) = \left(- \frac{\sqrt{2}}{2}\right) \times {\left(- \frac{\sqrt{2}}{2}\right)} = \frac{1}{2}\), \(f\left(- \frac{\sqrt{2}}{2},\; \frac{\sqrt{2}}{2}\right) = \left(- \frac{\sqrt{2}}{2}\right) \times {\frac{\sqrt{2}}{2}} = - \frac{1}{2}\), \(f\left(\frac{\sqrt{2}}{2},\; - \frac{\sqrt{2}}{2}\right) = \frac{\sqrt{2}}{2} \times {\left(- \frac{\sqrt{2}}{2}\right)} = - \frac{1}{2}\) and \(f\left(\frac{\sqrt{2}}{2},\; \frac{\sqrt{2}}{2}\right) = \frac{\sqrt{2}}{2} \times {\frac{\sqrt{2}}{2}} = \frac{1}{2}\). The largest value is the maximum and the smallest is the minimum.
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the gradients of f and g.
- Write the Lagrange system.
- Remove lambda and solve.
- Evaluate f at each solution.
Formula
Formula: Lagrange Multiplier Conditions
At a maximum or minimum on the constraint, the gradient of f is a multiple of the gradient of g, and the point satisfies the constraint.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the largest and smallest values of \(f(x, y) = x + y\) on the curve \(x^{2} + y^{2} = 2\).
Step 2
Step 2 - Write the formula.
In this problem: At a maximum or minimum on the constraint, the gradient of f points the same way as the gradient of g, so one is a multiple \(\lambda\) of the other.
Step 3
Step 3 - Find the gradients of f and g.
In this problem: Both gradients are needed, covered in the Gradient Calculator, so each one is found in turn.
Step 3a
Step 3a - Find the gradient of f.
In this problem: Differentiating f with respect to x and y gives \(\nabla f = \left\langle 1,\; 1 \right\rangle\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the gradient of \(f(x, y) = x + y\).
Step 2
Step 2 - Write the formula.
In this problem: The gradient is the vector of partial derivatives. It points in the direction in which f increases fastest.
Step 3
Step 3 - Find each partial derivative.
In this problem: Each partial derivative is found with the other variables held constant, as in the Partial Derivatives Calculator.
Step 3a
Step 3a - Find the partial derivative with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x + y\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x\), \(y\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x\).
In this problem: The separated term is \(x\). Use the variable rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the variable rule formula.
- Apply the variable rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\). This is just the variable \(x\).
Step 2
Step 2 - Write the variable rule formula.
In this problem: The variable rule says the derivative of \(x\) with respect to \(x\) is \(1\).
Step 3
Step 3 - Apply the variable rule.
In this problem: Put \(x\) into the rule from Step 2, so its derivative is \(1\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y\).
In this problem: The separated term is \(y\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(y\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x + y\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x\), \(y\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x\).
In this problem: The separated term is \(x\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\). This expression does not contain \(y\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(x\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y\).
In this problem: The separated term is \(y\). Use the variable rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the variable rule formula.
- Apply the variable rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y\). This is just the variable \(y\).
Step 2
Step 2 - Write the variable rule formula.
In this problem: The variable rule says the derivative of \(y\) with respect to \(y\) is \(1\).
Step 3
Step 3 - Apply the variable rule.
In this problem: Put \(y\) into the rule from Step 2, so its derivative is \(1\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Collect the partial derivatives into the gradient.
In this problem: Placing the partial derivatives in order gives \(\nabla f = \left\langle 1,\; 1 \right\rangle\).
Final Answer
Step 3b
Step 3b - Find the gradient of g.
In this problem: Differentiating g with respect to x and y gives \(\nabla g = \left\langle 2 x,\; 2 y \right\rangle\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the gradient of \(f(x, y) = x^{2} + y^{2}\).
Step 2
Step 2 - Write the formula.
In this problem: The gradient is the vector of partial derivatives. It points in the direction in which f increases fastest.
Step 3
Step 3 - Find each partial derivative.
In this problem: Each partial derivative is found with the other variables held constant, as in the Partial Derivatives Calculator.
Step 3a
Step 3a - Find the partial derivative with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x^{2} + y^{2}\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 2 x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{2}\), \(y^{2}\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{x}^{1}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y^{2}\).
In this problem: The separated term is \(y^{2}\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y^{2}\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(y^{2}\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x^{2} + y^{2}\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = 2 y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{2}\), \(y^{2}\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This expression does not contain \(y\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(x^{2}\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y^{2}\).
In this problem: The separated term is \(y^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{y}^{1}\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Collect the partial derivatives into the gradient.
In this problem: Placing the partial derivatives in order gives \(\nabla f = \left\langle 2 x,\; 2 y \right\rangle\).
Final Answer
Step 4
Step 4 - Write the Lagrange system.
In this problem: Matching the components of \(\nabla f = \lambda \nabla g\) and adding the constraint gives three equations in x, y and \(\lambda\).
Step 5
Step 5 - Remove lambda and solve.
In this problem: Multiplying the first equation by \(2 y\) and the second by \(2 x\) makes the \(\lambda\) terms on the right the same, so subtracting removes \(\lambda\) and leaves \(\left(1\right)\left(2 y\right) - \left(1\right)\left(2 x\right) = - 2 x + 2 y = 0\). Solving this together with the constraint, covered in the Nonlinear System of Equations Calculator, gives the points \(\left(-1,\; -1\right)\) and \(\left(1,\; 1\right)\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the method.
- Rearrange one equation.
- Substitute into the other equation.
- Solve the equation in one variable.
- Find the matching values of the other variable.
Formula
Formula: Substitution
When one equation gives y in terms of x, replacing y in the other equation leaves an equation in x only.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding every pair \((x, y)\) that makes both equations true at the same time. Because at least one equation is not linear, there can be more than one solution, or none.
Step 2
Step 2 - Write the method.
In this problem: Substitution turns two equations in two variables into one equation in one variable. One equation gives one variable in terms of the other, and that expression replaces it in the other equation. When neither equation can be rearranged, one variable is removed by adding or subtracting the equations instead.
Step 3
Step 3 - Rearrange one equation.
In this problem: Equation 1 has \(y\) only to the first power. Moving every other term to the right and dividing by \(2\) gives \(y = x\).
Step 4
Step 4 - Substitute into the other equation.
In this problem: Replacing \(y\) in equation 2 with \(x\) gives \(x^{2} + x^{2} = 2\). Expanding and collecting terms on one side gives \(2 x^{2} - 2 = 0\). This only contains \(x\).
Step 5
Step 5 - Solve the equation in one variable.
In this problem: Solving \(2 x^{2} - 2 = 0\), covered in the Quadratic Equation Calculator, gives \(x = -1\) or \(x = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(2x^{2} - 2 = 0\), and the unknown is \(x\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(2x^{2} - 2 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 2\), \(b = 0\) and \(c = -2\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 2\), \(b = 0\) and \(c = -2\) into the formula gives \(x = \frac{-0 \pm \sqrt{0^{2} - 4(2)(-2)}}{2(2)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: Under the square root, \(0^{2} = 0\) and \(4(2)(-2) = -16\), so \(0 + 16 = 16\). Underneath, \(2(2) = 4\). Then \(\sqrt{16} = 4\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: The \(\pm\) means there are two solutions, one with \(+\) and one with \(-\).
Step 6a
Step 6a - Take the \(+\) sign.
In this problem: Using \(+\) gives \(x = \frac{0 + 4}{4} = \frac{4}{4} = 1\).
Step 6b
Step 6b - Take the \(-\) sign.
In this problem: Using \(-\) gives \(x = \frac{0 - 4}{4} = \frac{-4}{4} = -1\).
Final Answer
Step 6
Step 6 - Find the matching values of the other variable.
In this problem: Each value is put back in turn to find the matching value of the other variable.
Step 6a
Step 6a - Put back \(x = -1\).
In this problem: Putting \(x = -1\) into \(y = x\) gives \(y = \left(-1\right) = -1\), so \(\left(-1,\; -1\right)\) is a solution.
Step 6b
Step 6b - Put back \(x = 1\).
In this problem: Putting \(x = 1\) into \(y = x\) gives \(y = 1 = 1\), so \(\left(1,\; 1\right)\) is a solution.
Final Answer
Step 6
Step 6 - Evaluate f at each solution.
In this problem: Putting each point into f gives \(f\left(-1,\; -1\right) = \left(-1\right) + {\left(-1\right)} = -2\) and \(f\left(1,\; 1\right) = 1 + {1} = 2\). The largest value is the maximum and the smallest is the minimum.
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the gradients of f and g.
- Write the Lagrange system.
- Remove lambda and solve.
- Evaluate f at each solution.
Formula
Formula: Lagrange Multiplier Conditions
At a maximum or minimum on the constraint, the gradient of f is a multiple of the gradient of g, and the point satisfies the constraint.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the largest and smallest values of \(f(x, y) = x + 2 y\) on the curve \(x^{2} + y^{2} = 5\).
Step 2
Step 2 - Write the formula.
In this problem: At a maximum or minimum on the constraint, the gradient of f points the same way as the gradient of g, so one is a multiple \(\lambda\) of the other.
Step 3
Step 3 - Find the gradients of f and g.
In this problem: Both gradients are needed, covered in the Gradient Calculator, so each one is found in turn.
Step 3a
Step 3a - Find the gradient of f.
In this problem: Differentiating f with respect to x and y gives \(\nabla f = \left\langle 1,\; 2 \right\rangle\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the gradient of \(f(x, y) = x + 2 y\).
Step 2
Step 2 - Write the formula.
In this problem: The gradient is the vector of partial derivatives. It points in the direction in which f increases fastest.
Step 3
Step 3 - Find each partial derivative.
In this problem: Each partial derivative is found with the other variables held constant, as in the Partial Derivatives Calculator.
Step 3a
Step 3a - Find the partial derivative with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x + 2 y\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x\), \(2 y\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x\).
In this problem: The separated term is \(x\). Use the variable rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the variable rule formula.
- Apply the variable rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\). This is just the variable \(x\).
Step 2
Step 2 - Write the variable rule formula.
In this problem: The variable rule says the derivative of \(x\) with respect to \(x\) is \(1\).
Step 3
Step 3 - Apply the variable rule.
In this problem: Put \(x\) into the rule from Step 2, so its derivative is \(1\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(2 y\).
In this problem: The separated term is \(2 y\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(2 y\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(2 y\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x + 2 y\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x\), \(2 y\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x\).
In this problem: The separated term is \(x\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\). This expression does not contain \(y\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(x\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(2 y\).
In this problem: The separated term is \(2 y\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(2\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(2\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(2 y^{1}\). The constant coefficient is \(2\), and the variable part is \(y^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(2\) outside the derivative and leave \(y^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Use the rewritten power form from Step 1. Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(2\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(y\) and multiply by the constant \(2\). This gives \(2\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Collect the partial derivatives into the gradient.
In this problem: Placing the partial derivatives in order gives \(\nabla f = \left\langle 1,\; 2 \right\rangle\).
Final Answer
Step 3b
Step 3b - Find the gradient of g.
In this problem: Differentiating g with respect to x and y gives \(\nabla g = \left\langle 2 x,\; 2 y \right\rangle\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the gradient of \(f(x, y) = x^{2} + y^{2}\).
Step 2
Step 2 - Write the formula.
In this problem: The gradient is the vector of partial derivatives. It points in the direction in which f increases fastest.
Step 3
Step 3 - Find each partial derivative.
In this problem: Each partial derivative is found with the other variables held constant, as in the Partial Derivatives Calculator.
Step 3a
Step 3a - Find the partial derivative with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x^{2} + y^{2}\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 2 x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{2}\), \(y^{2}\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{x}^{1}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y^{2}\).
In this problem: The separated term is \(y^{2}\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y^{2}\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(y^{2}\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x^{2} + y^{2}\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = 2 y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{2}\), \(y^{2}\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This expression does not contain \(y\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(x^{2}\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y^{2}\).
In this problem: The separated term is \(y^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{y}^{1}\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Collect the partial derivatives into the gradient.
In this problem: Placing the partial derivatives in order gives \(\nabla f = \left\langle 2 x,\; 2 y \right\rangle\).
Final Answer
Step 4
Step 4 - Write the Lagrange system.
In this problem: Matching the components of \(\nabla f = \lambda \nabla g\) and adding the constraint gives three equations in x, y and \(\lambda\).
Step 5
Step 5 - Remove lambda and solve.
In this problem: Multiplying the first equation by \(2 y\) and the second by \(2 x\) makes the \(\lambda\) terms on the right the same, so subtracting removes \(\lambda\) and leaves \(\left(1\right)\left(2 y\right) - \left(2\right)\left(2 x\right) = - 4 x + 2 y = 0\). Solving this together with the constraint, covered in the Nonlinear System of Equations Calculator, gives the points \(\left(-1,\; -2\right)\) and \(\left(1,\; 2\right)\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the method.
- Rearrange one equation.
- Substitute into the other equation.
- Solve the equation in one variable.
- Find the matching values of the other variable.
Formula
Formula: Substitution
When one equation gives y in terms of x, replacing y in the other equation leaves an equation in x only.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding every pair \((x, y)\) that makes both equations true at the same time. Because at least one equation is not linear, there can be more than one solution, or none.
Step 2
Step 2 - Write the method.
In this problem: Substitution turns two equations in two variables into one equation in one variable. One equation gives one variable in terms of the other, and that expression replaces it in the other equation. When neither equation can be rearranged, one variable is removed by adding or subtracting the equations instead.
Step 3
Step 3 - Rearrange one equation.
In this problem: Equation 1 has \(y\) only to the first power. Moving every other term to the right and dividing by \(2\) gives \(y = 2 x\).
Step 4
Step 4 - Substitute into the other equation.
In this problem: Replacing \(y\) in equation 2 with \(2 x\) gives \(x^{2} + \left(2 x\right)^{2} = 5\). Expanding and collecting terms on one side gives \(5 x^{2} - 5 = 0\). This only contains \(x\).
Step 5
Step 5 - Solve the equation in one variable.
In this problem: Solving \(5 x^{2} - 5 = 0\), covered in the Quadratic Equation Calculator, gives \(x = -1\) or \(x = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(5x^{2} - 5 = 0\), and the unknown is \(x\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(5x^{2} - 5 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 5\), \(b = 0\) and \(c = -5\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 5\), \(b = 0\) and \(c = -5\) into the formula gives \(x = \frac{-0 \pm \sqrt{0^{2} - 4(5)(-5)}}{2(5)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: Under the square root, \(0^{2} = 0\) and \(4(5)(-5) = -100\), so \(0 + 100 = 100\). Underneath, \(2(5) = 10\). Then \(\sqrt{100} = 10\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: The \(\pm\) means there are two solutions, one with \(+\) and one with \(-\).
Step 6a
Step 6a - Take the \(+\) sign.
In this problem: Using \(+\) gives \(x = \frac{0 + 10}{10} = \frac{10}{10} = 1\).
Step 6b
Step 6b - Take the \(-\) sign.
In this problem: Using \(-\) gives \(x = \frac{0 - 10}{10} = \frac{-10}{10} = -1\).
Final Answer
Step 6
Step 6 - Find the matching values of the other variable.
In this problem: Each value is put back in turn to find the matching value of the other variable.
Step 6a
Step 6a - Put back \(x = -1\).
In this problem: Putting \(x = -1\) into \(y = 2 x\) gives \(y = 2 \times \left(-1\right) = -2\), so \(\left(-1,\; -2\right)\) is a solution.
Step 6b
Step 6b - Put back \(x = 1\).
In this problem: Putting \(x = 1\) into \(y = 2 x\) gives \(y = 2 \times 1 = 2\), so \(\left(1,\; 2\right)\) is a solution.
Final Answer
Step 6
Step 6 - Evaluate f at each solution.
In this problem: Putting each point into f gives \(f\left(-1,\; -2\right) = \left(-1\right) + 2 \times {\left(-2\right)} = -5\) and \(f\left(1,\; 2\right) = 1 + 2 \times {2} = 5\). The largest value is the maximum and the smallest is the minimum.
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the gradients of f and g.
- Write the Lagrange system.
- Remove lambda and solve.
- Evaluate f at each solution.
Formula
Formula: Lagrange Multiplier Conditions
At a maximum or minimum on the constraint, the gradient of f is a multiple of the gradient of g, and the point satisfies the constraint.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the largest and smallest values of \(f(x, y) = x y\) on the curve \(x + y = 10\).
Step 2
Step 2 - Write the formula.
In this problem: At a maximum or minimum on the constraint, the gradient of f points the same way as the gradient of g, so one is a multiple \(\lambda\) of the other.
Step 3
Step 3 - Find the gradients of f and g.
In this problem: Both gradients are needed, covered in the Gradient Calculator, so each one is found in turn.
Step 3a
Step 3a - Find the gradient of f.
In this problem: Differentiating f with respect to x and y gives \(\nabla f = \left\langle y,\; x \right\rangle\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the gradient of \(f(x, y) = x y\).
Step 2
Step 2 - Write the formula.
In this problem: The gradient is the vector of partial derivatives. It points in the direction in which f increases fastest.
Step 3
Step 3 - Find each partial derivative.
In this problem: Each partial derivative is found with the other variables held constant, as in the Partial Derivatives Calculator.
Step 3a
Step 3a - Find the partial derivative with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x y\) with respect to \(x\), covered in the Power Rule Calculator, gives \(\frac{\partial f}{\partial x} = y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(y\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(x^{1} y\). The constant coefficient is \(y\), and the variable part is \(x^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(y\) outside the derivative and leave \(x^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Use the rewritten power form from Step 1. Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(y\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x\) and multiply by the constant \(y\). This gives \(y\).
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x y\) with respect to \(y\), covered in the Power Rule Calculator, gives \(\frac{\partial f}{\partial y} = x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(x\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(x y^{1}\). The constant coefficient is \(x\), and the variable part is \(y^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(x\) outside the derivative and leave \(y^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Use the rewritten power form from Step 1. Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(x\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(y\) and multiply by the constant \(x\). This gives \(x\).
Final Answer
Step 4
Step 4 - Collect the partial derivatives into the gradient.
In this problem: Placing the partial derivatives in order gives \(\nabla f = \left\langle y,\; x \right\rangle\).
Final Answer
Step 3b
Step 3b - Find the gradient of g.
In this problem: Differentiating g with respect to x and y gives \(\nabla g = \left\langle 1,\; 1 \right\rangle\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the gradient of \(f(x, y) = x + y\).
Step 2
Step 2 - Write the formula.
In this problem: The gradient is the vector of partial derivatives. It points in the direction in which f increases fastest.
Step 3
Step 3 - Find each partial derivative.
In this problem: Each partial derivative is found with the other variables held constant, as in the Partial Derivatives Calculator.
Step 3a
Step 3a - Find the partial derivative with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x + y\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x\), \(y\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x\).
In this problem: The separated term is \(x\). Use the variable rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the variable rule formula.
- Apply the variable rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\). This is just the variable \(x\).
Step 2
Step 2 - Write the variable rule formula.
In this problem: The variable rule says the derivative of \(x\) with respect to \(x\) is \(1\).
Step 3
Step 3 - Apply the variable rule.
In this problem: Put \(x\) into the rule from Step 2, so its derivative is \(1\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y\).
In this problem: The separated term is \(y\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(y\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x + y\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = 1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x\), \(y\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x\).
In this problem: The separated term is \(x\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x\). This expression does not contain \(y\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(x\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(y\).
In this problem: The separated term is \(y\). Use the variable rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the variable rule formula.
- Apply the variable rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(y\). This is just the variable \(y\).
Step 2
Step 2 - Write the variable rule formula.
In this problem: The variable rule says the derivative of \(y\) with respect to \(y\) is \(1\).
Step 3
Step 3 - Apply the variable rule.
In this problem: Put \(y\) into the rule from Step 2, so its derivative is \(1\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Collect the partial derivatives into the gradient.
In this problem: Placing the partial derivatives in order gives \(\nabla f = \left\langle 1,\; 1 \right\rangle\).
Final Answer
Step 4
Step 4 - Write the Lagrange system.
In this problem: Matching the components of \(\nabla f = \lambda \nabla g\) and adding the constraint gives three equations in x, y and \(\lambda\).
Step 5
Step 5 - Remove lambda and solve.
In this problem: Both equations have the same \(\lambda\) term on the right, so subtracting them removes \(\lambda\) and leaves \(\left(y\right)\left(1\right) - \left(x\right)\left(1\right) = - x + y = 0\). Solving this together with the constraint, covered in the Nonlinear System of Equations Calculator, gives the point \(\left(5,\; 5\right)\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the method.
- Rearrange one equation.
- Substitute into the other equation.
- Solve the equation in one variable.
- Find the matching values of the other variable.
Formula
Formula: Substitution
When one equation gives y in terms of x, replacing y in the other equation leaves an equation in x only.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding every pair \((x, y)\) that makes both equations true at the same time. Because at least one equation is not linear, there can be more than one solution, or none.
Step 2
Step 2 - Write the method.
In this problem: Substitution turns two equations in two variables into one equation in one variable. One equation gives one variable in terms of the other, and that expression replaces it in the other equation. When neither equation can be rearranged, one variable is removed by adding or subtracting the equations instead.
Step 3
Step 3 - Rearrange one equation.
In this problem: Equation 1 has \(y\) only to the first power. Moving every other term to the right gives \(y = x\).
Step 4
Step 4 - Substitute into the other equation.
In this problem: Replacing \(y\) in equation 2 with \(x\) gives \(x + x = 10\). Expanding and collecting terms on one side gives \(2 x - 10 = 0\). This only contains \(x\).
Step 5
Step 5 - Solve the equation in one variable.
In this problem: Solving \(2 x - 10 = 0\), covered in the Linear Equation Calculator, gives \(x = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Expand and simplify. Remove the brackets and combine the like terms on each side, covered in the Simplifying Algebraic Expressions Calculator.
- Collect the variable terms. Move every term that holds the variable onto one side by adding or subtracting that term on both sides, so the equation stays balanced.
- Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.
- Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.
- Verify the solution. Put the answer back into the original equation and check that both sides come out equal.
Depending on the equation, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The equation is \(2x - 10 = 0\), with \(2x - 10\) on the left of the equals sign and \(0\) on the right.
Step 2
Step 2 - Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.
In this problem: The left side is \(2x - 10\), which still holds the constant \(-10\).
Step 2a
Step 2a - Add \(10\) to both sides.
In this problem: \(10\) is added to both sides to clear that constant off the left.
Step 2b
Step 2b - Work out each side.
In this problem: On the left, \(-10 + 10 = 0\), so only the variable term is left there. On the right, \(0 + 10 = 10\).
Step 3
Step 3 - Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.
In this problem: The left side of \(2x = 10\) is \(2x\), so \(x\) still carries the coefficient \(2\). Solving this one-step equation gives \(x = 5\), worked through below.
Problem
Approach
Step-by-step method
- Set up the problem.
- Look at the side holding the variable, find the operation attached to it, and do the inverse operation to both sides so the equation stays balanced.
- Work out each side, which leaves the variable on its own.
- Check the answer by putting it back into the original equation.
Step 1
Step 1 - Set up the problem.
In this problem: The equation is \(2x = 10\), with \(2x\) on the left and \(10\) on the right.
Step 2
Step 2 - Look at the side holding the variable, find the operation attached to it, and do the inverse operation to both sides so the equation stays balanced.
In this problem: The side holding \(x\) is \(2x\), so the operation on \(x\) is multiplying by \(2\). The inverse of that is to divide by \(2\), and doing it to \(2x\) and to \(10\) keeps both sides equal.
Step 3
Step 3 - Work out each side, which leaves the variable on its own.
In this problem: On the left, \(\frac{2x}{2}\) leaves \(x\). On the right, \(\frac{10}{2} = 5\). Putting the two together gives \(x = 5\).
Step 4
Step 4 - Check the answer by putting it back into the original equation.
In this problem: The answer \(x = 5\) is checked in three parts: write the original equation, put \(5\) in place of \(x\), then work out both sides.
Step 4a
Step 4a - Write the original equation.
In this problem: The original equation is \(2x = 10\).
Step 4b
Step 4b - Put the answer in place of the variable.
In this problem: Putting \(5\) in place of \(x\) in \(2x = 10\) gives \(2 \cdot 5 = 10\).
Step 4c
Step 4c - Work out both sides.
In this problem: \(2 \cdot 5 = 10\), which matches the other side, \(10\). Both sides are equal, so \(x = 5\) is correct.
Final Answer
Step 4
Step 4 - Verify the solution. Put the answer back into the original equation and check that both sides come out equal.
In this problem: The answer \(x = 5\) is checked in three parts: write the original equation, put \(5\) in place of \(x\), then work out both sides.
Step 4a
Step 4a - Write the original equation.
In this problem: The original equation is \(2x - 10 = 0\).
Step 4b
Step 4b - Put the answer in place of the variable.
In this problem: Putting \(5\) in place of every \(x\) in \(2x - 10 = 0\) gives \(25 - 10 = 0\).
Step 4c
Step 4c - Work out both sides.
In this problem: On the left, \(25 - 10 = 0\). On the right, \(0\). Both sides are equal, so \(x = 5\) is correct.
Final Answer
Step 6
Step 6 - Find the matching values of the other variable.
In this problem: Putting \(x = 5\) into \(y = x\) gives \(y = 5 = 5\), so \(\left(5,\; 5\right)\) is a solution.
Final Answer
Step 6
Step 6 - Evaluate f at each solution.
In this problem: Putting each point into f gives \(f\left(5,\; 5\right) = 5 \times {5} = 25\). Every solution gives the same value, so the extreme value of f on the constraint is \(25\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Lagrange Multipliers Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Lagrange Multipliers Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.