Internal
problem
ID
[20464]
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
(E)
at
page
39
Problem
number
:
4
Date
solved
:
Thursday, October 02, 2025 at 06:03:06 PM
CAS
classification
:
[[_2nd_order, _with_linear_symmetries]]
ode:=diff(diff(y(x),x),x)+2*p*diff(y(x),x)+(p^2+q^2)*y(x) = exp(k*x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}]+2*p*D[y[x],x]+(p^2+q^2)*y[x]==Exp[k*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") k = symbols("k") p = symbols("p") q = symbols("q") y = Function("y") ode = Eq(2*p*Derivative(y(x), x) + (p**2 + q**2)*y(x) - exp(k*x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)