Internal
problem
ID
[7012]
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
:
41
Date
solved
:
Wednesday, March 05, 2025 at 04:02:20 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) = 4, D(y)(1) = -2; 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]==4,Derivative[1][y][1] == -2}; 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): 4, Subs(Derivative(y(x), x), x, 1): -2} dsolve(ode,func=y(x),ics=ics)