50.4.12 problem 12

Internal problem ID [7861]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 1. What is a differential equation. Section 1.5. Exact Equations. Page 20
Problem number : 12
Date solved : Sunday, March 30, 2025 at 12:32:19 PM
CAS classification : [_exact]

\begin{align*} 2 x y^{4}+\sin \left (y\right )+\left (4 x^{2} y^{3}+x \cos \left (y\right )\right ) y^{\prime }&=0 \end{align*}

Maple. Time used: 0.013 (sec). Leaf size: 18
ode:=2*x*y(x)^4+sin(y(x))+(4*x^2*y(x)^3+x*cos(y(x)))*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ x^{2} y^{4}+x \sin \left (y\right )+c_1 = 0 \]
Mathematica. Time used: 0.217 (sec). Leaf size: 20
ode=(2*x*y[x]^4+Sin[y[x]])+(4*x^2*y[x]^3+x*Cos[y[x]])*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [x^2 y(x)^4+x \sin (y(x))=c_1,y(x)\right ] \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(2*x*y(x)**4 + (4*x**2*y(x)**3 + x*cos(y(x)))*Derivative(y(x), x) + sin(y(x)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out