1.4 problem HW 1 problem 7(b)

Internal problem ID [6279]

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).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {t x^{\prime }+2 x-4 \,{\mathrm e}^{t}=0} \end {gather*}

Solution by Maple

Time used: 0.002 (sec). Leaf size: 17

dsolve(t*diff(x(t),t)+2*x(t)=4*exp(t),x(t), singsol=all)
 

\[ x \relax (t ) = \frac {4 \left (t -1\right ) {\mathrm e}^{t}+c_{1}}{t^{2}} \]

Solution by Mathematica

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

DSolve[t*x'[t]+2*x[t]==4*Exp[t],x[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} x(t)\to \frac {4 e^t (t-1)+c_1}{t^2} \\ \end{align*}