Simultaneous Differential Equations Solver Calculator

Model two-variable systems with constants and initial conditions. See exact values, tables, and trend graphs. Download exports and study behavior across any chosen interval.

Calculator

Example Data Table

This sample shows a damped, forced system. You can use these values directly in the form to test the solver and compare exact and RK4 outputs.

a11 a12 a21 a22 c1 c2 x0 y0 t0 t_eval t_end points substeps
0 1 -2 -3 0 4 1 0 0 4 10 21 12
2 -1 3 -4 1 -2 0.5 1.5 0 2 6 25 15

Formula Used

For a two-variable linear system, the calculator models:

dX/dt = A X + b

where

X = [x(t), y(t)]ᵀ, A = [[a11, a12], [a21, a22]], b = [c1, c2]ᵀ

When the coefficient matrix is invertible, the exact solution is computed with the matrix exponential:

X(t) = Xp + exp(A(t - t0)) (X0 - Xp)

Here, Xp = -A⁻¹b is the equilibrium or particular solution, and X0 is the initial vector at time t0.

The page also computes a Runge–Kutta fourth-order approximation, so you can compare a numerical method against the exact matrix-based result.

How to Use This Calculator

  1. Enter the four matrix coefficients for the coupled system.
  2. Enter the constant forcing terms c1 and c2.
  3. Provide initial values x(t0), y(t0), and the initial time t0.
  4. Choose the target time for the main result.
  5. Set the plot end time, sample count, and RK4 substeps.
  6. Click Solve System to place the result above the form.
  7. Review stability, eigenvalues, equilibrium, table values, and the graph.
  8. Use the export buttons to save the current results as CSV or PDF.

Frequently Asked Questions

1) What kind of systems does this solver handle?

It solves two first-order linear simultaneous differential equations with constant coefficients and constant forcing terms. It is designed for coupled x(t) and y(t) systems.

2) Does it return exact values or numerical values?

It returns exact matrix-exponential values when the coefficient matrix is invertible. It also computes RK4 numerical values for comparison and for singular-matrix fallback cases.

3) Why are eigenvalues shown?

Eigenvalues describe growth, decay, oscillation, and stability. They help classify the system as a node, spiral, saddle, or neutral oscillatory pattern.

4) What does the equilibrium point mean?

The equilibrium is the steady state where both derivatives become zero. In a stable system, nearby solutions often move toward this point over time.

5) Why compare exact and RK4 values?

The comparison shows numerical accuracy. Small differences mean the selected sampling and substeps are adequate for the interval you chose.

6) What should I do if the errors seem large?

Increase the RK4 substeps or use more sample points. That reduces step size and usually improves the numerical approximation.

7) Can this solver work backward in time?

Yes. You can use a target time or plot end time smaller than the initial time. The integration step simply becomes negative.

8) Is this page suitable for nonlinear systems?

No. This version is built for linear two-variable systems with constant coefficients. Nonlinear systems need a different solver and different stability rules.

Related Calculators

inverse laplace transform calculatortaylor series expansion calculatorexact differential equation calculatorequilibrium points calculatormidpoint method calculatorcharacteristic equation calculatorhomogeneous differential equation calculatornonhomogeneous differential equation calculatorsecond order differential equation calculatorheun method calculator

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.