Internal
problem
ID
[674]
Book
:
Differential
equations
and
linear
algebra,
3rd
ed.,
Edwards
and
Penney
Section
:
Section
1.3.
Slope
fields
and
solution
curves.
Page
26
Problem
number
:
18
Date
solved
:
Saturday, March 29, 2025 at 10:12:24 PM
CAS
classification
:
[_separable]
With initial conditions
ode:=y(x)*diff(y(x),x) = x-1; ic:=y(1) = 0; dsolve([ode,ic],y(x), singsol=all);
ode=y[x]*D[y[x],x] == -1+x; ic=y[1]==0; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x + y(x)*Derivative(y(x), x) + 1,0) ics = {y(1): 0} dsolve(ode,func=y(x),ics=ics)