Internal
problem
ID
[6197]
Book
:
Mathematical
Methods
in
the
Physical
Sciences.
third
edition.
Mary
L.
Boas.
John
Wiley.
2006
Section
:
Chapter
8,
Ordinary
differential
equations.
Section
7.
Other
second-Order
equations.
page
435
Problem
number
:
18
Date
solved
:
Wednesday, March 05, 2025 at 12:24:22 AM
CAS
classification
:
[[_2nd_order, _exact, _linear, _nonhomogeneous]]
ode:=x^2*diff(diff(y(x),x),x)+x*diff(y(x),x)-y(x) = x-1/x; dsolve(ode,y(x), singsol=all);
ode=x^2*D[y[x],{x,2}]+x*D[y[x],x]-y[x]==x-1/x; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x**2*Derivative(y(x), (x, 2)) + x*Derivative(y(x), x) - x - y(x) + 1/x,0) ics = {} dsolve(ode,func=y(x),ics=ics)