CalcWorldHub
Free online calculator · no signup

Two state continuous Lyapunov energy calculator

Measure the total weighted future state excursion of a stable two-state autonomous model.

4,000 tools
Two state continuous Lyapunov energy calculator — A11 (1/s), A12 (state 1/state 2/s), A21 (state 2/state 1/s) and calculation method
Two state continuous Lyapunov energy calculator: inputs and calculation method.

How to use this calculator

Measure the total weighted future state excursion of a stable two-state autonomous model.

  1. 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.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Two state continuous Lyapunov energy explained

Integrated state cost1.9375cost
Integrated state cost: 1.9375 cost in the worked scenario.

A numerical walkthrough

A11 (1/s) = 0; A12 (state 1/state 2/s) = 1; A21 (state 2/state 1/s) = -2; A22 (1/s) = -3; Q11 (cost/state 1²/s) = 1; Q22 (cost/state 2²/s) = 2; Initial state 1 = 1; Initial state 2 = 0.5.

  • Integrated state cost: 1.9375 cost
  • P11: 1.583333 cost/state 1²
  • P12: 0.25 cost/state 1/state 2
  • P22: 0.416667 cost/state 2²

The default plant starts at (1,0.5); weight the second state twice as strongly as the first when integrating its entire free decay.

The model behind the numbers

AᵀP+PA=−Q; V(x₀)=x₀ᵀPx₀=∫₀∞xᵀQx dt for x′=Ax and stable A.

Solve three linear equations for the symmetric P matrix. Positive Q and a Hurwitz A give a positive-definite energy certificate.

What to enter

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.
q1 — Q11 (cost/state 1²/s)
Positive first diagonal state-cost weight.
q2 — Q22 (cost/state 2²/s)
Positive second diagonal state-cost weight.
x — Initial state 1
First component used in x transpose P x.
y — Initial state 2
Second component used in the energy measure.

Interpreting the result

Strictly stable continuous dynamics and diagonal positive Q only. This is not an optimal control design.

Reading the outputs

The primary cost is for the entered initial state; the three P entries let you reuse the same certificate for other states.

Frequently asked questions

Why reject an unstable A?

The infinite-time state-cost integral need not converge.

Can the cost be negative?

For valid inputs it is nonnegative, allowing tiny roundoff near zero.

Does P include a controller?

Only if you enter an already closed-loop A matrix.

How do I use the Two state continuous Lyapunov energy 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 Lyapunov energy?

A11 (1/s) = 0; A12 (state 1/state 2/s) = 1; A21 (state 2/state 1/s) = -2; A22 (1/s) = -3; Q11 (cost/state 1²/s) = 1; Q22 (cost/state 2²/s) = 2; Initial state 1 = 1; Initial state 2 = 0.5. Integrated state cost: 1.9375 cost P11: 1.583333 cost/state 1² P12: 0.25 cost/state 1/state 2 P22: 0.416667 cost/state 2² The default plant starts at (1,0.5); weight the second state twice as strongly as the first when integrating its entire free decay.