Internal
problem
ID
[21236]
Book
:
A
Textbook
on
Ordinary
Differential
Equations
by
Shair
Ahmad
and
Antonio
Ambrosetti.
Second
edition.
ISBN
978-3-319-16407-6.
Springer
2015
Section
:
Chapter
5.
Second
order
equations.
Excercise
5.9
at
page
119
Problem
number
:
B
15
Date
solved
:
Thursday, October 02, 2025 at 07:27:10 PM
CAS
classification
:
[[_2nd_order, _missing_x]]
With initial conditions
ode:=diff(diff(x(t),t),t)+diff(x(t),t)-2*x(t) = 0; ic:=[x(0) = a, D(x)(0) = 1]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],{t,2}]+D[x[t],t]-2*x[t]==0; ic={x[0]==a,Derivative[1][x][0] ==1}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") a = symbols("a") x = Function("x") ode = Eq(-2*x(t) + Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) ics = {x(0): a, Subs(Derivative(x(t), t), t, 0): 1} dsolve(ode,func=x(t),ics=ics)