Internal
problem
ID
[14255]
Book
:
Ordinary
Differential
Equations
by
Charles
E.
Roberts,
Jr.
CRC
Press.
2010
Section
:
Chapter
1.
Introduction.
Exercises
1.3,
page
27
Problem
number
:
2
Date
solved
:
Wednesday, March 05, 2025 at 10:41:31 PM
CAS
classification
:
[[_linear, `class A`]]
ode:=diff(y(x),x)+y(x) = x^2+2*x-1; dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]+y[x]==x^2+2*x-1; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x**2 - 2*x + y(x) + Derivative(y(x), x) + 1,0) ics = {} dsolve(ode,func=y(x),ics=ics)