Internal
problem
ID
[6394]
Book
:
Basic
Training
in
Mathematics.
By
R.
Shankar.
Plenum
Press.
NY.
1995
Section
:
Chapter
10,
Differential
equations.
Section
10.2,
ODEs
with
constant
Coefficients.
page
307
Problem
number
:
10.2.11
(i)
Date
solved
:
Wednesday, March 05, 2025 at 12:38:48 AM
CAS
classification
:
[[_2nd_order, _with_linear_symmetries]]
With initial conditions
ode:=diff(diff(y(x),x),x)-diff(y(x),x)-2*y(x) = exp(2*x); ic:=y(0) = 1, D(y)(0) = 0; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],{x,2}]-D[y[x],x]-2*y[x]==Exp[2*x]; ic={y[0]==1,Derivative[1][y][0] ==0}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-2*y(x) - exp(2*x) - Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) ics = {y(0): 1, Subs(Derivative(y(x), x), x, 0): 0} dsolve(ode,func=y(x),ics=ics)