Internal
problem
ID
[1289]
Book
:
Elementary
differential
equations
and
boundary
value
problems,
10th
ed.,
Boyce
and
DiPrima
Section
:
Chapter
3,
Second
order
linear
equations,
3.3
Complex
Roots
of
the
Characteristic
Equation
,
page
164
Problem
number
:
23
Date
solved
:
Tuesday, March 04, 2025 at 12:28:01 PM
CAS
classification
:
[[_2nd_order, _missing_x]]
With initial conditions
ode:=diff(diff(u(x),x),x)-diff(u(x),x)+2*u(x) = 0; ic:=u(0) = 2, D(u)(0) = 0; dsolve([ode,ic],u(x), singsol=all);
ode=D[u[x],{x,2}]+4*D[u[x],x]+5*u[x]==0; ic={u[0]==2,Derivative[1][u][0]==0}; DSolve[{ode,ic},u[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") u = Function("u") ode = Eq(2*u(x) - Derivative(u(x), x) + Derivative(u(x), (x, 2)),0) ics = {u(0): 2, Subs(Derivative(u(x), x), x, 0): 0} dsolve(ode,func=u(x),ics=ics)