Internal
problem
ID
[19815]
Book
:
Elementary
Differential
Equations.
By
R.L.E.
Schwarzenberger.
Chapman
and
Hall.
London.
First
Edition
(1969)
Section
:
Chapter
5.
Linear
equations.
Exercises
at
page
85
Problem
number
:
7
(v)
Date
solved
:
Thursday, October 02, 2025 at 04:44:05 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(x(t),t),t)+4*diff(x(t),t)+3*x(t) = sin(t)*t; ic:=[x(0) = 0, D(x)(0) = 1]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],{t,2}]+4*D[x[t],t]+3*x[t]==t*Sin[t]; ic={x[0]==0,Derivative[1][x][0] == 1}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(-t*sin(t) + 3*x(t) + 4*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) ics = {x(0): 0, Subs(Derivative(x(t), t), t, 0): 1} dsolve(ode,func=x(t),ics=ics)