Internal
problem
ID
[7684]
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
(iii)
Date
solved
:
Tuesday, September 30, 2025 at 04:55:54 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(y(x),x),x)+16*y(x) = 16*cos(4*x); ic:=[y(0) = 1, D(y)(0) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],{x,2}]+16*y[x]==16*Cos[4*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(16*y(x) - 16*cos(4*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)