Internal
problem
ID
[4271]
Book
:
Differential
equations
with
applications
and
historial
notes,
George
F.
Simmons.
Second
edition.
1971
Section
:
Chapter
2,
section
11,
page
49
Problem
number
:
2(c)
Date
solved
:
Tuesday, March 04, 2025 at 06:03:47 PM
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)