Internal
problem
ID
[7013]
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
:
42
Date
solved
:
Sunday, March 30, 2025 at 11:34:00 AM
CAS
classification
:
[[_2nd_order, _with_linear_symmetries]]
With initial conditions
ode:=diff(diff(y(x),x),x)-2*diff(y(x),x)-3*y(x) = 6*x+4; ic:=y(-1) = 0, D(y)(-1) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],{x,2}]-2*D[y[x],x]-3*y[x]==6*x+4; ic={y[-1]==0,Derivative[1][y][-1] == 1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-6*x - 3*y(x) - 2*Derivative(y(x), x) + Derivative(y(x), (x, 2)) - 4,0) ics = {y(-1): 0, Subs(Derivative(y(x), x), x, -1): 1} dsolve(ode,func=y(x),ics=ics)