2×2 Linear System ODE Solver
This 2×2 Linear System ODE Solver helps you solve a system of two first-order differential equations and shows each step clearly. It works with constant-coefficient homogeneous systems, rewrites the system in matrix form, computes eigenvalue information, uses the matrix exponential, and applies optional initial conditions to find a particular solution.
Step-by-step method
- Write the two first-order ODEs clearly.
- Isolate x′ and y′ so each equation gives one derivative.
- Rewrite the system in vector form X′ = A X.
- Find the characteristic equation det(A − λI) = 0.
- Find the eigenvalues and eigenvectors when useful.
- Use the matrix exponential formula X(t) = e^{At}C, or X(t)=e^{A(t−t0)}X0 when initial conditions are given.
- Write the final component functions x(t) and y(t).
Formula bank:
Example 1: dx/dt = 2x + y; dy/dt = x + 2y, t, x, y, x(0)=1, y(0)=0
Step 1 - Write the system.
In this problem: Start with the two first-order equations.
| dx |
| dt |
| dy |
| dt |
Step 2 - Isolate the derivatives.
In this problem: Each equation gives one derivative.
Step 3 - Define X and X′.
In this problem: Collect the two dependent variables into a column vector.
| x |
| y |
| x′ |
| y′ |
Step 4 - Build the coefficient matrix.
In this problem: Read the coefficients of x and y from the derivative equations.
| 2 | 1 |
| 1 | 2 |
Step 5 - Find the characteristic equation.
In this problem: Compute det(A − λI) = 0.
Step 6 - List the eigenvalues.
In this problem: These control growth, decay, oscillation, and stability.
Step 7 - Find eigenvectors when useful.
In this problem: Eigenvectors give solution directions. If they are not convenient, the matrix exponential method still works.
| -1 |
| 1 |
| 1 |
| 1 |
Step 8 - Use the matrix exponential solution formula.
In this problem: For every constant-coefficient homogeneous system, the general solution is X(t)=e^{At}C.
| C1 |
| C2 |
Step 9 - Compute e^{At}.
In this problem: This matrix sends the constant vector or initial vector forward in time.
|
| ||||||||
|
|
Step 10 - Multiply e^{At} by C.
In this problem: This gives the general solution before applying initial conditions.
| 1 |
| 2 |
| 1 |
| 2 |
Step 11 - Write the initial vector.
In this problem: Collect x(t0) and y(t0) into X0.
| 1 |
| 0 |
Step 12 - Use the IVP formula.
In this problem: Instead of solving constants manually, use X(t)=e^{A(t−t0)}X0.
|
| ||||||||
|
|
Step 13 - Multiply by the initial vector.
In this problem: This gives the particular solution satisfying both initial conditions.
| 1 |
| 2 |
| 1 |
| 2 |
Step 14 - Classify the equilibrium.
In this problem: Use the real parts of the eigenvalues.
Step 15 - Final answer.
In this problem: Write the two component functions.
| 1 |
| 2 |
| 1 |
| 2 |
Final answer: See final step
Example 2: x' = y; y' = -x, t, x, y, x(0)=1, y(0)=0
Step 1 - Write the system.
In this problem: Start with the two first-order equations.
| dx |
| dt |
| dy |
| dt |
Step 2 - Isolate the derivatives.
In this problem: Each equation gives one derivative.
Step 3 - Define X and X′.
In this problem: Collect the two dependent variables into a column vector.
| x |
| y |
| x′ |
| y′ |
Step 4 - Build the coefficient matrix.
In this problem: Read the coefficients of x and y from the derivative equations.
| 0 | 1 |
| -1 | 0 |
Step 5 - Find the characteristic equation.
In this problem: Compute det(A − λI) = 0.
Step 6 - List the eigenvalues.
In this problem: These control growth, decay, oscillation, and stability.
Step 7 - Find eigenvectors when useful.
In this problem: Eigenvectors give solution directions. If they are not convenient, the matrix exponential method still works.
| i |
| 1 |
| −i |
| 1 |
Step 8 - Use the matrix exponential solution formula.
In this problem: For every constant-coefficient homogeneous system, the general solution is X(t)=e^{At}C.
| C1 |
| C2 |
Step 9 - Compute e^{At}.
In this problem: This matrix sends the constant vector or initial vector forward in time.
|
| ||||||||
|
|
Step 10 - Multiply e^{At} by C.
In this problem: This gives the general solution before applying initial conditions.
| 1 |
| 2 |
| 1 |
| 2 |
Step 11 - Write the initial vector.
In this problem: Collect x(t0) and y(t0) into X0.
| 1 |
| 0 |
Step 12 - Use the IVP formula.
In this problem: Instead of solving constants manually, use X(t)=e^{A(t−t0)}X0.
|
| ||||||||
|
|
Step 13 - Multiply by the initial vector.
In this problem: This gives the particular solution satisfying both initial conditions.
Step 14 - Classify the equilibrium.
In this problem: Use the real parts of the eigenvalues.
Step 15 - Final answer.
In this problem: Write the two component functions.
Final answer: See final step
Sign up or login to get the full step solution for free!