I have constructed the elements of the following 4x4 matrix solving some differential equation, namely “sol”:
\[Rho][t] := {{Subscript[\[Rho], gg][t] /. sol, 0, 0,
Subscript[\[Rho], ge][t] /. sol}, {0,
Subscript[\[Rho], ss][t] /. sol, Subscript[\[Rho], sa][t] /. sol,
0}, {0, Subscript[\[Rho], as][t] /. sol,
Subscript[\[Rho], aa][t] /. sol,
0}, {Subscript[\[Rho], eg][t] /. sol, 0, 0,
Subscript[\[Rho], ee][t] /. sol} }
I would like to use the eingenvalues \lambda_{i}[t] of this matrix in the following function:
Max[0, Sqrt[\[Lambda] /. einge[1]] - Sqrt[\[Lambda] /. einge[2]] -
Sqrt[\[Lambda] /. einge[3]] - Sqrt[\[Lambda] /. einge[4]]]
I’ve tried, with no success, the following:
einge := Eigenvalues[\[Rho][t]]
Plot[Evaluate[{Max[0,
Sqrt[ einge[1]] - Sqrt[ einge[2]] - Sqrt[ einge[3]] -
Sqrt[einge[4]]]} /. einge], {t, 0, 100}]
Can someone help me to found the right way to plot this function?