Calculus & Numerical Methods

Gradient Magnitude (2D)

Length of the gradient vector of f(x, y).

Formula

Formula
∇f = (∂fx)2 + (∂fy)2

Variables

SymbolDefinitionType & rangeUnitsRole
f function of x and y expression / text x, y input
x, y evaluation point real number (ℝ) input

Try it yourself

Interactive calculator
math expression (e.g. x*x, sin(x))
Result

Worked examples

Example 1
Givenf(x, y) = x*x + y*y, x = 3, y = 4
Result10
Example 2
Givenf(x, y) = x*y, x = 1, y = 2
Result2.236067977