1.6 problem 20

Internal problem ID [12579]

Book: Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section: Chapter 1. Introduction. Exercises page 14
Problem number: 20.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {y^{\prime }+\frac {1}{2 y}=0} \]

Solution by Maple

Time used: 0.016 (sec). Leaf size: 23

dsolve(diff(y(x),x)+1/(2*y(x))=0,y(x), singsol=all)
 

\begin{align*} y \left (x \right ) &= \sqrt {c_{1} -x} \\ y \left (x \right ) &= -\sqrt {c_{1} -x} \\ \end{align*}

Solution by Mathematica

Time used: 0.113 (sec). Leaf size: 35

DSolve[y'[x]+1/(2*y[x])==0,y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\begin{align*} y(x)\to -\sqrt {-x+2 c_1} \\ y(x)\to \sqrt {-x+2 c_1} \\ \end{align*}