Gradient Calculator
This Gradient Calculator collects the partial derivatives of a function into a single vector, and shows the working line by line. Each component measures how fast the function changes along one axis while the others are held still. Together they point in the direction of steepest increase, and their length is how steep that is. Following the same pattern every time keeps each variable differentiated on its own.
Step-by-step method
- Set up the problem.
- Take the partial derivative with respect to each variable (holding the others constant).
- Collect the partials into the gradient vector.
Formula:
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Take the partial derivative with respect to each variable (holding the others constant).
- Collect the partials into the gradient vector.
Step 1
Step 1 - Partial derivative with respect to x.
In this problem:
Step 2
Step 2 - Set up the terms in the sum.
In this problem:
Step 3
Step 3 - Write the sum rule formula.
In this problem:
Step 4
Step 4 - Split the derivative across the addition signs.
In this problem:
Step 5
Step 5 - Differentiate the separated term \(x y\).
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- If a constant coefficient is present, apply the constant multiple rule first.
- 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\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Apply the constant multiple rule first.
In this problem: Before using the power rule, apply the constant multiple rule because \(y\) is a constant coefficient.
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 3
Step 3 - Write the power rule formula.
In this problem: Now use the power rule on the remaining power of \(x\).
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\), multiply by the constant \(y\), and keep the solving line in power form. This gives \(y\).
Final Answer
Step 6
Step 6 - Differentiate the separated term \(y z\).
In this problem:
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 z\). 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 z\) is constant, its derivative is \(0\).
Final Answer
Step 7
Step 7 - Differentiate the separated term \(x z\).
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- If a constant coefficient is present, apply the constant multiple rule first.
- 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 \(z\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Apply the constant multiple rule first.
In this problem: Before using the power rule, apply the constant multiple rule because \(z\) is a constant coefficient.
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} z\). The constant coefficient is \(z\), 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 \(z\) outside the derivative and leave \(x^{1}\) inside the derivative.
Final Answer
Step 3
Step 3 - Write the power rule formula.
In this problem: Now use the power rule on the remaining power of \(x\).
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 \(z\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x\), multiply by the constant \(z\), and keep the solving line in power form. This gives \(z\).
Final Answer
Step 8
Step 8 - Combine and simplify.
In this problem:
Step 9
Step 9 - Partial derivative with respect to y.
In this problem:
Step 10
Step 10 - Set up the terms in the sum.
In this problem:
Step 11
Step 11 - Write the sum rule formula.
In this problem:
Step 12
Step 12 - Split the derivative across the addition signs.
In this problem:
Step 13
Step 13 - Differentiate the separated term \(x y\).
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- If a constant coefficient is present, apply the constant multiple rule first.
- 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\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Apply the constant multiple rule first.
In this problem: Before using the power rule, apply the constant multiple rule because \(x\) is a constant coefficient.
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 3
Step 3 - Write the power rule formula.
In this problem: Now use the power rule on the remaining power of \(x\).
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\), multiply by the constant \(x\), and keep the solving line in power form. This gives \(x\).
Final Answer
Step 14
Step 14 - Differentiate the separated term \(y z\).
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- If a constant coefficient is present, apply the constant multiple rule first.
- 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 \(z\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Apply the constant multiple rule first.
In this problem: Before using the power rule, apply the constant multiple rule because \(z\) is a constant coefficient.
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 \(y^{1} z\). The constant coefficient is \(z\), 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 \(z\) outside the derivative and leave \(y^{1}\) inside the derivative.
Final Answer
Step 3
Step 3 - Write the power rule formula.
In this problem: Now use the power rule on the remaining power of \(x\).
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 \(z\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(y\), multiply by the constant \(z\), and keep the solving line in power form. This gives \(z\).
Final Answer
Step 15
Step 15 - Differentiate the separated term \(x z\).
In this problem:
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 z\). 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 z\) is constant, its derivative is \(0\).
Final Answer
Step 16
Step 16 - Combine and simplify.
In this problem:
Step 17
Step 17 - Partial derivative with respect to z.
In this problem:
Step 18
Step 18 - Set up the terms in the sum.
In this problem:
Step 19
Step 19 - Write the sum rule formula.
In this problem:
Step 20
Step 20 - Split the derivative across the addition signs.
In this problem:
Step 21
Step 21 - Differentiate the separated term \(x y\).
In this problem:
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 y\). This expression does not contain \(z\), 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 y\) is constant, its derivative is \(0\).
Final Answer
Step 22
Step 22 - Differentiate the separated term \(y z\).
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- If a constant coefficient is present, apply the constant multiple rule first.
- 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\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Apply the constant multiple rule first.
In this problem: Before using the power rule, apply the constant multiple rule because \(y\) is a constant coefficient.
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 \(y z^{1}\). The constant coefficient is \(y\), and the variable part is \(z^{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 \(z^{1}\) inside the derivative.
Final Answer
Step 3
Step 3 - Write the power rule formula.
In this problem: Now use the power rule on the remaining power of \(x\).
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 \(z\), multiply by the constant \(y\), and keep the solving line in power form. This gives \(y\).
Final Answer
Step 23
Step 23 - Differentiate the separated term \(x z\).
In this problem:
Problem
Approach
Step-by-step method
- Set up the problem.
- If a constant coefficient is present, apply the constant multiple rule first.
- 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\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Apply the constant multiple rule first.
In this problem: Before using the power rule, apply the constant multiple rule because \(x\) is a constant coefficient.
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 z^{1}\). The constant coefficient is \(x\), and the variable part is \(z^{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 \(z^{1}\) inside the derivative.
Final Answer
Step 3
Step 3 - Write the power rule formula.
In this problem: Now use the power rule on the remaining power of \(x\).
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 \(z\), multiply by the constant \(x\), and keep the solving line in power form. This gives \(x\).
Final Answer
Step 24
Step 24 - Combine and simplify.
In this problem:
Step 25
Step 25 - Collect the partials into the gradient vector.
In this problem:
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Take the partial derivative with respect to each variable (holding the others constant).
- Collect the partials into the gradient vector.
Step 1
Step 1 - Partial derivative with respect to x.
In this problem:
Step 2
Step 2 - Set up the coefficient and the variable part.
In this problem:
Step 3
Step 3 - Write the constant multiple rule formula.
In this problem:
Step 4
Step 4 - Apply the constant multiple rule.
In this problem:
Step 5
Step 5 - Partial derivative with respect to y.
In this problem:
Step 6
Step 6 - Set up the coefficient and the variable part.
In this problem:
Step 7
Step 7 - Write the constant multiple rule formula.
In this problem:
Step 8
Step 8 - Apply the constant multiple rule.
In this problem:
Step 9
Step 9 - Collect the partials into the gradient vector.
In this problem:
Final Answer
Login and upgrade to Pro to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.