Skip to main content
Calcimator

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

Magnitude |∇f|7.2111
Direction56.31°
How to Use This Calculator
  1. Enter the coefficients a, b, and c that define f(x,y) = ax² + by² + cxy.
  2. Enter the x and y coordinates of the point where you want to evaluate the gradient.
  3. The calculator computes the partial derivatives ∂f/∂x = 2ax + cy and ∂f/∂y = 2by + cx at that point.
  4. Gradient magnitude |∇f| = √((∂f/∂x)² + (∂f/∂y)²) tells you how steep the function is at that point.
  5. Direction gives the angle (in degrees) of the gradient vector, pointing toward the steepest ascent of f.
  6. 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-646
-6-246
6246
16646

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

  1. Identify Input Parameters
    4 parameters
    Coefficient of x² (a) = 1, Coefficient of y² (b) = 1, Coefficient of xy (c) = 0, x Point = 2 = 5 input(s) provided
  2. Calculate ∂f/∂x
    ∂f/∂x
    4 = 4
  3. Calculate ∂f/∂y
    ∂f/∂y
    6 = 6
  4. Calculate Magnitude |∇f|
    Magnitude |∇f|
    7.2111 = 7.2111
  5. Calculate Direction
    Direction = directionDeg
    56.31 = 56.31

Engine last updated . Checked against 2 independently-derived tests how we verify calculators.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.