Internal
problem
ID
[38]
Book
:
Elementary
Differential
Equations.
By
C.
Henry
Edwards,
David
E.
Penney
and
David
Calvis.
6th
edition.
2008
Section
:
Chapter
1.
First
order
differential
equations.
Section
1.3.
Problems
at
page
27
Problem
number
:
22
Date
solved
:
Tuesday, September 30, 2025 at 03:39:06 AM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(y(x),x) = y(x)-x; ic:=[y(4) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]==y[x]-x; ic={y[4]==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),0) ics = {y(4): 0} dsolve(ode,func=y(x),ics=ics)