Internal
problem
ID
[13713]
Book
:
AN
INTRODUCTION
TO
ORDINARY
DIFFERENTIAL
EQUATIONS
by
JAMES
C.
ROBINSON.
Cambridge
University
Press
2004
Section
:
Chapter
18,
The
variation
of
constants
formula.
Exercises
page
168
Problem
number
:
18.1
(iii)
Date
solved
:
Wednesday, March 05, 2025 at 10:13:28 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)+4*y(x) = cot(2*x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}]+4*y[x]==Cot[2*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(4*y(x) + Derivative(y(x), (x, 2)) - 1/tan(2*x),0) ics = {} dsolve(ode,func=y(x),ics=ics)