Internal
problem
ID
[23040]
Book
:
Applied
Differential
Equations.
By
Murray
R.
Spiegel.
3rd
edition.
1980.
Pearson.
ISBN
978-0130400970
Section
:
Chapter
10.
Systems
of
differential
equations
and
their
applications.
A
Exercises
at
page
499
Problem
number
:
2
(c)
Date
solved
:
Thursday, October 02, 2025 at 09:17:43 PM
CAS
classification
:
system_of_ODEs
With initial conditions
ode:=[diff(x(t),t)-x(t)+2*diff(y(t),t)+7*y(t) = 3*t-15, 2*diff(x(t),t)+x(t)+diff(y(t),t)+5*y(t) = 9*t-7]; ic:=[x(0) = 0, y(0) = -3]; dsolve([ode,op(ic)]);
ode={D[x[t],{t,1}]-x[t]+2*D[y[t],t]+7*y[t]==3*(t-5), 2*D[x[t],t]+x[t]+ D[y[t],{t,1}]+5*y[t]==9*t-7}; ic={x[0]==0,y[0]==-3}; DSolve[{ode,ic},{x[t],y[t]},t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") y = Function("y") ode=[Eq(-3*t - x(t) + 7*y(t) + Derivative(x(t), t) + 2*Derivative(y(t), t) + 15,0),Eq(-9*t + x(t) + 5*y(t) + 2*Derivative(x(t), t) + Derivative(y(t), t) + 7,0)] ics = {x(0): 0, y(0): -3} dsolve(ode,func=[x(t),y(t)],ics=ics)