Internal
problem
ID
[7787]
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
:
15
Date
solved
:
Tuesday, September 30, 2025 at 05:05:27 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(y(x),x),x)+3*diff(y(x),x)+2*y(x) = 3*sin(x); ic:=[y(0) = -9/10, D(y)(0) = -7/10]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],{x,2}]+3*D[y[x],x]+2*y[x]==3*Sin[x]; ic={y[0]==-9/10,Derivative[1][y][0] ==-7/10}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(2*y(x) - 3*sin(x) + 3*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) ics = {y(0): -9/10, Subs(Derivative(y(x), x), x, 0): -7/10} dsolve(ode,func=y(x),ics=ics)