Internal
problem
ID
[1225]
Book
:
Elementary
differential
equations
and
boundary
value
problems,
10th
ed.,
Boyce
and
DiPrima
Section
:
Miscellaneous
problems,
end
of
chapter
2.
Page
133
Problem
number
:
8
Date
solved
:
Saturday, March 29, 2025 at 10:48:13 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=2*y(x)+x*diff(y(x),x) = sin(x)/x; ic:=y(2) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=2*y[x]+x*D[y[x],x] == Sin[x]/x; ic=y[2]==1; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x*Derivative(y(x), x) + 2*y(x) - sin(x)/x,0) ics = {y(2): 1} dsolve(ode,func=y(x),ics=ics)