Internal
problem
ID
[6397]
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
(iv)
Date
solved
:
Wednesday, March 05, 2025 at 12:38:58 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(y(x),x),x)-y(x) = cosh(x); ic:=y(0) = 1, D(y)(0) = 0; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],{x,2}]-y[x]==Cosh[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(-y(x) - cosh(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)