Internal
problem
ID
[18092]
Book
:
DIFFERENTIAL
EQUATIONS
WITH
APPLICATIONS
AND
HISTORICAL
NOTES
by
George
F.
Simmons.
3rd
edition.
2017.
CRC
press,
Boca
Raton
FL.
Section
:
Chapter
2.
First
order
equations.
Section
10
(Linear
equations).
Problems
at
page
82
Problem
number
:
2
(c)
Date
solved
:
Thursday, March 13, 2025 at 11:35:52 AM
CAS
classification
:
[_linear]
ode:=(x^2+1)*diff(y(x),x)+2*x*y(x) = cot(x); dsolve(ode,y(x), singsol=all);
ode=(1+x^2)*D[y[x],x]+2*x*y[x]==Cot[x]; 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) - 1/tan(x),0) ics = {} dsolve(ode,func=y(x),ics=ics)