55.1.4 problem HW 1 problem 7(b)

Internal problem ID [8700]
Book : Selected problems from homeworks from different courses
Section : Math 2520, summer 2021. Differential Equations and Linear Algebra. Normandale college, Bloomington, Minnesota
Problem number : HW 1 problem 7(b)
Date solved : Monday, January 27, 2025 at 04:19:36 PM
CAS classification : [_linear]

\begin{align*} x^{\prime } t +2 x&=4 \,{\mathrm e}^{t} \end{align*}

Solution by Maple

Time used: 0.001 (sec). Leaf size: 18

dsolve(t*diff(x(t),t)+2*x(t)=4*exp(t),x(t), singsol=all)
 
\[ x \left (t \right ) = \frac {\left (4 t -4\right ) {\mathrm e}^{t}+c_{1}}{t^{2}} \]

Solution by Mathematica

Time used: 0.050 (sec). Leaf size: 20

DSolve[t*D[x[t],t]+2*x[t]==4*Exp[t],x[t],t,IncludeSingularSolutions -> True]
 
\[ x(t)\to \frac {4 e^t (t-1)+c_1}{t^2} \]