Problem: Solve for \(X\) in the Riccati equation \[ A^{\prime }X+XA-XBR^{-1}B^{\prime }X+C^{\prime }C=0 \] given \begin {align*} A & =\begin {pmatrix} -3 & 2\\ 1 & 1 \end {pmatrix} \\ B & =\begin {pmatrix} 0\\ 1 \end {pmatrix} \\ C & =\begin {pmatrix} 1 & -1 \end {pmatrix} \\ R & =3 \end {align*}
Mathematica
Matlab
%needs control system clear all; close all; a = [-3 2;1 1]; b = [0 ; 1]; c = [1 -1]; r = 3; x = care(a,b,c'*c,r)
|
x = 0.5895 1.8216 1.8216 8.8188 |
Maple