Internal
problem
ID
[6996]
Book
:
A
First
Course
in
Differential
Equations
with
Modeling
Applications
by
Dennis
G.
Zill.
12
ed.
Metric
version.
2024.
Cengage
learning.
Section
:
Chapter
1.
Introduction
to
differential
equations.
Review
problems
at
page
34
Problem
number
:
23
Date
solved
:
Sunday, March 30, 2025 at 11:33:26 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)+y(x) = 2*cos(x)-2*sin(x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}]+y[x]==2*Cos[x]-2*Sin[x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x) + 2*sin(x) - 2*cos(x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)