Internal
problem
ID
[19110]
Book
:
A
Text
book
for
differentional
equations
for
postgraduate
students
by
Ray
and
Chaturvedi.
First
edition,
1958.
BHASKAR
press.
INDIA
Section
:
Chapter
III.
Ordinary
linear
differential
equations
with
constant
coefficients.
Exercise
III
(F)
at
page
42
Problem
number
:
2
Date
solved
:
Monday, March 31, 2025 at 06:48:42 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)+a^2*y(x) = cos(a*x)+cos(b*x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}]+a^2*y[x]==Cos[a*x]+Cos[b*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") b = symbols("b") y = Function("y") ode = Eq(a**2*y(x) - cos(a*x) - cos(b*x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)