Fractional Derivatives (interactive)

April 28, 2026

MathematicsVisualizationReact

Fractional derivatives generalize the idea of taking a classic derivative to taking a derivative of order α\alpha where α\alpha can be non-integer.

In this post the demo uses the Riemann–Liouville definition with a lower limit at 00. For 0<α<10<\alpha<1 (so n=1n=1) one common form is

Dαf(t)=ddt(1Γ(1−α)∫0t(t−τ)−αf(τ) dτ)D^\alpha f(t) = \frac{d}{dt}\left(\frac{1}{\Gamma(1-\alpha)}\int_0^t (t-\tau)^{-\alpha} f(\tau)\,d\tau\right)

and for 1<α<21<\alpha<2 (so n=2n=2) it becomes

Dαf(t)=d2dt2(1Γ(2−α)∫0t(t−τ)1−αf(τ) dτ).D^\alpha f(t) = \frac{d^2}{dt^2}\left(\frac{1}{\Gamma(2-\alpha)}\int_0^t (t-\tau)^{1-\alpha} f(\tau)\,d\tau\right).

The implementation is fully numeric: it evaluates the convolution-like integral on a uniform grid and then takes one or two finite-difference derivatives. (Near t=0t=0 the kernel is singular, so the first couple of samples can be less accurate.)

Interactive

Use the Example dropdown to switch between two cases with known closed forms (to verify the numeric method): sin⁡(t)\sin(t) and x2x^2. The dashed line is the analytic reference.

Fractional Derivatives

Pick a function and move the slider to change alpha in [0,2]. The solid curve is a numerically integrated Riemann–Liouville fractional derivative; the dashed curve is the known analytic result for verification.

Example:

max|error|: —

α: 0.50