5.11 problem Problem 11

Internal problem ID [2723]

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.9, Exact Differential Equations. page 91
Problem number: Problem 11.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_exact]

\[ \boxed {y^{2}+\left (2 y x +\sin \left (y\right )\right ) y^{\prime }=-\cos \left (x \right )} \]

Solution by Maple

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

dsolve((y(x)^2+cos(x))+(2*x*y(x)+sin(y(x)))*diff(y(x),x)=0,y(x), singsol=all)
 

\[ x y \left (x \right )^{2}+\sin \left (x \right )-\cos \left (y \left (x \right )\right )+c_{1} = 0 \]

Solution by Mathematica

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

DSolve[(y[x]^2+Cos[x])+(2*x*y[x]+Sin[y[x]])*y'[x]==0,y[x],x,IncludeSingularSolutions -> True]
 

\[ \text {Solve}\left [x y(x)^2-\cos (y(x))+\sin (x)=c_1,y(x)\right ] \]