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′y′=2x+y,=3x+4y
we cannot solve either equation on its own, because finding x requires knowing y and finding y requires knowing x. Since the top equation has a single +y, we can isolate y and substitute it into the bottom equation to get a single equation in x alone.
Turning a Coupled System into One Equation
Text solution
Isolate y in the first equation and differentiateSolving x′=2x+y for y and taking the derivative of both sides writes both y and y′ entirely in terms of x:
y=x′−2x⟹y′=x′′−2x′
Substitute y and y′ into the second equationReplacing y and y′ in y′=3x+4y gets rid of y and leaves a single second-order equation for x:
Now we want to solve x′′−6x′+5x=0 to find both x(t) and y(t), and then use the starting values x(0)=3 and y(0)=1 to find the exact solutions.
Finding Both Solutions and Using Initial Values
x′′−6x′+5x=0
y=x′−2x
x(0)y(0)=3=1x(t)y(t)=?=?
Text solution
Solve the second-order equation for x(t)Plugging ert into x′′−6x′+5x=0 turns each derivative into a power of r and gives the general solution for x(t):
r2−6r+5(r−1)(r−5)=0=0⟹r=1,5
x(t)=c1et+c2e5t
Plug x and x′ back into the equation for yDifferentiating x(t) and substituting both into y=x′−2x gives y(t) using the same two constants c1 and c2:
Putting c1=2 and c2=1 back in gives the exact solutions x(t)=2et+e5t and y(t)=−2et+3e5t.
Because the top equation gives x′(0)=2x(0)+y(0), knowing y's starting value y(0) along with x(0) also tells us x's starting slope x′(0). That is enough to determine both x(t) and y(t) from the same two constants c1 and c2.
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
Now consider a system where neither variable has a clean coefficient of 1:
x′y′=4x−3y,=2x−3y
Isolating y in the top equation would force us to divide by 3 and carry fractions through our derivatives. Instead, we can line the variables up in columns and cancel y directly, just like elimination in algebra.
Eliminating with the Derivative Operator D
x′y′=4x−3y=2x−3y
x(t)=?y(t)=?
Text solution
Line up the variables and write derivatives as DMoving all terms to the left and writing dtdD for taking a derivative lets us group the x and y terms into columns:
Match the y terms and subtract straight downApplying D+3 to the top equation and multiplying the bottom equation by 3 gives both equations a 3(D+3)y term that cancels when we subtract:
(D+3)(D−4)x+(D+3)3y−6x+3(D+3)y=0=0
[(D+3)(D−4)−(−6)]x(D2−D−12+6)x(D2−D−6)x=0=0=0
Read off the characteristic equation for x(t)Because each D brings down a factor of r when applied to ert, the polynomial in D gives the characteristic equation directly:
r2−r−6(r−3)(r+2)=0=0⟹r=3,−2
x(t)=c1e3t+c2e−2t
Solve the top equation for y(t)Rearranging x′−4x+3y=0 for y at the very end lets us plug in x(t) and x′(t)=3c1e3t−2c2e−2t without differentiating any fractions:
Next, we want to solve a system where one of the equations has an extra 2t forcing term on the right:
x′y′=3x−y+2t,=4x−2y
When we apply a derivative operator to eliminate y, we have to apply that same operator to the 2t forcing term on the right-hand side.
Solving a System with a Forcing Term
x′y′=3x−y+2t=4x−2y
x(t)=?y(t)=?
Text solution
Eliminate y by applying D+2 to both sides of the top equationAfter lining up x and y on the left, applying D+2 to the top equation takes the derivative of 2t and adds 2 times 2t on the right:
Solve for the homogeneous and particular parts of x(t)Factoring r2−r−2=(r−2)(r+1)=0 gives xh(t)=c1e2t+c2e−t, and plugging a linear guess xp=At+B into x′′−x′−2x=4t+2 gives the particular solution:
0−A−2(At+B)−2At+(−A−2B)⟹A=−2,B=0=4t+2=4t+2
Putting xh(t) and xp(t)=−2t together gives x(t)=c1e2t+c2e−t−2t.
Use the original forced equation to find y(t)Solving x′=3x−y+2t for y (keeping the +2t forcing term) and plugging in x(t) and x′(t)=2c1e2t−c2e−t−2 gives y(t):
For any linear forcing function f(t), applying D+2 multiplies the line by 2 and adds its slope Df(t). That gives a new line (D+2)f(t) on the right-hand side, which is why the particular solutions xp(t) and yp(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′ to Find y(t)
Sometimes both equations in a system contain y′:
x′−2x+y′2x+y′−3y=0,=0
Eliminating y with D to find x(t) works the same way as before, but at the end neither equation gives y directly without y′ in the way.
Canceling y′ to Find y(t)
x′−2x2x+y′+y′−3y=0=0
y=?
Text solution
Subtract the original equations to cancel y′Because both equations have a +y′ term, subtracting the top equation from the bottom equation cancels y′ before we plug in x and x′:
(2x+y′−3y)−(x′−2x+y′)4x−x′−3yy=0=0=31(4x−x′)
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 to get a second-order equation for x(t), solve for x(t), and then find y(t) directly from x and x′ using the original system so both variables share the same two constants c1 and c2.
When to substitute directly vs. when to use D=dtd
If one equation already has a single +y or −y with no y′ (as in x′=2x+y), you don't need the operator D. Just isolate y=x′−2x, differentiate to get y′=x′′−2x′, and plug both into the other equation. When neither coefficient is 1 or both equations contain y′ (as in (D−4)x+3y=0 and −2x+(D+3)y=0), line up the columns with D, apply the matching operators to cancel the y column, and read the characteristic equation r2−r−6=0 straight from the expanded polynomial (D2−D−6)x=0.
When an operator acts on a forcing term
Remember that D differentiates what comes next rather than multiplying it, so (D+2)(2t)=D(2t)+2(2t)=2+4t.
Finding y(t) at the end
Never eliminate x from the start or integrate y′. Isolate y in an original equation (remembering to keep any forcing term, as in y=3x−x′+2t), or subtract the two original equations first if you need to cancel a matching y′ term (turning x′−2x+y′=0 and 2x+y′−3y=0 into 3y=4x−x′).
6
Practice
1
Find the general solution of the system x′=x+y,y′=4x−2y.
The first equation has a single +y with coefficient 1. Isolate y there and differentiate to substitute into the second equation.
From the first equation, y=x′−x, so y′=x′′−x′. Substituting both into y′=4x−2y gives
x′′−x′x′′−x′x′′+x′−6x=4x−2(x′−x)=6x−2x′=0
(Watch out when distributing −2(x′−x): forgetting to flip the sign on −2(−x) leaves 2x instead of 6x and gives the wrong roots r=1,−2.)
The characteristic equation r2+r−6=(r−2)(r+3)=0 gives r=2,−3, so
x(t)=c1e2t+c2e−3t
Differentiating gives x′(t)=2c1e2t−3c2e−3t, and plugging x and x′ into y=x′−x gives
y(t)=(2c1e2t−3c2e−3t)−(c1e2t+c2e−3t)
(Be careful with the e−3t coefficients here: subtracting c2 from −3c2 gives −4c2, whereas adding them by mistake gives the wrong answer y(t)=c1e2t−2c2e−3t.)
Answerx(t)=c1e2t+c2e−3t,y(t)=c1e2t−4c2e−3t
2
Solve the initial value problem x′=3x+y,y′=2x+2y with x(0)=4 and y(0)=1.
Isolate y in the first equation to find the general formulas for both x(t) and y(t) before plugging in t=0.
From the first equation, y=x′−3x and y′=x′′−3x′. Plugging these into y′=2x+2y gives
x′′−3x′x′′−5x′+4x=2x+2(x′−3x)=0
Since r2−5r+4=(r−4)(r−1)=0, we have x(t)=c1e4t+c2et and x′(t)=4c1e4t+c2et. Substituting into y=x′−3x gives
(Be sure to plug y(0)=1 into y(0)=c1−2c2, not into x′(0)=4c1+c2. Setting x′(0)=1 gives c1=−1,c2=5 and the wrong answer x(t)=−e4t+5et,y(t)=−e4t−10et.)
Subtracting the second equation from the first gives 3c2=3⟹c2=1, so c1=3.
Answerx(t)=et+3e4t,y(t)=−2et+3e4t
3
Use the derivative operator D to find the general solution of the system x′=2x+3y,y′=2x+y.
Move all x and y terms to the left using D for dtd: what operator do you apply to the top equation, and what number do you multiply the bottom equation by, to make the y terms cancel?
Rewriting the system with D gives
(D−2)x−3y−2x+(D−1)y=0=0
Applying D−1 to the top equation, multiplying the bottom equation by 3, and adding the two equations cancels y:
[(D−1)(D−2)−6]x(D2−3D+2−6)x(D2−3D−4)x=0=0=0
The characteristic equation r2−3r−4=(r−4)(r+1)=0 gives r=4,−1, so
x(t)x′(t)=c1e4t+c2e−t,=4c1e4t−c2e−t
Solving the first original equation x′=2x+3y for y gives y=31(x′−2x).
(Be careful to subtract x′−2x rather than 2x−x′ and divide both terms by 3; flipping the subtraction gives the opposite signs y(t)=−32c1e4t+c2e−t.)
y(t)=31[(4c1e4t−c2e−t)−2(c1e4t+c2e−t)]
Answerx(t)=c1e4t+c2e−t,y(t)=32c1e4t−c2e−t
4
Find the general solution of the nonhomogeneous system x′=5x−y+3t,y′=12x−3y.
When you apply D+3 to the first equation to match (D+3)y in the second, remember that D+3 acts on the 3t on the right-hand side as well.
Lining up x and y on the left with D gives
(D−5)x+y−12x+(D+3)y=3t=0
Apply D+3 to both sides of the top equation and subtract the bottom equation:
[(D+3)(D−5)−(−12)]x(D2−2D−3)x=(D+3)(3t)=9t+3
(Don't forget the derivative part D(3t)=3 on the right-hand side: writing (D+3)(3t)=9t leaves out the +3 and gives the wrong constant B=2 in xp(t).)
From r2−2r−3=(r−3)(r+1)=0, we get xh(t)=c1e3t+c2e−t. Guessing xp=At+B in x′′−2x′−3x=9t+3 gives
−2A−3(At+B)=−3At+(−2A−3B)=9t+3⟹A=−3,B=1
So x(t)=c1e3t+c2e−t−3t+1 and x′(t)=3c1e3t−c2e−t−3. Solving the first original equation for y gives y=5x−x′+3t.
(Remember to keep the +3t forcing term when isolating y; dropping it uses y=5x−x′ and gives the wrong answer y(t)=2c1e3t+6c2e−t−15t+8.)
(When applying D to −4x in the bottom equation, be sure to write −4Dx rather than −4x; missing that D turns the equation into (D2−2D+1)x=0 with a repeated root r=1.)
Since r2+2r−3=(r−1)(r+3)=0, we get x(t)=c1et+c2e−3t and x′(t)=c1et−3c2e−3t. Now subtract the first original equation from the second to cancel y′:
(−4x+y′+y)−(x′−3x+y′)=0⟹y=x+x′
(Don't try to find y(t) by integrating y′=3x−x′ from the top equation alone, which adds an extra constant of integration c3 and gives y(t)=2c1et−2c2e−3t+c3.)