1.207 problem 208

Internal problem ID [8544]

Book: Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section: Chapter 1, linear first order
Problem number: 208.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_Bernoulli]

\[ \boxed {y^{\prime } y+a y^{2}=b \cos \left (c +x \right )} \]

Solution by Maple

Time used: 0.031 (sec). Leaf size: 116

dsolve(y(x)*diff(y(x),x)+a*y(x)^2-b*cos(x+c)=0,y(x), singsol=all)
 

\begin{align*} y \left (x \right ) = \frac {\sqrt {\left (4 a^{2}+1\right ) \left (4 \,{\mathrm e}^{-2 a x} c_{1} a^{2}+4 \cos \left (x +c \right ) a b +{\mathrm e}^{-2 a x} c_{1} +2 \sin \left (x +c \right ) b \right )}}{4 a^{2}+1} y \left (x \right ) = -\frac {\sqrt {\left (4 a^{2}+1\right ) \left (4 \,{\mathrm e}^{-2 a x} c_{1} a^{2}+4 \cos \left (x +c \right ) a b +{\mathrm e}^{-2 a x} c_{1} +2 \sin \left (x +c \right ) b \right )}}{4 a^{2}+1} \end{align*}

Solution by Mathematica

Time used: 4.754 (sec). Leaf size: 120

DSolve[y[x]*y'[x]+a*y[x]^2-b*Cos[x+c]==0,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -\frac {\sqrt {4 a b \cos (c+x)+e^{-2 a x} \left (4 a^2 c_1+2 b e^{2 a x} \sin (c+x)+c_1\right )}}{\sqrt {4 a^2+1}} y(x)\to \frac {\sqrt {4 a b \cos (c+x)+e^{-2 a x} \left (4 a^2 c_1+2 b e^{2 a x} \sin (c+x)+c_1\right )}}{\sqrt {4 a^2+1}} \end{align*}