Differential EquationsIntroduction to Systems2 of 3
Introduction to Systems · 2

Solving Systems by Elimination

We want to solve a system of two first-order differential equations where each variable's rate of change depends on the other variable.

1

Eliminating One Variable by Substitution

To solve the coupled system

x′=2x+y,y′=3x+4y\displaystyle \begin{aligned} \xvar{x'} &= 2\xvar{x} + \yvar{y}, \\ \yvar{y'} &= 3\xvar{x} + 4\yvar{y} \end{aligned}

we cannot solve either equation on its own, because finding x\xvar{x} requires knowing y\yvar{y} and finding y\yvar{y} requires knowing x\xvar{x}. Since the top equation has a single +y+\yvar{y}, we can isolate y\yvar{y} and substitute it into the bottom equation to get a single equation in x\xvar{x} alone.

Turning a Coupled System into One Equation
x\xvar{x}
y\yvar{y}
x′\xvar{x'}
=2x+y= 2\xvar{x} + \yvar{y}
y′\yvar{y'}
=3x+4y= 3\xvar{x} + 4\yvar{y}
Text solution
Isolate y\yvar{y} in the first equation and differentiateSolving x′=2x+y\xvar{x'} = 2\xvar{x} + \yvar{y} for y\yvar{y} and taking the derivative of both sides writes both y\yvar{y} and y′\yvar{y'} entirely in terms of x\xvar{x}:
y\displaystyle \yvar{y} =x′−2x  ⟹  y′\displaystyle = \xvar{x'} - 2\xvar{x} \implies \yvar{y'} =x′′−2x′\displaystyle = \xvar{x''} - 2\xvar{x'}
Substitute y\yvar{y} and y′\yvar{y'} into the second equationReplacing y\yvar{y} and y′\yvar{y'} in y′=3x+4y\yvar{y'} = 3\xvar{x} + 4\yvar{y} gets rid of y\yvar{y} and leaves a single second-order equation for x\xvar{x}:
x′′−2x′⏟y′=3x+4(x′−2x)⏟yx′′−2x′=3x+4x′−8xx′′−2x′=4x′−5xx′′−6x′+5x=0\displaystyle \begin{aligned} \underbrace{\xvar{x''} - 2\xvar{x'}}_{\yvar{y'}} &= 3\xvar{x} + 4\underbrace{(\xvar{x'} - 2\xvar{x})}_{\yvar{y}} \\ \xvar{x''} - 2\xvar{x'} &= 3\xvar{x} + 4\xvar{x'} - 8\xvar{x} \\ \xvar{x''} - 2\xvar{x'} &= 4\xvar{x'} - 5\xvar{x} \\ \xvar{x''} - 6\xvar{x'} + 5\xvar{x} &= 0 \end{aligned}
2

Finding Both Solutions and Using Initial Values

Now we want to solve x′′−6x′+5x=0\xvar{x''} - 6\xvar{x'} + 5\xvar{x} = 0 to find both x(t)\xvar{x(t)} and y(t)\yvar{y(t)}, and then use the starting values x(0)=3\xvar{x(0)} = 3 and y(0)=1\yvar{y(0)} = 1 to find the exact solutions.

Finding Both Solutions and Using Initial Values
x′′−6x′+5x\displaystyle \xvar{x''} - 6\xvar{x'} + 5\xvar{x} =0\displaystyle = 0
  y=x′−2x  \displaystyle \htmlClass{lc-mute}{\boxed{\htmlClass{lc-ink}{\;\yvar{y} = \xvar{x'} - 2\xvar{x}\;}}}
x(0)=3x(t)=  ?y(0)=1y(t)=  ?\displaystyle \begin{alignedat}{2} \xvar{x(0)} &= 3 &\qquad \xvar{x(t)} &= \;? \\ \yvar{y(0)} &= 1 & \yvar{y(t)} &= \;? \end{alignedat}
Text solution
Solve the second-order equation for x(t)\xvar{x(t)}Plugging erte^{rt} into x′′−6x′+5x=0\xvar{x''} - 6\xvar{x'} + 5\xvar{x} = 0 turns each derivative into a power of rr and gives the general solution for x(t)\xvar{x(t)}:
r2−6r+5=0(r−1)(r−5)=0  ⟹  r=1,  5\displaystyle \begin{aligned} r^2 - 6r + 5 &= 0 \\ (r - 1)(r - 5) &= 0 \implies r = 1, \; 5 \end{aligned}
x(t)\displaystyle \xvar{x(t)} =c1et+c2e5t\displaystyle = c_1 e^t + c_2 e^{5t}
Plug x\xvar{x} and x′\xvar{x'} back into the equation for y\yvar{y}Differentiating x(t)\xvar{x(t)} and substituting both into y=x′−2x\yvar{y} = \xvar{x'} - 2\xvar{x} gives y(t)\yvar{y(t)} using the same two constants c1c_1 and c2c_2:
x′(t)\displaystyle \xvar{x'(t)} =c1et+5c2e5t\displaystyle = c_1 e^t + 5c_2 e^{5t}
y(t)=(c1et+5c2e5t)⏟x′−2(c1et+c2e5t)⏟x=−c1et+3c2e5t\displaystyle \begin{aligned} \yvar{y(t)} &= \underbrace{(c_1 e^t + 5c_2 e^{5t})}_{\xvar{x'}} \\ &\quad - 2\underbrace{(c_1 e^t + c_2 e^{5t})}_{\xvar{x}} \\ &= -c_1 e^t + 3c_2 e^{5t} \end{aligned}
Use x(0)=3\xvar{x(0)} = 3 and y(0)=1\yvar{y(0)} = 1 to solve for c1c_1 and c2c_2Plugging t=0t = 0 into x(t)\xvar{x(t)} and y(t)\yvar{y(t)} gives two linear equations we can solve for the constants:
x(0)=c1+c2=3y(0)=−c1+3c2=1  ⟹  4c2=4  ⟹  c2=1,c1=2\displaystyle \begin{aligned} \xvar{x(0)} &= c_1 + c_2 = 3 \\ \yvar{y(0)} &= -c_1 + 3c_2 = 1 \end{aligned} \implies 4c_2 = 4 \implies c_2 = 1, \quad c_1 = 2

Putting c1=2c_1 = 2 and c2=1c_2 = 1 back in gives the exact solutions x(t)=2et+e5t\xvar{x(t)} = 2e^t + e^{5t} and y(t)=−2et+3e5t\yvar{y(t)} = -2e^t + 3e^{5t}.

Because the top equation gives x′(0)=2x(0)+y(0)\xvar{x'(0)} = 2\xvar{x(0)} + \yvar{y(0)}, knowing y\yvar{y}'s starting value y(0)\yvar{y(0)} along with x(0)\xvar{x(0)} also tells us x\xvar{x}'s starting slope x′(0)\xvar{x'(0)}. That is enough to determine both x(t)\xvar{x(t)} and y(t)\yvar{y(t)} from the same two constants c1c_1 and c2c_2.

Even with x's starting value pinned in place, changing y's starting value sets x's starting slope and fixes both curves at once through the same two constants.
3

Eliminating with the Derivative Operator D\oper{D}

Now consider a system where neither variable has a clean coefficient of 11:

x′=4x−3y,y′=2x−3y\displaystyle \begin{aligned} \xvar{x'} &= 4\xvar{x} - 3\yvar{y}, \\ \yvar{y'} &= 2\xvar{x} - 3\yvar{y} \end{aligned}

Isolating y\yvar{y} in the top equation would force us to divide by 33 and carry fractions through our derivatives. Instead, we can line the variables up in columns and cancel y\yvar{y} directly, just like elimination in algebra.

Eliminating with the Derivative Operator D
x′=4x−3yy′=2x−3y\displaystyle \begin{aligned} \xvar{x'} &= 4\xvar{x} - 3\yvar{y} \\ \yvar{y'} &= 2\xvar{x} - 3\yvar{y} \end{aligned}
x(t)\displaystyle \xvar{x(t)} =  ?y(t)\displaystyle = \;?\qquad \yvar{y(t)} =  ?\displaystyle = \;?
Text solution
Line up the variables and write derivatives as D\oper{D}Moving all terms to the left and writing D⏟ddt\underbrace{\oper{D}}_{\oper{\tfrac{d}{dt}}} for taking a derivative lets us group the x\xvar{x} and y\yvar{y} terms into columns:
(x′−4x)+3y=0−2x+(y′+3y)=0  ⟹  (D−4)x+3y=0−2x+(D+3)y=0\displaystyle \begin{aligned} (\xvar{x'} - 4\xvar{x}) + 3\yvar{y} &= 0 \\ -2\xvar{x} + (\yvar{y'} + 3\yvar{y}) &= 0 \end{aligned} \implies \begin{aligned} \oper{(D - 4)}\xvar{x} + 3\yvar{y} &= 0 \\ -2\xvar{x} + \oper{(D + 3)}\yvar{y} &= 0 \end{aligned}
Match the y\yvar{y} terms and subtract straight downApplying D+3\oper{D + 3} to the top equation and multiplying the bottom equation by 33 gives both equations a 3(D+3)y3\oper{(D + 3)}\yvar{y} term that cancels when we subtract:
(D+3)(D−4)x+(D+3)3y=0−6x+3(D+3)y=0\displaystyle \begin{aligned} \oper{(D + 3)(D - 4)}\xvar{x} + \oper{(D + 3)}3\yvar{y} &= 0 \\ -6\xvar{x} + 3\oper{(D + 3)}\yvar{y} &= 0 \end{aligned}
[(D+3)(D−4)−(−6)]x=0(D2−D−12+6)x=0(D2−D−6)x=0\displaystyle \begin{aligned} \bigl[\oper{(D + 3)(D - 4)} - (-6)\bigr]\xvar{x} &= 0 \\ \oper{(D^2 - D - 12 + 6)}\xvar{x} &= 0 \\ \oper{(D^2 - D - 6)}\xvar{x} &= 0 \end{aligned}
Read off the characteristic equation for x(t)\xvar{x(t)}Because each D\oper{D} brings down a factor of rr when applied to erte^{rt}, the polynomial in D\oper{D} gives the characteristic equation directly:
r2−r−6=0(r−3)(r+2)=0  ⟹  r=3,  −2\displaystyle \begin{aligned} r^2 - r - 6 &= 0 \\ (r - 3)(r + 2) &= 0 \implies r = 3, \; -2 \end{aligned}
x(t)\displaystyle \xvar{x(t)} =c1e3t+c2e−2t\displaystyle = c_1 e^{3t} + c_2 e^{-2t}
Solve the top equation for y(t)\yvar{y(t)}Rearranging x′−4x+3y=0\xvar{x'} - 4\xvar{x} + 3\yvar{y} = 0 for y\yvar{y} at the very end lets us plug in x(t)\xvar{x(t)} and x′(t)=3c1e3t−2c2e−2t\xvar{x'(t)} = 3c_1 e^{3t} - 2c_2 e^{-2t} without differentiating any fractions:
y(t)=13(4x−x′)=13[4(c1e3t+c2e−2t)−(3c1e3t−2c2e−2t)]=13c1e3t+2c2e−2t\displaystyle \begin{aligned} \yvar{y(t)} &= \tfrac{1}{3}(4\xvar{x} - \xvar{x'}) \\ &= \tfrac{1}{3}\bigl[4(c_1 e^{3t} + c_2 e^{-2t}) \\ &\quad - (3c_1 e^{3t} - 2c_2 e^{-2t})\bigr] \\ &= \tfrac{1}{3}c_1 e^{3t} + 2c_2 e^{-2t} \end{aligned}
4

Solving a System with a Forcing Term

Next, we want to solve a system where one of the equations has an extra 2t\forced{2t} forcing term on the right:

x′=3x−y+2t,y′=4x−2y\displaystyle \begin{aligned} \xvar{x'} &= 3\xvar{x} - \yvar{y} + \forced{2t}, \\ \yvar{y'} &= 4\xvar{x} - 2\yvar{y} \end{aligned}

When we apply a derivative operator to eliminate y\yvar{y}, we have to apply that same operator to the 2t\forced{2t} forcing term on the right-hand side.

Solving a System with a Forcing Term
x′=3x−y+2ty′=4x−2y\displaystyle \begin{aligned} \xvar{x'} &= 3\xvar{x} - \yvar{y} + \forced{2t} \\ \yvar{y'} &= 4\xvar{x} - 2\yvar{y} \end{aligned}
x(t)\displaystyle \xvar{x(t)} =  ?y(t)\displaystyle = \;?\qquad \yvar{y(t)} =  ?\displaystyle = \;?
Text solution
Eliminate y\yvar{y} by applying D+2\oper{D + 2} to both sides of the top equationAfter lining up x\xvar{x} and y\yvar{y} on the left, applying D+2\oper{D + 2} to the top equation takes the derivative of 2t\forced{2t} and adds 2\oper{2} times 2t\forced{2t} on the right:
(D−3)x+y=2t−4x+(D+2)y=0\displaystyle \begin{aligned} \oper{(D - 3)}\xvar{x} + \yvar{y} &= \forced{2t} \\ -4\xvar{x} + \oper{(D + 2)}\yvar{y} &= 0 \end{aligned}
[(D+2)(D−3)−(−4)]x=(D+2)(2t)(D2−D−6+4)x=D(2t)⏟2+2(2t)⏟4t(D2−D−2)x=4t+2\displaystyle \begin{aligned} \bigl[\oper{(D + 2)(D - 3)} - (-4)\bigr]\xvar{x} &= \oper{(D + 2)}\forced{(2t)} \\ \oper{(D^2 - D - 6 + 4)}\xvar{x} &= \underbrace{\oper{D}\forced{(2t)}}_{\forced{2}} + \underbrace{\oper{2}\forced{(2t)}}_{\forced{4t}} \\ \oper{(D^2 - D - 2)}\xvar{x} &= \forced{4t + 2} \end{aligned}
Solve for the homogeneous and particular parts of x(t)\xvar{x(t)}Factoring r2−r−2=(r−2)(r+1)=0r^2 - r - 2 = (r - 2)(r + 1) = 0 gives xh(t)=c1e2t+c2e−t\xvar{x_h(t)} = c_1 e^{2t} + c_2 e^{-t}, and plugging a linear guess xp=At+B\xvar{x_p} = \forced{At + B} into x′′−x′−2x=4t+2\xvar{x''} - \xvar{x'} - 2\xvar{x} = \forced{4t + 2} gives the particular solution:
0−A−2(At+B)=4t+2−2At+(−A−2B)=4t+2  ⟹  A=−2,B=0\displaystyle \begin{aligned} 0 - A - 2\forced{(At + B)} &= \forced{4t + 2} \\ -2At + (-A - 2B) &= \forced{4t + 2} \\ \implies A = -2, \quad B = 0 & \end{aligned}
Putting xh(t)\xvar{x_h(t)} and xp(t)=−2t\xvar{x_p(t)} = \forced{-2t} together gives x(t)=c1e2t+c2e−t−2t\xvar{x(t)} = c_1 e^{2t} + c_2 e^{-t} \forced{- 2t}.
Use the original forced equation to find y(t)\yvar{y(t)}Solving x′=3x−y+2t\xvar{x'} = 3\xvar{x} - \yvar{y} + \forced{2t} for y\yvar{y} (keeping the +2t+\forced{2t} forcing term) and plugging in x(t)\xvar{x(t)} and x′(t)=2c1e2t−c2e−t−2\xvar{x'(t)} = 2c_1 e^{2t} - c_2 e^{-t} \forced{- 2} gives y(t)\yvar{y(t)}:
y(t)=3x−x′+2t=3(c1e2t+c2e−t−2t)−(2c1e2t−c2e−t−2)+2t=c1e2t+4c2e−t−4t+2\displaystyle \begin{aligned} \yvar{y(t)} &= 3\xvar{x} - \xvar{x'} + \forced{2t} \\ &= 3(c_1 e^{2t} + c_2 e^{-t} \forced{- 2t}) \\ &\quad - (2c_1 e^{2t} - c_2 e^{-t} \forced{- 2}) + \forced{2t} \\ &= c_1 e^{2t} + 4c_2 e^{-t} \forced{- 4t + 2} \end{aligned}

For any linear forcing function f(t)\forced{f(t)}, applying D+2\oper{D + 2} multiplies the line by 2\oper{2} and adds its slope Df(t)\oper{D}\forced{f(t)}. That gives a new line (D+2)f(t)\oper{(D + 2)}\forced{f(t)} on the right-hand side, which is why the particular solutions xp(t)\xvar{x_p(t)} and yp(t)\yvar{y_p(t)} are also linear.

Doubling a forcing line through the origin makes it twice as steep, while taking its derivative adds its slope as a vertical shift.
5

Canceling y′\yvar{y'} to Find y(t)\yvar{y(t)}

Sometimes both equations in a system contain y′\yvar{y'}:

x′−2x+y′=0,2x+y′−3y=0\displaystyle \begin{aligned} \xvar{x'} - 2\xvar{x} + \yvar{y'} &= 0, \\ 2\xvar{x} + \yvar{y'} - 3\yvar{y} &= 0 \end{aligned}

Eliminating y\yvar{y} with D\oper{D} to find x(t)\xvar{x(t)} works the same way as before, but at the end neither equation gives y\yvar{y} directly without y′\yvar{y'} in the way.

Canceling y′ to Find y(t)
x′−2x+y′=02x+y′−3y=0\displaystyle \begin{alignedat}{2} \xvar{x'} - 2\xvar{x} &{}+ \yvar{y'} & &{}= 0 \\ 2\xvar{x} &{}+ \yvar{y'} &{}- 3\yvar{y} &{}= 0 \end{alignedat}
y\displaystyle \yvar{y} =  ?\displaystyle = \;?
Text solution
Subtract the original equations to cancel y′\yvar{y'}Because both equations have a +y′+\yvar{y'} term, subtracting the top equation from the bottom equation cancels y′\yvar{y'} before we plug in x\xvar{x} and x′\xvar{x'}:
(2x+y′−3y)−(x′−2x+y′)=04x−x′−3y=0y=13(4x−x′)\displaystyle \begin{aligned} (2\xvar{x} + \yvar{y'} - 3\yvar{y}) & \\ {} - (\xvar{x'} - 2\xvar{x} + \yvar{y'}) &= 0 \\ 4\xvar{x} - \xvar{x'} - 3\yvar{y} &= 0 \\ \yvar{y} &= \tfrac{1}{3}(4\xvar{x} - \xvar{x'}) \end{aligned}

Key concepts

Two coupled first-order equations hold the exact same information as one second-order equation, so every problem follows the same steps: eliminate y\yvar{y} to get a second-order equation for x(t)\xvar{x(t)}, solve for x(t)\xvar{x(t)}, and then find y(t)\yvar{y(t)} directly from x\xvar{x} and x′\xvar{x'} using the original system so both variables share the same two constants c1c_1 and c2c_2.

When to substitute directly vs. when to use D=ddt\oper{D} = \oper{\frac{d}{dt}}

If one equation already has a single +y+\yvar{y} or −y-\yvar{y} with no y′\yvar{y'} (as in x′=2x+y\xvar{x'} = 2\xvar{x} + \yvar{y}), you don't need the operator D\oper{D}. Just isolate y=x′−2x\yvar{y} = \xvar{x'} - 2\xvar{x}, differentiate to get y′=x′′−2x′\yvar{y'} = \xvar{x''} - 2\xvar{x'}, and plug both into the other equation. When neither coefficient is 11 or both equations contain y′\yvar{y'} (as in (D−4)x+3y=0\oper{(D - 4)}\xvar{x} + 3\yvar{y} = 0 and −2x+(D+3)y=0-2\xvar{x} + \oper{(D + 3)}\yvar{y} = 0), line up the columns with D\oper{D}, apply the matching operators to cancel the y\yvar{y} column, and read the characteristic equation r2−r−6=0r^2 - r - 6 = 0 straight from the expanded polynomial (D2−D−6)x=0\oper{(D^2 - D - 6)}\xvar{x} = 0.

When an operator acts on a forcing term

Remember that D\oper{D} differentiates what comes next rather than multiplying it, so (D+2)(2t)=D(2t)+2(2t)=2+4t\oper{(D + 2)}\forced{(2t)} = \oper{D}\forced{(2t)} + \oper{2}\forced{(2t)} = \forced{2 + 4t}.

Finding y(t)\yvar{y(t)} at the end

Never eliminate x\xvar{x} from the start or integrate y′\yvar{y'}. Isolate y\yvar{y} in an original equation (remembering to keep any forcing term, as in y=3x−x′+2t\yvar{y} = 3\xvar{x} - \xvar{x'} + \forced{2t}), or subtract the two original equations first if you need to cancel a matching y′\yvar{y'} term (turning x′−2x+y′=0\xvar{x'} - 2\xvar{x} + \yvar{y'} = 0 and 2x+y′−3y=02\xvar{x} + \yvar{y'} - 3\yvar{y} = 0 into 3y=4x−x′3\yvar{y} = 4\xvar{x} - \xvar{x'}).

6

Practice

1

Find the general solution of the system x′=x+y\xvar{x'} = \xvar{x} + \yvar{y}, y′=4x−2y\yvar{y'} = 4\xvar{x} - 2\yvar{y}.

The first equation has a single +y+\yvar{y} with coefficient 11. Isolate y\yvar{y} there and differentiate to substitute into the second equation.

From the first equation, y=x′−x\yvar{y} = \xvar{x'} - \xvar{x}, so y′=x′′−x′\yvar{y'} = \xvar{x''} - \xvar{x'}. Substituting both into y′=4x−2y\yvar{y'} = 4\xvar{x} - 2\yvar{y} gives
x′′−x′=4x−2(x′−x)x′′−x′=6x−2x′x′′+x′−6x=0\displaystyle \begin{aligned} \xvar{x''} - \xvar{x'} &= 4\xvar{x} - 2(\xvar{x'} - \xvar{x}) \\ \xvar{x''} - \xvar{x'} &= 6\xvar{x} - 2\xvar{x'} \\ \xvar{x''} + \xvar{x'} - 6\xvar{x} &= 0 \end{aligned}
(Watch out when distributing −2(x′−x)-2(\xvar{x'} - \xvar{x}): forgetting to flip the sign on −2(−x)-2(-\xvar{x}) leaves 2x2x instead of 6x6\xvar{x} and gives the wrong roots r=1,−2r = 1, -2.)
The characteristic equation r2+r−6=(r−2)(r+3)=0r^2 + r - 6 = (r - 2)(r + 3) = 0 gives r=2,−3r = 2, -3, so
x(t)\displaystyle \xvar{x(t)} =c1e2t+c2e−3t\displaystyle = c_1 e^{2t} + c_2 e^{-3t}
Differentiating gives x′(t)=2c1e2t−3c2e−3t\xvar{x'(t)} = 2c_1 e^{2t} - 3c_2 e^{-3t}, and plugging x\xvar{x} and x′\xvar{x'} into y=x′−x\yvar{y} = \xvar{x'} - \xvar{x} gives
y(t)\displaystyle \yvar{y(t)} =(2c1e2t−3c2e−3t)−(c1e2t+c2e−3t)\displaystyle = (2c_1 e^{2t} - 3c_2 e^{-3t}) - (c_1 e^{2t} + c_2 e^{-3t})
(Be careful with the e−3te^{-3t} coefficients here: subtracting c2c_2 from −3c2-3c_2 gives −4c2-4c_2, whereas adding them by mistake gives the wrong answer y(t)=c1e2t−2c2e−3ty(t) = c_1 e^{2t} - 2c_2 e^{-3t}.)
Answerx(t)=c1e2t+c2e−3t,y(t)=c1e2t−4c2e−3t\xvar{x(t)} = c_1 e^{2t} + c_2 e^{-3t}, \quad \yvar{y(t)} = c_1 e^{2t} - 4c_2 e^{-3t}
2

Solve the initial value problem x′=3x+y\xvar{x'} = 3\xvar{x} + \yvar{y}, y′=2x+2y\yvar{y'} = 2\xvar{x} + 2\yvar{y} with x(0)=4\xvar{x(0)} = 4 and y(0)=1\yvar{y(0)} = 1.

Isolate y\yvar{y} in the first equation to find the general formulas for both x(t)\xvar{x(t)} and y(t)\yvar{y(t)} before plugging in t=0t = 0.

From the first equation, y=x′−3x\yvar{y} = \xvar{x'} - 3\xvar{x} and y′=x′′−3x′\yvar{y'} = \xvar{x''} - 3\xvar{x'}. Plugging these into y′=2x+2y\yvar{y'} = 2\xvar{x} + 2\yvar{y} gives
x′′−3x′=2x+2(x′−3x)x′′−5x′+4x=0\displaystyle \begin{aligned} \xvar{x''} - 3\xvar{x'} &= 2\xvar{x} + 2(\xvar{x'} - 3\xvar{x}) \\ \xvar{x''} - 5\xvar{x'} + 4\xvar{x} &= 0 \end{aligned}
Since r2−5r+4=(r−4)(r−1)=0r^2 - 5r + 4 = (r - 4)(r - 1) = 0, we have x(t)=c1e4t+c2et\xvar{x(t)} = c_1 e^{4t} + c_2 e^t and x′(t)=4c1e4t+c2et\xvar{x'(t)} = 4c_1 e^{4t} + c_2 e^t. Substituting into y=x′−3x\yvar{y} = \xvar{x'} - 3\xvar{x} gives
y(t)\displaystyle \yvar{y(t)} =(4c1e4t+c2et)−3(c1e4t+c2et)\displaystyle = (4c_1 e^{4t} + c_2 e^t) - 3(c_1 e^{4t} + c_2 e^t) =c1e4t−2c2et\displaystyle = c_1 e^{4t} - 2c_2 e^t
Now plug t=0t = 0 into x(t)\xvar{x(t)} and y(t)\yvar{y(t)}:
x(0)=c1+c2=4,y(0)=c1−2c2=1\displaystyle \begin{aligned} \xvar{x(0)} &= c_1 + c_2 = 4, \\ \yvar{y(0)} &= c_1 - 2c_2 = 1 \end{aligned}
(Be sure to plug y(0)=1\yvar{y(0)} = 1 into y(0)=c1−2c2\yvar{y(0)} = c_1 - 2c_2, not into x′(0)=4c1+c2\xvar{x'(0)} = 4c_1 + c_2. Setting x′(0)=1x'(0) = 1 gives c1=−1,c2=5c_1 = -1, c_2 = 5 and the wrong answer x(t)=−e4t+5et,y(t)=−e4t−10etx(t) = -e^{4t} + 5e^t, y(t) = -e^{4t} - 10e^t.)
Subtracting the second equation from the first gives 3c2=3  ⟹  c2=13c_2 = 3 \implies c_2 = 1, so c1=3c_1 = 3.
Answerx(t)=et+3e4t,y(t)=−2et+3e4t\xvar{x(t)} = e^t + 3e^{4t}, \quad \yvar{y(t)} = -2e^t + 3e^{4t}
3

Use the derivative operator D\oper{D} to find the general solution of the system x′=2x+3y\xvar{x'} = 2\xvar{x} + 3\yvar{y}, y′=2x+y\yvar{y'} = 2\xvar{x} + \yvar{y}.

Move all x\xvar{x} and y\yvar{y} terms to the left using D\oper{D} for ddt\oper{\frac{d}{dt}}: what operator do you apply to the top equation, and what number do you multiply the bottom equation by, to make the y\yvar{y} terms cancel?

Rewriting the system with D\oper{D} gives
(D−2)x−3y=0−2x+(D−1)y=0\displaystyle \begin{aligned} \oper{(D - 2)}\xvar{x} - 3\yvar{y} &= 0 \\ -2\xvar{x} + \oper{(D - 1)}\yvar{y} &= 0 \end{aligned}
Applying D−1\oper{D - 1} to the top equation, multiplying the bottom equation by 33, and adding the two equations cancels y\yvar{y}:
[(D−1)(D−2)−6]x=0(D2−3D+2−6)x=0(D2−3D−4)x=0\displaystyle \begin{aligned} \bigl[\oper{(D - 1)(D - 2)} - 6\bigr]\xvar{x} &= 0 \\ \oper{(D^2 - 3D + 2 - 6)}\xvar{x} &= 0 \\ \oper{(D^2 - 3D - 4)}\xvar{x} &= 0 \end{aligned}
The characteristic equation r2−3r−4=(r−4)(r+1)=0r^2 - 3r - 4 = (r - 4)(r + 1) = 0 gives r=4,−1r = 4, -1, so
x(t)=c1e4t+c2e−t,x′(t)=4c1e4t−c2e−t\displaystyle \begin{aligned} \xvar{x(t)} &= c_1 e^{4t} + c_2 e^{-t}, \\ \xvar{x'(t)} &= 4c_1 e^{4t} - c_2 e^{-t} \end{aligned}
Solving the first original equation x′=2x+3y\xvar{x'} = 2\xvar{x} + 3\yvar{y} for y\yvar{y} gives y=13(x′−2x)\yvar{y} = \frac{1}{3}(\xvar{x'} - 2\xvar{x}).
(Be careful to subtract x′−2x\xvar{x'} - 2\xvar{x} rather than 2x−x′2x - x' and divide both terms by 33; flipping the subtraction gives the opposite signs y(t)=−23c1e4t+c2e−ty(t) = -\frac{2}{3}c_1 e^{4t} + c_2 e^{-t}.)
y(t)\displaystyle \yvar{y(t)} =13[(4c1e4t−c2e−t)−2(c1e4t+c2e−t)]\displaystyle = \tfrac{1}{3}\bigl[(4c_1 e^{4t} - c_2 e^{-t}) - 2(c_1 e^{4t} + c_2 e^{-t})\bigr]
Answerx(t)=c1e4t+c2e−t,y(t)=23c1e4t−c2e−t\xvar{x(t)} = c_1 e^{4t} + c_2 e^{-t}, \quad \yvar{y(t)} = \tfrac{2}{3}c_1 e^{4t} - c_2 e^{-t}
4

Find the general solution of the nonhomogeneous system x′=5x−y+3t\xvar{x'} = 5\xvar{x} - \yvar{y} + \forced{3t}, y′=12x−3y\yvar{y'} = 12\xvar{x} - 3\yvar{y}.

When you apply D+3\oper{D + 3} to the first equation to match (D+3)y\oper{(D + 3)}\yvar{y} in the second, remember that D+3\oper{D + 3} acts on the 3t\forced{3t} on the right-hand side as well.

Lining up x\xvar{x} and y\yvar{y} on the left with D\oper{D} gives
(D−5)x+y=3t−12x+(D+3)y=0\displaystyle \begin{aligned} \oper{(D - 5)}\xvar{x} + \yvar{y} &= \forced{3t} \\ -12\xvar{x} + \oper{(D + 3)}\yvar{y} &= 0 \end{aligned}
Apply D+3\oper{D + 3} to both sides of the top equation and subtract the bottom equation:
[(D+3)(D−5)−(−12)]x=(D+3)(3t)(D2−2D−3)x=9t+3\displaystyle \begin{aligned} \bigl[\oper{(D + 3)(D - 5)} - (-12)\bigr]\xvar{x} &= \oper{(D + 3)}\forced{(3t)} \\ \oper{(D^2 - 2D - 3)}\xvar{x} &= \forced{9t + 3} \end{aligned}
(Don't forget the derivative part D(3t)=3\oper{D}\forced{(3t)} = \forced{3} on the right-hand side: writing (D+3)(3t)=9t(D + 3)(3t) = 9t leaves out the +3+3 and gives the wrong constant B=2B = 2 in xp(t)\xvar{x_p(t)}.)
From r2−2r−3=(r−3)(r+1)=0r^2 - 2r - 3 = (r - 3)(r + 1) = 0, we get xh(t)=c1e3t+c2e−t\xvar{x_h(t)} = c_1 e^{3t} + c_2 e^{-t}. Guessing xp=At+B\xvar{x_p} = \forced{At + B} in x′′−2x′−3x=9t+3\xvar{x''} - 2\xvar{x'} - 3\xvar{x} = \forced{9t + 3} gives
−2A−3(At+B)\displaystyle -2A - 3\forced{(At + B)} =−3At+(−2A−3B)\displaystyle = -3At + (-2A - 3B) =9t+3  ⟹  A\displaystyle = \forced{9t + 3} \implies A =−3,B\displaystyle = -3, \quad B =1\displaystyle = 1
So x(t)=c1e3t+c2e−t−3t+1\xvar{x(t)} = c_1 e^{3t} + c_2 e^{-t} \forced{- 3t + 1} and x′(t)=3c1e3t−c2e−t−3\xvar{x'(t)} = 3c_1 e^{3t} - c_2 e^{-t} \forced{- 3}. Solving the first original equation for y\yvar{y} gives y=5x−x′+3t\yvar{y} = 5\xvar{x} - \xvar{x'} + \forced{3t}.
(Remember to keep the +3t+\forced{3t} forcing term when isolating y\yvar{y}; dropping it uses y=5x−x′y = 5x - x' and gives the wrong answer y(t)=2c1e3t+6c2e−t−15t+8y(t) = 2c_1 e^{3t} + 6c_2 e^{-t} - 15t + 8.)
y(t)\displaystyle \yvar{y(t)} =5(c1e3t+c2e−t−3t+1)−(3c1e3t−c2e−t−3)+3t\displaystyle = 5(c_1 e^{3t} + c_2 e^{-t} \forced{- 3t + 1}) - (3c_1 e^{3t} - c_2 e^{-t} \forced{- 3}) + \forced{3t}
Answerx(t)=c1e3t+c2e−t−3t+1,y(t)=2c1e3t+6c2e−t−12t+8\xvar{x(t)} = c_1 e^{3t} + c_2 e^{-t} \forced{- 3t + 1}, \quad \yvar{y(t)} = 2c_1 e^{3t} + 6c_2 e^{-t} \forced{- 12t + 8}
5

Find the general solution of the system x′−3x+y′=0\xvar{x'} - 3\xvar{x} + \yvar{y'} = 0, −4x+y′+y=0-4\xvar{x} + \yvar{y'} + \yvar{y} = 0.

Use D\oper{D} to eliminate y\yvar{y} first; once you have x(t)\xvar{x(t)}, look at how y′\yvar{y'} appears in both original equations so you can isolate y(t)\yvar{y(t)} without integrating.

Writing the system with D\oper{D} gives
(D−3)x+Dy=0−4x+(D+1)y=0\displaystyle \begin{aligned} \oper{(D - 3)}\xvar{x} + \oper{D}\yvar{y} &= 0 \\ -4\xvar{x} + \oper{(D + 1)}\yvar{y} &= 0 \end{aligned}
Applying D+1\oper{D + 1} to the top equation, applying D\oper{D} to the bottom equation, and subtracting cancels y\yvar{y}:
[(D+1)(D−3)−(−4D)]x=0(D2−2D−3+4D)x=0(D2+2D−3)x=0\displaystyle \begin{aligned} \bigl[\oper{(D + 1)(D - 3)} - (-4\oper{D})\bigr]\xvar{x} &= 0 \\ \oper{(D^2 - 2D - 3 + 4D)}\xvar{x} &= 0 \\ \oper{(D^2 + 2D - 3)}\xvar{x} &= 0 \end{aligned}
(When applying D\oper{D} to −4x-4\xvar{x} in the bottom equation, be sure to write −4Dx-4\oper{D}\xvar{x} rather than −4x-4x; missing that D\oper{D} turns the equation into (D2−2D+1)x=0(D^2 - 2D + 1)x = 0 with a repeated root r=1r = 1.)
Since r2+2r−3=(r−1)(r+3)=0r^2 + 2r - 3 = (r - 1)(r + 3) = 0, we get x(t)=c1et+c2e−3t\xvar{x(t)} = c_1 e^t + c_2 e^{-3t} and x′(t)=c1et−3c2e−3t\xvar{x'(t)} = c_1 e^t - 3c_2 e^{-3t}. Now subtract the first original equation from the second to cancel y′\yvar{y'}:
(−4x+y′+y)−(x′−3x+y′)\displaystyle (-4\xvar{x} + \yvar{y'} + \yvar{y}) - (\xvar{x'} - 3\xvar{x} + \yvar{y'}) =0  ⟹  y\displaystyle = 0 \implies \yvar{y} =x+x′\displaystyle = \xvar{x} + \xvar{x'}
(Don't try to find y(t)\yvar{y(t)} by integrating y′=3x−x′\yvar{y'} = 3\xvar{x} - \xvar{x'} from the top equation alone, which adds an extra constant of integration c3c_3 and gives y(t)=2c1et−2c2e−3t+c3y(t) = 2c_1 e^t - 2c_2 e^{-3t} + c_3.)
Plugging in x(t)\xvar{x(t)} and x′(t)\xvar{x'(t)} gives
y(t)\displaystyle \yvar{y(t)} =(c1et+c2e−3t)+(c1et−3c2e−3t)\displaystyle = (c_1 e^t + c_2 e^{-3t}) + (c_1 e^t - 3c_2 e^{-3t})
Answerx(t)=c1et+c2e−3t,y(t)=2c1et−2c2e−3t\xvar{x(t)} = c_1 e^t + c_2 e^{-3t}, \quad \yvar{y(t)} = 2c_1 e^t - 2c_2 e^{-3t}