Internal
problem
ID
[18815]
Book
:
Introductory
Course
On
Differential
Equations
by
Daniel
A
Murray.
Longmans
Green
and
Co.
NY.
1924
Section
:
Chapter
VI.
Linear
equations
with
constant
coefficients.
problems
at
page
77
Problem
number
:
Ex.
2
Date
solved
:
Monday, March 31, 2025 at 06:15:35 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)+a^2*y(x) = cos(a*x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}]+a^2*y[x]==Cos[a*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") y = Function("y") ode = Eq(a**2*y(x) - cos(a*x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)