Gradient Vector Calculator
Calculate the gradient vector of f(x,y) = ax² + by² + cxy at any point. Shows magnitude and direction of steepest ascent.
Inputs
Results
∂f/∂x
4
∂f/∂y
6
How to Use This Calculator
- Enter the coefficients a, b, and c that define f(x,y) = ax² + by² + cxy.
- Enter the x and y coordinates of the point where you want to evaluate the gradient.
- The calculator computes the partial derivatives ∂f/∂x = 2ax + cy and ∂f/∂y = 2by + cx at that point.
- Gradient magnitude |∇f| = √((∂f/∂x)² + (∂f/∂y)²) tells you how steep the function is at that point.
- Direction gives the angle (in degrees) of the gradient vector, pointing toward the steepest ascent of f.
- The bar chart displays ∂f/∂x, ∂f/∂y, and |∇f| side by side to compare their magnitudes.
How the result changes with Coefficient of x² (a)
| Coefficient of x² (a) | ∂f/∂x | ∂f/∂y |
|---|---|---|
| -16 | -64 | 6 |
| -6 | -24 | 6 |
| 6 | 24 | 6 |
| 16 | 64 | 6 |
What each input means
- Coefficient of x² (a)
- Coefficient of x²
- Coefficient of y² (b)
- Coefficient of y²
- Coefficient of xy (c)
- Coefficient of the cross term xy
- x Point
- x coordinate of the evaluation point
- y Point
- y coordinate of the evaluation point
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersCoefficient of x² (a) = 1, Coefficient of y² (b) = 1, Coefficient of xy (c) = 0, x Point = 2 = 5 input(s) provided
- Calculate ∂f/∂x∂f/∂x4 = 4
- Calculate ∂f/∂y∂f/∂y6 = 6
- Calculate Magnitude |∇f|Magnitude |∇f|7.2111 = 7.2111
- Calculate DirectionDirection = directionDeg56.31 = 56.31
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Partial Derivative Calculator
Calculate partial derivatives of f(x,y) = axy + bx² + cy² + d. Find df/dx, df/dy, and the gradient magnitude.
Calculus ToolsDerivative Calculator
Calculate the derivative of polynomial, trigonometric, exponential, and logarithmic functions at any point.
Machine Learning & AISupport Vector Machine Calculator
Calculate SVM parameters, support vectors, margin width, and complexity for support vector machines.
Calculus ToolsArc Length Calculator
Calculate the arc length of linear, quadratic, and circular curves between two points using numerical integration.
More in Math & Statistics.