Internal
problem
ID
[13821]
Book
:
Differential
equations
and
the
calculus
of
variations
by
L.
ElSGOLTS.
MIR
PUBLISHERS,
MOSCOW,
Third
printing
1977.
Section
:
Chapter
1,
First-Order
Differential
Equations.
Problems
page
88
Problem
number
:
Problem
59
Date
solved
:
Monday, March 31, 2025 at 08:14:08 AM
CAS
classification
:
[_linear]
ode:=(x^2-1)*diff(y(x),x)+2*x*y(x)-cos(x) = 0; dsolve(ode,y(x), singsol=all);
ode=(x^2-1)*D[y[x],x]+2*x*y[x]-Cos[x]==0; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(2*x*y(x) + (x**2 - 1)*Derivative(y(x), x) - cos(x),0) ics = {} dsolve(ode,func=y(x),ics=ics)