Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

finite-difference approximation

Estimating a derivative by comparing a pixel to its neighbors instead of using calculus.

A finite-difference approximation stands in for a calculus derivative at a point where the function is only known at discrete samples, such as an image's integer pixel coordinates. It replaces \partial f/\partial x with a comparison between nearby pixel values, computed by convolution with a small kernel (the Sobel and Prewitt kernels above) instead of by taking a limit.

Examples

  • One pixel minus its left neighbor is the simplest finite difference; Sobel and Prewitt combine several such differences in a 3\times3 window to resist noise.

Read the full section →
Graph settings

Calculator