Internal
problem
ID
[1565]
Book
:
Elementary
differential
equations
with
boundary
value
problems.
William
F.
Trench.
Brooks/Cole
2001
Section
:
Chapter
2,
First
order
equations.
Linear
first
order.
Section
2.1
Page
41
Problem
number
:
29
Date
solved
:
Tuesday, September 30, 2025 at 04:36:33 AM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)+y(x)/x = 2/x^2+1; ic:=[y(-1) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]+y[x]/x==2/x^2+1; ic=y[-1]==0; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(Derivative(y(x), x) - 1 + y(x)/x - 2/x**2,0) ics = {y(-1): 0} dsolve(ode,func=y(x),ics=ics)