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