Internal
problem
ID
[6493]
Book
:
Engineering
Mathematics.
By
K.
A.
Stroud.
5th
edition.
Industrial
press
Inc.
NY.
2001
Section
:
Program
25.
Second
order
differential
equations.
Further
problems
25.
page
1094
Problem
number
:
7
Date
solved
:
Wednesday, March 05, 2025 at 12:52:34 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)+4*diff(y(x),x)+4*y(x) = 2*cos(x)^2; dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}]+4*D[y[x],x]+4*y[x]==2*Cos[x]^2; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(4*y(x) - 2*cos(x)**2 + 4*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)