calculator.onl
Categories50

Partial derivatives and polynomial gradient

Find both symbolic partial derivatives of a polynomial f(x,y), its gradient and value at any supported point, with contour lines.

A worked example

For x² + y², move from (1, 0) to (−1, 0). The gradient points in the opposite direction. ∂f/∂x (x₀,y₀) · 2 → -2.

Partial derivative Fₓ2*x-3*y-4Partial derivative Fᵧ-3*x+4*y+5∂f/∂x (x₀,y₀)-9∂f/∂y (x₀,y₀)11‖∇f‖14.2127
Expression: Enter a polynomial in x and y using +, −, *, parentheses, integer powers 0–8 and division by nonzero constants. Implicit multiplication such as 2x or xy is supported. Select a point or symbolic-only mode.

Evaluate at a point: Evaluate at a point / Symbolic derivative only

Point x coordinate: -10000–10000

Point y coordinate: -10000–10000

Plot half-width: 0.1–100

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Partial derivative Fₓ

2*x-3*y-4

Calculated from your inputs

Partial derivative Fᵧ-3*x+4*y+5
∂f/∂x (x₀,y₀)-9
∂f/∂y (x₀,y₀)11
‖∇f‖14.2127
f(x₀,y₀)-1
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Enter a polynomial in x and y using +, −, *, parentheses, integer powers 0–8 and division by nonzero constants. Implicit multiplication such as 2x or xy is supported. Select a point or symbolic-only mode. For a related calculation, try Derivative calculator.

What to enter

InputWhat it meansExample value
ExpressionExpression: Enter a polynomial in x and y using +, −, *, parentheses, integer powers 0–8 and division by nonzero constants. Implicit multiplication such as 2x or xy is supported. Select a point or symbolic-only mode.x^2-3*x*y+2*y^2-4*x+5*y-12
Evaluate at a pointEvaluate at a point: Evaluate at a point / Symbolic derivative onlyEvaluate at a point
Point x coordinatePoint x coordinate: -10000–100002
Point y coordinatePoint y coordinate: -10000–100003
Plot half-widthPlot half-width: 0.1–1004

How the calculation works

  1. Enter a polynomial in x and y using +, −, *, parentheses, integer powers 0–8 and division by nonzero constants. Implicit multiplication such as 2x or xy is supported. Select a point or symbolic-only mode.
  2. ∂(a·xⁱyʲ)/∂x = i·a·xⁱ⁻¹yʲ; ∂(a·xⁱyʲ)/∂y = j·a·xⁱyʲ⁻¹; ∇f = (fₓ,fᵧ); |∇f| = √(fₓ²+fᵧ²)
  3. Total degree ≤8, 400 characters, 180 tokens and bounded expansion. Functions, variable denominators and negative powers are unsupported. Point coordinates use up to six decimal places. Contours use a 32×32 numerical grid and can miss fine features; derivatives are analytic.
The formula∂(a·xⁱyʲ)/∂x = i·a·xⁱ⁻¹yʲ; ∂(a·xⁱyʲ)/∂y = j·a·xⁱyʲ⁻¹; ∇f = (fₓ,fᵧ); |∇f| = √(fₓ²+fᵧ²)

A worked example

f = x² − 3xy + 2y² − 4x + 5y − 12; ∂f/∂x = 2x − 3y − 4; ∂f/∂y = −3x + 4y + 5. (2,3): ∇f = (−9,11); ‖∇f‖ = √202 ≈ 14.21267; f = −1.

Example you can load

What to enter
Result for this example · Partial derivative Fₓ2*x-3*y-4

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Total degree ≤8, 400 characters, 180 tokens and bounded expansion. Functions, variable denominators and negative powers are unsupported. Point coordinates use up to six decimal places. Contours use a 32×32 numerical grid and can miss fine features; derivatives are analytic.

Frequently asked questions

What should I enter?

Enter a polynomial in x and y using +, −, *, parentheses, integer powers 0–8 and division by nonzero constants. Implicit multiplication such as 2x or xy is supported. Select a point or symbolic-only mode.

How is this result calculated?

∂(a·xⁱyʲ)/∂x = i·a·xⁱ⁻¹yʲ; ∂(a·xⁱyʲ)/∂y = j·a·xⁱyʲ⁻¹; ∇f = (fₓ,fᵧ); |∇f| = √(fₓ²+fᵧ²)

When does this method not apply?

Total degree ≤8, 400 characters, 180 tokens and bounded expansion. Functions, variable denominators and negative powers are unsupported. Point coordinates use up to six decimal places. Contours use a 32×32 numerical grid and can miss fine features; derivatives are analytic.