Directional Derivative Calculator
This Directional Derivative Calculator finds how fast \(f(x, y)\) changes in a chosen direction at a point. It computes the gradient, converts the direction into a unit vector, dots them together, and evaluates - showing every step.
Step-by-step method
- Set up the function, the direction vector, and the point.
- Find the gradient by taking the partial derivatives.
- Turn the direction into a unit vector.
- Dot the gradient with the unit vector.
- Evaluate at the given point.
Formula:
Example 1:
Step 1 - Set up the function, the direction vector, and the point.
In this problem: We are given \(f = x^{2} y\), direction \(\mathbf{v} = \langle 3, 4 \rangle\), and the point \((1, 2)\).
Step 2 - Find the gradient by taking the partial derivatives.
In this problem: The gradient is \(\nabla f = \langle 2 x y, x^{2} \rangle\).
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.
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 \(x^{2}\), and the variable part is \(y\).
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\) inside the derivative.
Step 3 - Turn the direction into a unit vector.
In this problem: The magnitude is \(\lVert \mathbf{v} \rVert = 5\), so the unit vector is \(\mathbf{u} = \langle \frac{3}{5}, \frac{4}{5} \rangle\).
Step 4 - Dot the gradient with the unit vector.
In this problem: Dotting the gradient with the unit vector gives \(D_{\mathbf{u}} f = \frac{2 x \left(2 x + 3 y\right)}{5}\).
Step 5 - Evaluate at the given point.
In this problem: Evaluating at \((1, 2)\) gives \(\frac{16}{5}\).
Final answer:
Example 2:
Step 1 - Set up the function, the direction vector, and the point.
In this problem: We are given \(f = x^{2} + y^{2}\), direction \(\mathbf{v} = \langle 1, 1 \rangle\), and the point \((1, 2)\).
Step 2 - Find the gradient by taking the partial derivatives.
In this problem: The gradient is \(\nabla f = \langle 2 x, 2 y \rangle\).
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.
- 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^{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 and keep the result in power form. 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.
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.
- 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^{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 and keep the result in power form. 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.
Step 3 - Turn the direction into a unit vector.
In this problem: The magnitude is \(\lVert \mathbf{v} \rVert = \sqrt{2}\), so the unit vector is \(\mathbf{u} = \langle \frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2} \rangle\).
Step 4 - Dot the gradient with the unit vector.
In this problem: Dotting the gradient with the unit vector gives \(D_{\mathbf{u}} f = \sqrt{2} \left(x + y\right)\).
Step 5 - Evaluate at the given point.
In this problem: Evaluating at \((1, 2)\) gives \(3 \sqrt{2} \approx 4.24\).
Final answer:
Login and upgrade to Pro to unlock the full step solution.