9.19 problem 1874

Internal problem ID [10197]

Book: Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section: Chapter 8, system of first order odes
Problem number: 1874.
ODE order: 1.
ODE degree: 1.

Solve \begin {align*} x^{\prime }\left (t \right )&=x \left (t \right ) f \left (t \right )+y \left (t \right ) g \left (t \right )\\ y^{\prime }\left (t \right )&=-x \left (t \right ) g \left (t \right )+y \left (t \right ) f \left (t \right ) \end {align*}

Solution by Maple

Time used: 0.578 (sec). Leaf size: 57

dsolve([diff(x(t),t)=x(t)*f(t)+y(t)*g(t),diff(y(t),t)=-x(t)*g(t)+y(t)*f(t)],singsol=all)
 

\begin{align*} x \left (t \right ) &= {\mathrm e}^{\int \left (\tan \left (c_{1} -\left (\int g \left (t \right )d t \right )\right ) g \left (t \right )+f \left (t \right )\right )d t} c_{2} \\ y \left (t \right ) &= {\mathrm e}^{\int \left (\tan \left (c_{1} -\left (\int g \left (t \right )d t \right )\right ) g \left (t \right )+f \left (t \right )\right )d t} c_{2} \tan \left (c_{1} -\left (\int g \left (t \right )d t \right )\right ) \\ \end{align*}

Solution by Mathematica

Time used: 0.01 (sec). Leaf size: 93

DSolve[{x'[t]==x[t]*f[t]+y[t]*g[t],y'[t]==-x[t]*g[t]+y[t]*f[t]},{x[t],y[t]},t,IncludeSingularSolutions -> True]
 

\begin{align*} x(t)\to \exp \left (\int _1^tf(K[2])dK[2]\right ) \left (c_1 \cos \left (\int _1^tg(K[1])dK[1]\right )+c_2 \sin \left (\int _1^tg(K[1])dK[1]\right )\right ) \\ y(t)\to \exp \left (\int _1^tf(K[2])dK[2]\right ) \left (c_2 \cos \left (\int _1^tg(K[1])dK[1]\right )-c_1 \sin \left (\int _1^tg(K[1])dK[1]\right )\right ) \\ \end{align*}