Internal
problem
ID
[9118]
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.4
First
Order
Linear
Equations.
Page
15
Problem
number
:
1(h)
Date
solved
:
Tuesday, September 30, 2025 at 06:04:42 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)