Gradient Notes
These Gradient Notes explain how to collect the partial derivatives of a function into a single vector, with the working shown 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.
- Write the formula.
- Find each partial derivative.
- Collect the partial derivatives into the gradient.
Formula: Gradient Formula
This formula collects the partial derivatives into one vector. Each component is the partial derivative with respect to one variable.
Useful Tips to Remember
The gradient is a vector with one component for each variable in the function. It points in the direction of fastest increase, and its length is the steepest rate of increase. At a peak or a dip every component is 0. The gradient is always at right angles to the level curves of the function.
Required knowledge
- How to find each partial derivative, covered in the Partial Derivatives Calculator.
- How to differentiate with the usual rules, covered in the Derivative Calculator.
- How the length of a vector is measured, covered in the Magnitude of a Vector Calculator.
Where Is the Gradient Used?
The gradient shows which way a function rises fastest and how steep it is, so it guides almost every optimisation method. Gradient descent, the algorithm behind machine learning, steps against the gradient to reduce error. In physics, forces come from the gradient of a potential, and heat flows against the temperature gradient. Map makers and hikers use gradients for the steepest route up a hill, and image software uses them to detect edges.
- Gradient descent in machine learning
- Forces from potential energy in physics
- Heat flow and temperature gradients
- Steepest paths on terrain maps
- Edge detection in image processing
Gradient Practice Problems
Example 1 finds the gradient of \(x y + y z + z x\), which has three components, and Example 2 uses \(x^{2} y^{3}\) in two variables. Examples 3 and 4 give you two more of the same kind to try, \(f(x, y, z) = x^{2} y + 3 y z\) and \(f(x, y, z) = x y^{2} + z^{3}\). Find each partial derivative, collect them and compare.
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 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, z) = x y + x z + y z\).
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\) and \(z\) constant, differentiating \(x y + x z + y z\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = y + z\).
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\), \(x z\), \(y z\).
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 y\).
In this problem: The separated term is \(x 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 \(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 4b
Step 4b - Differentiate the separated term \(x z\).
In this problem: The separated term is \(x z\). 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 \(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 - 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: \(z\) 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} 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 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\) and multiply by the constant \(z\). This gives \(z\).
Final Answer
Step 4c
Step 4c - Differentiate the separated term \(y z\).
In this problem: The separated term is \(y z\). 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 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 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\) and \(z\) constant, differentiating \(x y + x z + y z\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = x + z\).
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\), \(x z\), \(y z\).
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 y\).
In this problem: The separated term is \(x 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 \(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 4b
Step 4b - Differentiate the separated term \(x z\).
In this problem: The separated term is \(x z\). 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 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 4c
Step 4c - Differentiate the separated term \(y z\).
In this problem: The separated term is \(y z\). 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 \(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 - 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: \(z\) 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 \(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 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\) and multiply by the constant \(z\). This gives \(z\).
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 3c
Step 3c - Find the partial derivative with respect to z.
In this problem: Holding \(x\) and \(y\) constant, differentiating \(x y + x z + y z\) with respect to \(z\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial z} = x + 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 y\), \(x z\), \(y z\).
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 y\).
In this problem: The separated term is \(x 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 \(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 4b
Step 4b - Differentiate the separated term \(x z\).
In this problem: The separated term is \(x z\). 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 \(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 \(z\).
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 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\) and multiply by the constant \(x\). This gives \(x\).
Final Answer
Step 4c
Step 4c - Differentiate the separated term \(y z\).
In this problem: The separated term is \(y z\). 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 \(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 \(z\).
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 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\) and multiply by the constant \(y\). This gives \(y\).
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 y + z,\; x + z,\; x + y \right\rangle\).
Final Answer
See Example 2 Hide Example 2
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^{3}\).
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^{3}\) with respect to \(x\), covered in the Power Rule Calculator, gives \(\frac{\partial f}{\partial x} = 2 x y^{3}\).
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^{2} y^{3}\). This is a constant multiple of a power of \(x\). The coefficient is \(y^{3}\), the power part is \(x^{2}\), and 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 - Move the number in front out with the constant multiple rule.
In this problem: \(y^{3}\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(x^{2}\).
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^{2} y^{3}\). The constant coefficient is \(y^{3}\), and the variable part is \(x^{2}\).
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^{3}\) outside the derivative and leave \(x^{2}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, then keep the coefficient \(y^{3}\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x^{2}\) and multiply by the constant \(y^{3}\). This gives \(2 y^{3}{x}^{1}\).
Final Answer
Step 3b
Step 3b - Find the partial derivative with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x^{2} y^{3}\) with respect to \(y\), covered in the Power Rule Calculator, gives \(\frac{\partial f}{\partial y} = 3 x^{2} y^{2}\).
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^{2} y^{3}\). This is a constant multiple of a power of \(x\). The coefficient is \(x^{2}\), the power part is \(y^{3}\), and the exponent is \(n = 3\).
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^{2}\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(y^{3}\).
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^{2} y^{3}\). The constant coefficient is \(x^{2}\), and the variable part is \(y^{3}\).
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^{2}\) outside the derivative and leave \(y^{3}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here, \(n = 3\). Substitute this exponent into the power rule, then keep the coefficient \(x^{2}\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(y^{3}\) and multiply by the constant \(x^{2}\). This gives \(3 x^{2}{y}^{2}\).
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 y^{3},\; 3 x^{2} y^{2} \right\rangle\).
Final Answer
See Example 3 Hide Example 3
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, z) = x^{2} y + 3 y z\).
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\) and \(z\) constant, differentiating \(x^{2} y + 3 y z\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 2 x 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\), \(3 y z\).
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} y\).
In this problem: The separated term is \(x^{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 \(x^{2} y\). This is a constant multiple of a power of \(x\). The coefficient is \(y\), the power part is \(x^{2}\), and 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 - 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^{2}\).
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^{2} y\). The constant coefficient is \(y\), and the variable part is \(x^{2}\).
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^{2}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here, \(n = 2\). 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^{2}\) and multiply by the constant \(y\). This gives \(2 y{x}^{1}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(3 y z\).
In this problem: The separated term is \(3 y z\). 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 \(3 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 \(3 y z\) 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\) and \(z\) constant, differentiating \(x^{2} y + 3 y z\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = x^{2} + 3 z\).
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\), \(3 y z\).
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} y\).
In this problem: The separated term is \(x^{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 \(x^{2} y\). This is a constant multiple of a power of \(x\). The coefficient is \(x^{2}\), the power part is \(y\), and the exponent is \(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^{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 \(x^{2} y^{1}\). The constant coefficient is \(x^{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 \(x^{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: Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(x^{2}\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(y\) and multiply by the constant \(x^{2}\). This gives \(x^{2}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(3 y z\).
In this problem: The separated term is \(3 y z\). 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 \(3 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 - 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: \(3 z\) 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 \(y^{1} \cdot 3 z\). The constant coefficient is \(3 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 \(3 z\) 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 \(3 z\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(y\) and multiply by the constant \(3 z\). This gives \(3 z\).
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 3c
Step 3c - Find the partial derivative with respect to z.
In this problem: Holding \(x\) and \(y\) constant, differentiating \(x^{2} y + 3 y z\) with respect to \(z\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial z} = 3 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\), \(3 y z\).
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} y\).
In this problem: The separated term is \(x^{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 \(x^{2} 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^{2} y\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(3 y z\).
In this problem: The separated term is \(3 y z\). 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 \(3 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: \(3 y\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(z\).
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 \(3 y z^{1}\). The constant coefficient is \(3 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 \(3 y\) outside the derivative and leave \(z^{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 \(3 y\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(z\) and multiply by the constant \(3 y\). This gives \(3 y\).
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 y,\; x^{2} + 3 z,\; 3 y \right\rangle\).
Final Answer
See Example 4 Hide Example 4
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, z) = x y^{2} + z^{3}\).
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\) and \(z\) constant, differentiating \(x y^{2} + z^{3}\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 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 y^{2}\), \(z^{3}\).
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 y^{2}\).
In this problem: The separated term is \(x 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.
- 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 y^{2}\). This is a constant multiple of a power of \(x\). The coefficient is \(y^{2}\), the power part is \(x\), and the exponent is \(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^{2}\) 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^{2}\). The constant coefficient is \(y^{2}\), 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^{2}\) 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: Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(y^{2}\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x\) and multiply by the constant \(y^{2}\). This gives \(y^{2}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(z^{3}\).
In this problem: The separated term is \(z^{3}\). 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 \(z^{3}\). 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 \(z^{3}\) 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\) and \(z\) constant, differentiating \(x y^{2} + z^{3}\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = 2 x 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 y^{2}\), \(z^{3}\).
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 y^{2}\).
In this problem: The separated term is \(x 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.
- 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 y^{2}\). This is a constant multiple of a power of \(x\). The coefficient is \(x\), the power part is \(y^{2}\), and 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 - 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^{2}\).
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^{2}\). The constant coefficient is \(x\), and the variable part is \(y^{2}\).
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^{2}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here, \(n = 2\). 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^{2}\) and multiply by the constant \(x\). This gives \(2 x{y}^{1}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(z^{3}\).
In this problem: The separated term is \(z^{3}\). 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 \(z^{3}\). 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 \(z^{3}\) 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 3c
Step 3c - Find the partial derivative with respect to z.
In this problem: Holding \(x\) and \(y\) constant, differentiating \(x y^{2} + z^{3}\) with respect to \(z\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial z} = 3 z^{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 y^{2}\), \(z^{3}\).
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 y^{2}\).
In this problem: The separated term is \(x 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 \(x y^{2}\). 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^{2}\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(z^{3}\).
In this problem: The separated term is \(z^{3}\). 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 \(z^{3}\). This is a power of \(x\), so the exponent is \(n = 3\).
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 = 3\). 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 \(3{z}^{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 y^{2},\; 2 x y,\; 3 z^{2} \right\rangle\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Gradient 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, Gradient 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.