Linear System ODE Solver Calculator

Analyze linear differential systems with matrix driven dynamics. Track trajectories, forcing effects, and component trends. Generate shareable tables and summaries for deeper numerical insight.

Calculator Inputs

General Settings

Coefficient Matrix A

This matrix defines the linear coupling in x′ = Ax + b.

Constant Forcing Vector b

Use zeros for homogeneous systems or enter constants for nonhomogeneous forcing.

Initial State x(t₀)

Example Data Table

This sample uses x′ = Ax + b with A = [[0, 1], [-2, -3]], b = [0, 1], x(0) = [1, 0], t from 0 to 2, and RK4.

Step t x1 x2
00.0000001.0000000.000000
10.5000000.919271-0.231771
21.0000000.797858-0.227546
31.5000000.697028-0.170661
42.0000000.625662-0.115774

Formula Used

Model:
x′(t) = Ax(t) + b
Exact constant coefficient form:
x(t) = eA(t-t₀)x(t₀) + ∫t₀t eA(t-s)b ds
Forward Euler:
xk+1 = xk + h f(xk), where f(x) = Ax + b
Heun predictor-corrector:
p = xk + h f(xk)
xk+1 = xk + (h / 2)[f(xk) + f(p)]
Runge-Kutta 4:
k₁ = f(xk)
k₂ = f(xk + hk₁/2)
k₃ = f(xk + hk₂/2)
k₄ = f(xk + hk₃)
xk+1 = xk + h(k₁ + 2k₂ + 2k₃ + k₄)/6

How to Use This Calculator

  1. Select the number of coupled equations in your system.
  2. Enter the coefficient matrix A that multiplies the state vector x.
  3. Enter the constant forcing vector b. Use zeros for homogeneous systems.
  4. Enter the initial state values x(t₀), then choose the time interval and number of steps.
  5. Pick a numerical method. RK4 is usually the most accurate among the included options.
  6. Press Solve System to generate the summary, trajectory table, stability note, and equilibrium information.
  7. Use the export buttons in the result section to save the computed table as CSV or PDF.
  8. Review the component ranges and norm values to understand growth, decay, or oscillatory behavior.

FAQs

1. What kind of system does this calculator solve?

It solves constant coefficient linear systems of ordinary differential equations written as x′ = Ax + b. You can model up to four coupled first order equations with constant forcing.

2. Which method should I choose?

Use RK4 for the best accuracy in most cases. Heun offers a middle ground between speed and accuracy. Euler is fastest, but it can be much less accurate for stiff or rapidly changing systems.

3. Can it solve homogeneous and nonhomogeneous systems?

Yes. Enter zeros in the forcing vector b for a homogeneous system. Enter constant values in b to solve a nonhomogeneous linear system with constant input or forcing.

4. What does the stability note mean?

For two equations, the note is based on the eigenvalues of A. For larger systems, it uses Gershgorin discs as a fast stability check. That larger system note is helpful, but it remains heuristic.

5. Why might equilibrium be unavailable?

A unique equilibrium requires solving Ax + b = 0. If A is singular or nearly singular, the system may have no unique equilibrium, so the calculator reports that condition instead.

6. Does more time steps always improve accuracy?

Usually yes, because a smaller step size reduces numerical error. However, very large step counts increase computation and output size. A stable method with sensible steps is usually the best compromise.

7. What do the exported files contain?

The CSV export contains the computed time and state table. The PDF export captures the summary values, stability note, and tabulated solution so you can share or archive the results.

8. Is the displayed answer exact?

The table is a numerical approximation unless you independently evaluate the matrix exponential solution. The exact constant coefficient formula is shown so you can compare theory and computation.

Related Calculators

ode system solverrlc circuit solversensitivity analysis solverelectrical circuit solvereuler method solverrl circuit solverlinearization solvergauss seidel method solverjacobi method solverrc circuit solver

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.