Internal
problem
ID
[20470]
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
:
6
Date
solved
:
Thursday, October 02, 2025 at 06:03:11 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)+y(x) = sin(3*x)-cos(1/2*x)^2; dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}]+y[x]==Sin[3*x]-Cos[1/2*x]^2; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x) - sin(3*x) + cos(x/2)**2 + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)