Internal
problem
ID
[9217]
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.
Problems
for
Review
and
Discovery.
Page
53
Problem
number
:
2(g)
Date
solved
:
Tuesday, September 30, 2025 at 06:15:12 PM
CAS
classification
:
[_separable]
With initial conditions
ode:=2*x*cos(y(x))-x^2*sin(y(x))*diff(y(x),x) = 0; ic:=[y(1) = 1]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=2*x*Cos[y[x]]-x^2*Sin[y[x]]*D[y[x],x]==0; ic={y[1]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x**2*sin(y(x))*Derivative(y(x), x) + 2*x*cos(y(x)),0) ics = {y(1): 1} dsolve(ode,func=y(x),ics=ics)