How to use this calculator
Find the state of a coupled continuous process including its initial condition and a held forcing input.
- Enter A11 (1/s), A12 (state 1/state 2/s), A21 (state 2/state 1/s), A22 (1/s), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Two state continuous forced trajectory explained
This linear state-space example predicts two coupled state variables under a constant input. The matrix exponential advances the initial state through the selected time, while the integral of the input response accounts for forcing over the whole interval.
Inputs, symbols, and units
a— A11 (1/s)- First row, first column of the state matrix.
b— A12 (state 1/state 2/s)- Contribution of state two to the time derivative of state one.
c— A21 (state 2/state 1/s)- Coupling from the first state into the second derivative.
d— A22 (1/s)- Second row, second column of the state matrix.
g— B1 (state 1/input/s)- First component of the actuator input vector.
j— B2 (state 2/input/s)- Second component of the actuator input vector.
x— Initial state 1- First state at time zero.
y— Initial state 2- Second state at time zero.
u— Held input- Input held constant throughout the interval.
t— Duration (s)- Elapsed continuous time.
Formula and method
x(t)=e^(At)x₀+A⁻¹(e^(At)−I)Bu for nonsingular A and constant u.
The matrix exponential handles real or complex eigenvalue pairs without numerical time stepping. A is interpreted in consistent continuous-time state units.
A worked scenario
A11 (1/s) = 0; A12 (state 1/state 2/s) = 1; A21 (state 2/state 1/s) = -2; A22 (1/s) = -3; B1 (state 1/input/s) = 0; B2 (state 2/input/s) = 1; Initial state 1 = 1; Initial state 2 = -0.2; Held input = 0.5; Duration (s) = 1.2.
- State 1: 0.591658 state 1 units
- State 2: -0.291763 state 2 units
The default coupled plant begins at (1,−0.2) and receives a 0.5-unit input for 1.2 seconds.
Assumptions and edge cases
A must be nonsingular. Large unstable coefficients or very long intervals can overflow; such results are rejected.
Reading the outputs
State 1 and state 2 are the endpoint values, not averages over the interval.
Frequently asked questions
Does this assume a stable system?
No; it evaluates any supported finite trajectory.
Why reject an integrator matrix?
The displayed forcing formula uses A inverse; a singular model requires an augmented-matrix solver.
Is this Euler integration?
No. It uses the closed-form two-by-two exponential.
How do I use the Two state continuous forced trajectory calculator?
Enter A11 (1/s), A12 (state 1/state 2/s), A21 (state 2/state 1/s), A22 (1/s), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Two state continuous forced trajectory?
A11 (1/s) = 0; A12 (state 1/state 2/s) = 1; A21 (state 2/state 1/s) = -2; A22 (1/s) = -3; B1 (state 1/input/s) = 0; B2 (state 2/input/s) = 1; Initial state 1 = 1; Initial state 2 = -0.2; Held input = 0.5; Duration (s) = 1.2. State 1: 0.591658 state 1 units State 2: -0.291763 state 2 units The default coupled plant begins at (1,−0.2) and receives a 0.5-unit input for 1.2 seconds.
Read our calculation methodology.