Advanced maths

Caputo fractional differential equation initial value calculator

A Caputo fractional differential equation replaces the ordinary first derivative with an operator of order alpha between zero and one.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A Caputo fractional differential equation replaces the ordinary first derivative with an operator of order alpha between zero and one. For noninteger order, the evolution depends on the preceding trajectory through a memory integral. It cannot generally be reproduced by simply changing the step size in an ordinary differential equation solver.

THE FORMULAD_C^α y=f(t,y);y(t)=y0+Γ(α)⁻¹ integral_0^t (t−s)^(α−1)f(s,y(s))ds.

A worked example

For α=0.5,y0=1,f=−y,T=1,the exact endpoint is exp(1)erfc(1)≈0.4275835762. The doubled200-step estimate is≈0.4275936074.

Good to know

Scalar Caputo order0<α≤1,smooth entered f(t,y),T≤10,20–400 coarse steps;PECE product integration and doubled-mesh comparison,no certified error or higher-order initial conditions.

Solve an initial-value problem with memory

A Caputo fractional differential equation replaces the ordinary first derivative with an operator of order alpha between zero and one. For noninteger order, the evolution depends on the preceding trajectory through a memory integral. It cannot generally be reproduced by simply changing the step size in an ordinary differential equation solver.

This calculator handles one scalar state, one supplied initial value and a finite positive terminal time. The expression defines the right-hand side as a function of t and y. The output includes the terminal value, a sampled trajectory and a coarse-versus-fine comparison rather than a certified closed-form solution.

Caputo fractional initial-value solutionα = 0.5Memory slows relaxationy(1) ≈ 0.42759
Scroll across to see the full diagram.
For α=0.5,y0=1,f=−y,T=1,the exact endpoint is exp(1)erfc(1)≈0.4275835762. The doubled200-step estimate is≈0.4275936074.

Compare this with the Fractional integral and Caputo derivative calculator for a polynomial. Solve D^alpha y=f(t,y) with memory and an initial value; evaluating a fractional derivative of a polynomial is not an IVP solve.

Keep the Caputo convention explicit

For order below one, the Caputo equation with initial value y zero can be written as a Volterra integral equation. The memory kernel is a power of elapsed time divided by Gamma of alpha. This convention permits a familiar initial state while distinguishing the problem from other definitions of a fractional derivative.

The entered order is restricted to 0.01 through one in the page interface. Order one reduces to the ordinary initial-value problem, while order zero is not included. The same right-hand-side expression at two different orders defines different dynamical models, so changing alpha is a substantive modeling change rather than a numerical tuning option.

Use predictor and corrector memory weights

The method first predicts the next state from a product-integration approximation over the complete stored history. A corrector then incorporates the right-hand side evaluated at that predicted state using the corresponding fractional Adams weights. Each new value therefore depends on all previous grid values rather than only the latest step.

This is a PECE predictor-evaluate-correct-evaluate construction with one correction per step. The implementation does not iterate an implicit corrector to convergence. Its cost grows quadratically with the number of time steps because the history sum is recomputed, which explains the deliberately modest resource bounds.

Check fractional relaxation against a known value

The default equation is the half-order relaxation problem with right-hand side minus y and initial value one. At time one, the analytic solution is exp of one multiplied by the complementary error function at one, approximately 0.427583576. This provides an independent target for the fractional memory calculation.

The default finely resolved estimate is approximately 0.427594, with a small coarse-to-fine difference. The ordinary first-order equation would instead give exp of minus one, approximately 0.367879. That difference demonstrates the effect of changing the derivative order and should not be interpreted as a numerical error in the fractional solution.

Refine the grid before trusting extra digits

The calculation runs the entered coarse step count and a grid with twice as many steps, reporting the absolute terminal-value difference. For a smooth, well-behaved example, a decreasing difference under refinement supports numerical stability. It does not by itself certify how close the estimate is to the exact solution.

Fractional solutions can have weak initial singularities even when the forcing function is smooth. Such behavior affects convergence rates and can make an extrapolation based on ordinary Runge–Kutta intuition misleading. This page uses a uniform grid and does not automatically construct graded meshes or initial singularity correction terms.

Choose expressions and time scales that remain defined

Supported expressions must be smooth and finite where evaluated. A logarithm of a nonpositive state, explosive nonlinear forcing or a finite-time singularity can invalidate the numerical history. Nonfinite or excessive intermediate values are rejected rather than replaced by clipped states that would change the equation.

The interface permits twenty to four hundred coarse steps and terminal times up to ten, producing at most eight hundred fine steps. These are bounded educational workloads. Stiff relaxation, long memory horizons or demanding accuracy targets may need specialized fractional solvers and a more detailed convergence study.

Interpret the curve as a model trajectory

A fractional state equation needs a meaningful definition of the time unit and derivative order. Rescaling time also changes the coefficient scales associated with a fractional derivative, so numerical coefficients cannot always be copied unchanged between seconds and hours. Keep the units consistent when comparing scenarios.

The calculator does not fit alpha from observations, solve systems, handle delays or support orders above one. Its refinement diagnostic reports what changed numerically between two grids. It does not validate the physical memory law or establish that a fractional model is preferable to another explanation of the observed dynamics.

A few questions, answered

Why is past history used?

A fractional Caputo derivative corresponds to a memory integral,so earlier function values contribute to each new step.

Is α=1 allowed?

Yes. It provides an ordinary differential-equation consistency case under the same initial-value convention.

Is the mesh difference an error bound?

No. It is a refinement diagnostic and can understate the error for difficult inputs.

Are orders above one supported?

No. Higher Caputo orders need additional initial data and a different interface.

Find your calculator

Start typing to explore the library.