3.18 problem Problem 18

Internal problem ID [2147]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 1, First-Order Differential Equations. Section 1.6, First-Order Linear Differential Equations. page 59
Problem number: Problem 18.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {x^{\prime }+\frac {2 x}{-t +4}-5=0} \end {gather*} With initial conditions \begin {align*} [x \relax (0) = 4] \end {align*}

Solution by Maple

Time used: 0.009 (sec). Leaf size: 14

dsolve([diff(x(t),t)+2/(4-t)*x(t)=5,x(0) = 4],x(t), singsol=all)
 

\[ x \relax (t ) = -t^{2}+3 t +4 \]

Solution by Mathematica

Time used: 0.032 (sec). Leaf size: 13

DSolve[{x'[t]+2/(4-t)*x[t]==5,{x[0]==4}},x[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} x(t)\to -((t-4) (t+1)) \\ \end{align*}