Internal
problem
ID
[21063]
Book
:
A
FIRST
COURSE
IN
DIFFERENTIAL
EQUATIONS
FOR
SCIENTISTS
AND
ENGINEERS.
By
Russell
Herman.
University
of
North
Carolina
Wilmington.
LibreText.
compiled
on
06/09/2025
Section
:
Chapter
6,
Linear
systems.
Problems
section
6.9
Problem
number
:
8.c
Date
solved
:
Thursday, October 02, 2025 at 07:01:54 PM
CAS
classification
:
system_of_ODEs
With initial conditions
ode:=[diff(x(t),t) = 2*x(t)-y(t)+cos(t), diff(y(t),t) = 5*x(t)-2*y(t)+sin(t)]; ic:=[x(0) = 0, y(0) = 1]; dsolve([ode,op(ic)]);
ode={D[x[t],t]==2*x[t]-y[t]+Cos[t],D[y[t],t]==5*x[t]-2*y[t]+Sin[t]}; ic={x[0]==0,y[0]==1}; DSolve[{ode,ic},{x[t],y[t]},t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") y = Function("y") ode=[Eq(-2*x(t) + y(t) - cos(t) + Derivative(x(t), t),0),Eq(-5*x(t) + 2*y(t) - sin(t) + Derivative(y(t), t),0)] ics = {x(0): 0, y(0): 1} dsolve(ode,func=[x(t),y(t)],ics=ics)