Internal
problem
ID
[13655]
Book
:
AN
INTRODUCTION
TO
ORDINARY
DIFFERENTIAL
EQUATIONS
by
JAMES
C.
ROBINSON.
Cambridge
University
Press
2004
Section
:
Chapter
9,
First
order
linear
equations
and
the
integrating
factor.
Exercises
page
86
Problem
number
:
9.1
(iv)
Date
solved
:
Wednesday, March 05, 2025 at 10:10:07 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)+y(x)*exp(-x) = 1; ic:=y(0) = exp(1); dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]+Exp[-x]*y[x]==1; ic={y[0]==Exp[1]}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x)*exp(-x) + Derivative(y(x), x) - 1,0) ics = {y(0): E} dsolve(ode,func=y(x),ics=ics)