Internal
problem
ID
[4108]
Book
:
Theory
and
solutions
of
Ordinary
Differential
equations,
Donald
Greenspan,
1960
Section
:
Chapter
2.
First
order
equations.
Exercises
at
page
14
Problem
number
:
2(h)
Date
solved
:
Tuesday, March 04, 2025 at 05:26:18 PM
CAS
classification
:
[_quadrature]
With initial conditions
ode:=diff(y(x),x) = x+1/x; ic:=y(-2) = 5; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]==x+1/x; ic=y[-2]==5; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x + Derivative(y(x), x) - 1/x,0) ics = {y(-2): 5} dsolve(ode,func=y(x),ics=ics)