1.9 problem 9

Internal problem ID [4575]

Book: Engineering Mathematics. By K. A. Stroud. 5th edition. Industrial press Inc. NY. 2001
Section: Program 24. First order differential equations. Test excercise 24. page 1067
Problem number: 9.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime }+y \tanh \relax (x )-2 \sinh \relax (x )=0} \end {gather*}

Solution by Maple

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

dsolve(diff(y(x),x)+y(x)*tanh(x)=2*sinh(x),y(x), singsol=all)
 

\[ y \relax (x ) = \frac {\frac {\cosh \left (2 x \right )}{2}+c_{1}}{\cosh \relax (x )} \]

Solution by Mathematica

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

DSolve[y'[x]+y[x]*Tanh[x]==2*Sinh[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {1}{2} \text {sech}(x) (\cosh (2 x)+2 c_1) \\ \end{align*}