Systems of ODEs with the Laplace Transform

Quick Answer

To solve a system of linear ODEs with the Laplace transform, transform every equation (each x′ becomes sX − x(0)), solve the resulting linear algebraic system for X(s), Y(s), … and invert each one. For x′ = −2x + y, y′ = x − 2y with x(0) = 1, y(0) = 0: x(t) = (e^(−t) + e^(−3t))/2 and y(t) = (e^(−t) − e^(−3t))/2.

From Coupled ODEs to Linear Algebra

A system of linear ODEs with constant coefficients couples several unknown functions, for example two tanks exchanging fluid, two masses joined by springs, or a circuit with two loops. Transforming each equation replaces every derivative x′ with sX(s) − x(0), so the system of differential equations becomes a system of linear algebraic equations in X(s), Y(s) and so on. You solve that system with substitution, elimination or Cramer's rule, then invert each unknown separately.

Key Formulas

Matrix Form

Written as x′ = Ax + Bu with initial state x(0), the transform gives sX(s) − x(0) = AX(s) + BU(s), so X(s) = (sI − A)⁻¹[x(0) + BU(s)]. The matrix (sI − A)⁻¹ is the resolvent, and its inverse Laplace transform is the state transition matrix e^(At). The poles of every solution are the eigenvalues of A, the roots of det(sI − A) = 0. This is the same structure used in state-space control.

Worked Example

Solve x′ = −2x + y, y′ = x − 2y with x(0) = 1, y(0) = 0. Transforming: sX − 1 = −2X + Y and sY = X − 2Y. From the second equation, X = (s + 2)Y. Substituting into the first: (s + 2)²Y − Y = 1, so Y(s) = 1/((s + 2)² − 1) = 1/((s + 1)(s + 3)) and X(s) = (s + 2)/((s + 1)(s + 3)). Partial fractions: X(s) = (1/2)/(s + 1) + (1/2)/(s + 3) and Y(s) = (1/2)/(s + 1) − (1/2)/(s + 3). So x(t) = (e^(−t) + e^(−3t))/2 and y(t) = (e^(−t) − e^(−3t))/2. Check: x(0) = 1, y(0) = 0, and both equations hold when substituted.

Reading the Result

Both solutions share the poles s = −1 and s = −3, the eigenvalues of the coefficient matrix [[−2, 1], [1, −2]]. The slow mode e^(−t) is the shared, symmetric part (x and y move together); the fast mode e^(−3t) is the antisymmetric part (x and y move in opposite directions). As t grows, x and y approach each other and both decay to zero. Looking at the poles first tells you this shape before any partial fractions are done.

Tips for Larger Systems

For three or more unknowns, write the transformed system as (sI − A)X = x(0) + BU and use Cramer's rule or matrix inversion. Check the determinant det(sI − A) first: its roots are the poles of every solution. Keep fractions factored, and only expand to partial fractions at the last step. Second-order systems (such as coupled masses) can be transformed directly using L{x″} = s²X − s·x(0) − x′(0), or rewritten as twice as many first-order equations.

Frequently Asked Questions

Yes, if the system is linear with constant coefficients. Each derivative becomes sX(s) minus the initial value, the system becomes linear algebra in the s-domain, and each unknown is inverted separately.

Try the LapCalc calculator

Exact Laplace transforms with every step, free, plus free calculators for partial fractions, ODEs, circuits, control and Fourier series. Premium adds the inverse Laplace calculator and AI explanations.

Open LapCalc

Related Topics