Internal
problem
ID
[17143]
Book
:
INTRODUCTORY
DIFFERENTIAL
EQUATIONS.
Martha
L.
Abell,
James
P.
Braselton.
Fourth
edition
2014.
ElScAe.
2014
Section
:
Chapter
1.
Introduction
to
Differential
Equations.
Review
exercises,
page
23
Problem
number
:
20
Date
solved
:
Thursday, October 02, 2025 at 01:44:59 PM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(y(x),x)+2*y(x) = x^2; ic:=[y(0) = 1]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]+2*y[x]==x^2; ic={y[0]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x**2 + 2*y(x) + Derivative(y(x), x),0) ics = {y(0): 1} dsolve(ode,func=y(x),ics=ics)