Internal
problem
ID
[718]
Book
:
Differential
equations
and
linear
algebra,
3rd
ed.,
Edwards
and
Penney
Section
:
Section
1.5.
Linear
first
order
equations.
Page
56
Problem
number
:
15
Date
solved
:
Tuesday, September 30, 2025 at 04:06:59 AM
CAS
classification
:
[_separable]
With initial conditions
ode:=2*x*y(x)+diff(y(x),x) = x; ic:=[y(0) = -2]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=2*x*y[x]+D[y[x],x] == x; ic=y[0]==-2; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(2*x*y(x) - x + Derivative(y(x), x),0) ics = {y(0): -2} dsolve(ode,func=y(x),ics=ics)