Internal
problem
ID
[8215]
Book
:
A
course
in
Ordinary
Differential
Equations.
by
Stephen
A.
Wirkus,
Randall
J.
Swift.
CRC
Press
NY.
2015.
2nd
Edition
Section
:
Chapter
8.
Series
Methods.
section
8.2.
The
Power
Series
Method.
Problems
Page
603
Problem
number
:
2.
direct
method
Date
solved
:
Sunday, March 30, 2025 at 12:48:47 PM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(y(x),x)-2*y(x) = x^2; ic:=y(1) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]-2*y[x]==x^2; ic={y[1]==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(1): 1} dsolve(ode,func=y(x),ics=ics)