PAGE 1

Problem 10: Parametric Equations and Asymptotic Behavior

\[\begin{aligned} X_1 &= -7e^{-t} + 6e^{-2t} \\ X_2 &= 7e^{-t} + 9e^{-2t} \end{aligned}\]

Graphing \( X_1 \) vs \( X_2 \)

When \( t \) is large, the term \( e^{-2t} \) becomes much smaller than \( e^{-t} \) (\( e^{-2t} \ll e^{-t} \)). Therefore, the equations can be approximated as:

\[\begin{aligned} X_1 &\approx -7e^{-t} \\ X_2 &\approx 7e^{-t} \end{aligned}\]
\[\begin{aligned} \frac{X_2}{X_1} &\approx -1 \\ X_2 &\approx -X_1 \end{aligned}\]
A phase plane plot of X2 vs X1 showing a trajectory starting at t=0 and approaching the origin along the line X2 = -X1 as t goes to infinity.
PAGE 2

Problem 23: Systems of Differential Equations

\[ \vec{x}' = \begin{pmatrix} 2 & -1 \\ 3 & -2 \end{pmatrix} \vec{x} + \begin{pmatrix} 1 \\ -1 \end{pmatrix} e^t \]

Verify that the following is a solution:

\[ \vec{x} = \begin{pmatrix} 1 \\ 0 \end{pmatrix} e^t + 2 \begin{pmatrix} 1 \\ 1 \end{pmatrix} t e^t \]

Differentiating the proposed solution:

\[ \vec{x}' = \begin{pmatrix} 1 \\ 0 \end{pmatrix} e^t + 2 \begin{pmatrix} 1 \\ 1 \end{pmatrix} (t e^t + e^t) \]

Mixing Problem: Two-Tank System

  • Tank 1: 50 gal, 10 oz salt
  • Tank 2: 20 gal, 15 oz salt

Brine with concentration 2 oz/gal flows into Tank 1 at 5 gal/min. The mixture is stirred and then let out into Tank 2 at 5 gal/min. Solution flows out of Tank 2 at 5 gal/min.

Define variables:

  • \( X_1(t) \): amount of salt in Tank 1
  • \( X_2(t) \): amount of salt in Tank 2
PAGE 3

A mixing problem involving two tanks, labeled T1 and T2, with specified inflow and outflow rates and concentrations.

Diagram of two tanks T1 and T2 with inflow 2 oz/gal at 5 gal/min, transfer between tanks, and outflow 5 gal/min.

Differential Equations for the System

The rate of change of the amount of substance in each tank is modeled by the following system of differential equations:

\[ \frac{dx_1}{dt} = (2)(5) - \left( \frac{x_1}{50} \right)(5) = 10 - 0.1x_1 \]
\[ \frac{dx_2}{dt} = \left( \frac{x_1}{50} \right)(5) - \left( \frac{x_2}{20} \right)(5) = 0.1x_1 - 0.25x_2 \]
PAGE 4

7.3 Linear independence, Eigenvalues, Eigenvectors

Vectors \( \vec{x}^{(1)}, \vec{x}^{(2)}, \vec{x}^{(3)}, \dots, \vec{x}^{(n)} \) are linearly independent

if \( c_1\vec{x}^{(1)} + c_2\vec{x}^{(2)} + \dots + c_n\vec{x}^{(n)} = \vec{0} \) means

\( c_1 = c_2 = \dots = c_n = 0 \)

  • The only way to add up to zero vector is if all vectors are multiplied by zero.

e.g. \( \vec{x}^{(1)} = \begin{bmatrix} 1 \\ 0 \end{bmatrix}, \vec{x}^{(2)} = \begin{bmatrix} 0 \\ 1 \end{bmatrix} \)

\( c_1 \begin{bmatrix} 1 \\ 0 \end{bmatrix} + c_2 \begin{bmatrix} 0 \\ 1 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \)

true only if \( c_1 = c_2 = 0 \)

  • Can't produce any of these \( \vec{x}^{(n)} \) by linear combinations of the others.
PAGE 5

Linear Independence Example

Example: are \( \vec{x}^{(1)} = \begin{bmatrix} e^{-t} \\ -e^{-t} \end{bmatrix} \) and \( \vec{x}^{(2)} = \begin{bmatrix} e^{2t} \\ 2e^{2t} \end{bmatrix} \) linearly independent?

Yes, if \( c_1 \begin{bmatrix} e^{-t} \\ -e^{-t} \end{bmatrix} + c_2 \begin{bmatrix} e^{2t} \\ 2e^{2t} \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \) means \( c_1 = c_2 = 0 \).

Find \( c_1, c_2 \):

\[ \begin{bmatrix} e^{-t} & e^{2t} \\ -e^{-t} & 2e^{2t} \end{bmatrix} \begin{bmatrix} c_1 \\ c_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \]

Gaussian Elimination

\[ \left[ \begin{array}{cc|c} e^{-t} & e^{2t} & 0 \\ -e^{-t} & 2e^{2t} & 0 \end{array} \right] \]

Reduce to row-echelon form.

Get left sub matrix close to identity.

PAGE 6
\[ \left[ \begin{array}{cc|c} e^{-t} & e^{2t} & 0 \\ 0 & 3e^{2t} & 0 \end{array} \right] \]
add R1 to R2
\[ \left[ \begin{array}{cc|c} e^{-t} & e^{2t} & 0 \\ 0 & 1 & 0 \end{array} \right] \]
multiply R2 by \( \frac{1}{3e^{2t}} \)

last row means \( 1 \cdot c_2 = 0 \rightarrow c_2 = 0 \)

row 1 means \( e^{-t} c_1 + e^{2t} c_2 = 0 \)

\( e^{-t} c_1 = 0 \rightarrow c_1 = 0 \)

So the vectors are linearly independent.

PAGE 7

Linear Independence Example

Are the following vectors linearly independent?

\[ \begin{bmatrix} e^{-t} \\ 2e^{-t} \end{bmatrix}, \begin{bmatrix} e^{-t} \\ e^{-t} \end{bmatrix}, \begin{bmatrix} 0 \\ e^{-t} \end{bmatrix} \]

To determine this, we solve for constants \( c_1 \) and \( c_2 \) such that:

\[ c_1 \begin{bmatrix} e^{-t} \\ 2e^{-t} \end{bmatrix} + c_2 \begin{bmatrix} e^{-t} \\ e^{-t} \end{bmatrix} = \begin{bmatrix} 0 \\ e^{-t} \end{bmatrix} \]

If there is a solution for \( c_1, c_2 \), then they are NOT linearly independent.

\[ \left[ \begin{array}{cc|c} e^{-t} & e^{-t} & 0 \\ 2e^{-t} & e^{-t} & e^{-t} \end{array} \right] \]

-2R1 + R2

\[ \left[ \begin{array}{cc|c} e^{-t} & e^{-t} & 0 \\ 0 & -e^{-t} & e^{-t} \end{array} \right] \]

\( -e^{-t} c_2 = e^{-t} \implies c_2 = -1 \)

\( e^{-t} c_1 + e^{-t} c_2 = 0 \implies c_1 = 1 \)

Solution exists, so NOT independent.

PAGE 8

Eigenvalues and Eigenvectors

\[ A = \begin{bmatrix} 1 & 2 \\ 0 & 3 \end{bmatrix} \quad \vec{x} = \begin{bmatrix} 0 \\ 1 \end{bmatrix} \]

\( A\vec{x} = \begin{bmatrix} 2 \\ 3 \end{bmatrix} \) is a linear transformation of the vector \( \begin{bmatrix} 0 \\ 1 \end{bmatrix} \).

Note the direction changed.

A 2D coordinate graph with axes x1 and x2. Vector x is a vertical red arrow. Vector Ax is a longer red arrow in the first quadrant.

Some vectors preserve their directions → eigenvectors

\[ \vec{x} = \begin{bmatrix} 1 \\ 0 \end{bmatrix} \quad A\vec{x} = \begin{bmatrix} 1 \\ 0 \end{bmatrix} \]

(Can only change magnitude OR turn 180° around)

PAGE 9

Eigenvalues and Eigenvectors

The change in magnitude is the eigenvalue.

Example Calculation

\[ A = \begin{bmatrix} 1 & 2 \\ 0 & 3 \end{bmatrix}, \quad \vec{x} = \begin{bmatrix} 1 \\ 1 \end{bmatrix} \]
\[ A\vec{x} = \begin{bmatrix} 3 \\ 3 \end{bmatrix} = 3 \begin{bmatrix} 1 \\ 1 \end{bmatrix} \]

Note:

The value 3 is the eigenvalue corresponding to the eigenvector \( \begin{bmatrix} 1 \\ 1 \end{bmatrix} \).

How to Find Them

To find eigenvalues and eigenvectors, solve the equation:

\[ A\vec{x} = \lambda\vec{x} \]
\[ (A - \lambda I)\vec{x} = \vec{0} \] → finds e-vectors
\[ \text{and } \det(A - \lambda I) = 0 \] → finds e-values (do this first)
PAGE 10

Example: Finding Eigenvalues and Eigenvectors

1. Find Eigenvalues

Given matrix:

\[ A = \begin{bmatrix} 1 & 2 \\ 0 & 3 \end{bmatrix} \]

Characteristic Equation:

\[ \begin{vmatrix} 1 - \lambda & 2 \\ 0 & 3 - \lambda \end{vmatrix} = 0 \] \[ (1 - \lambda)(3 - \lambda) - (0)(2) = 0 \] \[ (1 - \lambda)(3 - \lambda) = 0 \]

So \( \lambda = 1, \lambda = 3 \)

Each one has an e-vector.

2. Solve for Eigenvectors

Solve: \( (A - \lambda I)\vec{x} = \vec{0} \)

For \( \lambda = 1 \):

\[ \left[ \begin{array}{cc|c} 0 & 2 & 0 \\ 0 & 2 & 0 \end{array} \right] \] \[ \xrightarrow{R_2 - R_1} \left[ \begin{array}{cc|c} 0 & 2 & 0 \\ 0 & 0 & 0 \end{array} \right] \]

First row: \( 2x_2 = 0 \implies x_2 = 0 \)

Bottom row: \( x_1 = r \) (free variable)

PAGE 11

so the e-vector corresponding to e-value \(\lambda = 1\) is

\[\vec{x} = \begin{bmatrix} r \\ 0 \end{bmatrix} = r \begin{bmatrix} 1 \\ 0 \end{bmatrix}\]

for simplicity, choose \(r=1\), so \(\vec{x} = \begin{bmatrix} 1 \\ 0 \end{bmatrix}\)

Similarly, for \(\lambda = 3\), \(\vec{x} = \begin{bmatrix} 1 \\ 1 \end{bmatrix}\)

7.4 Basic Theory of Systems of Eqs

if \(\vec{x}' = A\vec{x}\) and \(A\) is \(n \times n\), then there are \(n\) linearly independent solutions \(\vec{x}^{(1)}, \vec{x}^{(2)}, \dots, \vec{x}^{(n)}\)

(just like nth-order eq has \(n\) solutions)

then general solution is just a linearly combination of them:

\[\vec{x} = c_1 \vec{x}^{(1)} + c_2 \vec{x}^{(2)} + c_3 \vec{x}^{(3)} + \dots + c_n \vec{x}^{(n)}\]
PAGE 12

the Wronskian of these solutions is non-zero because they are linearly independent.

\[W = \left| \vec{x}^{(1)} \quad \vec{x}^{(2)} \quad \vec{x}^{(3)} \quad \dots \quad \vec{x}^{(n)} \right|\]

solutions as columns.

PAGE 13

Computer Project 3. Predator-Prey Equations

Goal: Investigate the qualitative behavior of a nonlinear system of differential equations.

Tools needed: pplane8

Description: A farmer has ladybugs and aphids in her fields. The helpful ladybugs (predator) eat the destructive aphids (prey) who devour her crops.

Let \(\begin{cases} x(t) = \text{aphid population (in millions) at time } t, \\ y(t) = \text{ladybug population (in millions) at time } t. \end{cases}\)

The farmer knows that the growth rates of the aphid and ladybug populations are given respectively by

\[\begin{cases} \frac{dx}{dt} = x(1-y), \\ \frac{dy}{dt} = y(x-1). \end{cases}\]

Questions

Assume there are initially 800,000 aphids and 400,000 ladybugs in all that follows below.

  1. Use pplane8 to plot the trajectory through \((0.8, 0.4)\). As \(t\) increases, describe what happens to each population. Is the aphid population ever smaller than 300,000? Are the aphids ever eradicated? Does the ladybug population ever exceed 2 million?
  2. A fellow farmer suggests that she use pesticide to kill the aphids. She is reluctant because it also kills the helpful ladybugs and she prefers to have some ladybugs remaining to eat other destructive insects. If she were to use a pesticide, the growth rates would then become
    \[\begin{cases} \frac{dx}{dt} = x(1-y) - sx, \\ \frac{dy}{dt} = y(x-1) - sy. \end{cases} \tag{*}\]
    where \(s \ge 0\) is a measure of the "strength" of the pesticide — the larger the \(s\), the stronger the pesticide. Currently there are only two commercially available strengths: \(s = 0.5\) and \(s = 0.75\). Plot the trajectories for the new system of equations \((*)\) with these values of \(s\). Will the aphids ever be totally eliminated?
  3. If she knows her crops will survive if the aphid population never exceeds 2.6 million, which strength (if any) would you recommend she use: \(s = 0.0\) (no pesticide), \(s = 0.5\), \(s = 0.75\)?
  4. By special permission, she could get a pesticide with the maximum strength of \(s = 1.5\). Plot this trajectory. What happens to the ladybugs and aphids if she uses this pesticide?
PAGE 14

pplane8 Phase Portraits

  • The routine pplane8 is already loaded on all ITaP machines as standard software. (If you are using your own copy of MATLAB you may need to download pplane8 from http://math.rice.edu/~dfield)
  • You may also access MATLAB through the Software Remote:
    http://goremote.ics.purdue.edu
  • To access pplane8, at a MATLAB prompt type: pplane8
  • A popup window will appear similar to that for dfield8 (see below).
  • Correctly enter your system of differential equations and the range of values of the independent and dependent variables. Hit Proceed and a graphics window will appear with the direction field of your system of differential equations. Click the mouse at any point and the corresponding trajectory will be plotted.
  • There are several options available in the graphics display window: printing, keyboard input of initial conditions, inserting text, erasing solutions, zoom, etc.
  • You may have up to six (6) parameters to quickly vary your system of differential equations.
  • pplane8 is very similar to dfield8 in its syntax and use.
Screenshot of the pplane8 Setup window with input fields for differential equations x' and y', parameters, and display window ranges.
PAGE 15

Quiz 10

MA 266, July 22

SECTION:

NAME:

Problem 1. (10 points.)

Express the solution of the given initial value problem in terms of a convolution integral.

\[ y^{(4)} - y = g(t), \quad y(0) = y'(0) = y''(0) = y'''(0) = 0 \]

Problem 2. (10 points.)

Tank 1 initially contains 20 gals water with 15 oz of salt in it, while Tank 2 initially contains 50 gals of water with 10 oz of salt in it. Water containing 2 oz/gal of salt flows into Tank 1 at a rate of 5 gal/min and the well-stirred mixture flows from Tank 1 into Tank 2 at the same rate of 5 gal/min. The solution in Tank 2 flows out to the ground at a rate of 3 gal/min. If \( x_1(t) \) and \( x_2(t) \) represent the number of ounces of salt in Tank 1 and Tank 2, respectively, set up but do not solve an initial value problem describing this system.