Part II Problems and Solutions Problem 1: [Complex and repeated eigenvalues] (a) The population of long-tailed weasels and meadow voles on Nantucket Island has been studied by biologists. They measure the populations relative to a baseline, in hundreds of animals. So x (2) = 5 means that at t = 2 there are 500 more weasels than the baseline value, and y(2) = −5 means that at t = 2 there are 500 fewer voles than the baseline value. Biologists from MIT have established the following relationship between x (t) and y(t): . x = (0.5) x + y , . y = −(2.25) x + (0.5)y So the natural growth rate for each species is 0.5, and cross terms show that more voles are good for weasels but more weasels are very bad for voles. Work out the population evolution predicted by this model. (Linear Phase Portraits: Matrix Entry may be useful to you in visualizing this.) What are the eigenvalues? For . one eigenvalue, find the exponential solution of u = Au. Then take the real and imaginary parts to produce two real solutions. Suppose that at t = 0 there are 100 more weasels than baseline, and the vole population is the baseline value. What is the solution to this initial value problem? Is the number of weasels increasing at t = 0? How about the number of voles? When does the number of voles next equal its baseline value (if ever)? Please sketch the phase portrait and the graphs of x (t) and y(t) (for this initial condition) for t it clear how these three pictures are related: indicate on between about −2 and +2. Make � � kπ x (t) the trajectory the position of when t = for k = −2, −1, 0, 1, 2. y(t) 3 (b) Invoke the Mathlet Linear Phase Portraits: Matrix Entry. Play with the tool for a while to get a feel of it. Notice that the eigenvalues can be displayed on the complex plane. Deselect the [Companion Matrix] option, so you can set all four entries in the matrix. Se­ lect the [eigenvalues] option, so the eigenvalues become visible by means of a plot of their location in the complex plane and also a read-out of their values. � � 1 b Set the sliders so that A = . Watch what happens to the phase portrait as b varies 0 1 from −4 to 4. For each value of b, the applet suggests a pair of eigenvalues; verify what it claims. For each value of b, describe the collection of all eigenvectors for each eigenvalue. (This description will depend upon b.) For each value of b, write down all the normal mode solutions (i.e. all the solutions of the form eλt v, where λ is a number and v is a vector). If the system is defective, find a complementary solution. Take one value of b for which the system is complete and sketch the phase portrait. Take one value of b for which the system is defective and sketch the phase portrait. Part II Problems and Solutions OCW 18.03SC � 0.5 1 Solution: (a) A = has characteristic polynomial p A (λ) = λ2 − λ + 2.5, −2.25 0.5 and eigenvalues 1±23i . An eigenvector for λ1 = 1+23i satisfies ( A − λ1 I )v1 = 0, that is, � � � � −3i/2 1 1 v1 = 0. One choice is v1 = . The normal mode is then −9/4 −3i/2 3i/2 � � � � 1 cos(3t/2) ( 1 + 3i ) t/2 t/2 e , which has real and imaginary parts u1 = e 3i/2 −(3/2) sin(3t/2) � � sin(3t/2) and u2 = et/2 . (3/2) cos(3t/2) � � . 1 The initial condition is u(0) = , which, conveniently, is satisfied by u1 . Since u = 0 � � � � . . 1 0.5 Au, we find u(0) = A = . So x (0) = 0.5, and the weasel population is 0 −2.25 increasing at t = 0 while the number of voles is decreasing. y(t) = 0 occurs next when 3t/2 = π, or t = 2π/3. � d'Arbeloff Interactive Math Project Linear Phase Portraits: Matrix Entry Help The graphs of x (t) = et/2 cos(3t/2) and y(t) = −(3/2)et/2 sin(3t/2) are “anti-damped” sinusoids, with increasing amplitude. The relevant trajectory is the one crossing the positive x axis half way out. The values of u(t) are� � � � � π� � � −1 0 −π/3 −π/6 = e , u − = e , u − 2π 3 3 0 3/2 � � � � � � 1 0 u (0) = , u π3 = eπ/6 , 0 −3/2 � � � 2π � −1 π/3 u 3 =e . 0 � � 1 b (b) [8] With A = , p A (λ) = λ2 − 2λ + 1 = (λ − 1)2 , so we have a repeated eigen­ 0 1 � � 0 b value λ1 = 1. To find an eigenvector form A − λ1 I = . A nonzero eigenvector 0 0 � � 1 is given (for any b) by v = . If b �= 0, the eigenvectors for value λ1 are exactly the 0 multiples of v (the matrix is defective), but for b = 0, A = I and any vector � � is an eigen­ c vector (the matrix is complete). When b �= 0, the normal modes are et , for c a real 0 constant. When b = 0, the normal modes are et v for any vector v. When b �= 0, we must y det tr x Companion Matrix A= 0.51 1.00 -2.25 0.51 eigenvalues Clear -4 -2 x = Ax 0 2 4 a -4 c 2 0.51 -2 0 2 4 -2.25 spiral source -4 -2 0 2 4 -2 0 2 4 b -4 d 1.00 0.51 Part II Problems and Solutions OCW 18.03SC � solve ( A − λ1 I )w = v1 , that is, 0 b 0 0 � � 1 0 w= � � t λ t t 1 extra solution is u2 = e (tv1 + w) = e . 1/b � � . The solution is w = 0 1/b � , so the Problem 2: [Qualitative behavior of linear systems] We will use Linear Phase Portraits: Matrix Entry to investigate the � � phase portraits . a −3 of the homogeneous linear equation u = Au, where A = , as a varies. The 1 −1 focus�is now on�the colorful diagram at the upper left. To start with, set the matrix to −4 −3 A= . Then move the a slider up to a = 4, and watch (1) the movement of the 1 −1 mark on the (Tr,Det) plane; (2) the movement of the eigenvalues in the complex plane; and (3) the variation of the phase portrait. (a) Compute the trace and determinant of A. (They will depend upon a, of course.) Find an equation for the curve (or line) traced out by the mark on the (Tr,Det) plane. (b) You notice that the curve in the (Tr,Det) plane enters a number of different regions. When the cursor crosses a red boundary, the trajectories and the eigenvalue indicators turn red. Work out what the values of a are at those crossings. (So this is: where det A = 0, where det A = (trA/2)2 (twice, once not represented on the Mathlet), and where trA = 0. (c) There are nine phase portrait types represented as a varies (five regions and four walls). Draw an interval from −5 to +4. On it, mark the four values of a at which the ma­ trix crosses one of the walls. Indicate the type of phase portrait you have at each of the marked points and along the intervals between them. That is, classify the phase por­ trait into one of the following types, as in the Supplementary Notes, §25: spiral (sta­ ble/unstable, clockwise/counterclockwise), node (stable/unstable); saddle; center (clock­ wise/counterclockwise); star (stable/unstable); defective node (stable/unstable; clock­ wise/counterclockwise); degenerate (comb (stable/unstable), constant, parallel lines). (The applet uses the alternative terms “source” and “sink” for “unstable” and “stable.”) (d) For each of the four special values, and for your choice of one value in each of the five regons, make a sketch of the phase portrait. Be sure to include and mark as such any eigenlines, and the direction of time. Solution: (a) trA = a − 1, det A = 3 − a, so trA = 2 − det A. det A = 0 when√a = 3. trA = 0 when a = 1. det A = (trA)2 /4 when a2 + 2a − 11 = 0 or a = −1 ± 2 3, i.e. a � −4.4641 and a = 2.4641. √ (c) Diagram√showing: a < −1 − 2 3—stable node = nodal sink a = −1 − 2 3—defective stable node = defective nodal sink 3 Part II Problems and Solutions OCW 18.03SC √ −1 − 2 3 < a < 1—counterclockwise stable spiral = spiral sink a = 1—counterclockwise center √ 1 < a < −√1 + 2 3–counterclockwise unstable spiral = spiral source a = 1√ + 2 3—unstable defective node = defective nodal source 1 + 2 3 < a < 3—unstable node = nodal source a = 3—unstable degenerate comb 3 < a—saddle √ (b)-(c) Here √ are pictures for a = 0, 1, 2, −1 + 2 3, 2.75, 3,√4. −1 − 2 3 (a = −2 3 omitted.) The picture for some a < √ would show a nodal sink, and that for a = −1 − 2 3 would show a defective nodal sink. 4 Part II Problems and Solutions OCW 18.03SC Problem 3: Let c be a real constant. This problem will analyze the system x� = y y� = cx − 2y, (a) What is the characteristic polynomial of the coefficient matrix A for the system? (b) Compute its eigenvalues and eigenvectors. The answer depends on c so you will need to break your answer into cases. (c) Write down the general real solution to the equation. Again you will need to break into cases depending on c. (The trace-determinant diagram will help.) (d) Open the visual Linear Phase Portraits: Matrix Entry, click the eigenvalues button on and the companion matrix button off. Using representative values of c give sketches of all the different types of phase portraits possible as c varies. Using your answer in part (c) explain the portrait when c = −3. Solution: (a) p(λ) = λ2 + 2λ − c. √ (b) Eigenvalues: λ1 , λ2 = −1 ± 1 + c. We can write the eigenvectors with just two cases. � i) c �= −1: two different eigenvalues, eigenvector corresponding to λ j is v = ii) c = −1: repeated eigenvalue, λ = −1 � � � � 1 0 eigenvector = v1 = , generalized eigenvector = v2 = . −1 1 (Recall, this means Av2 − λv2 = v1 . The vector v2 is not unique.) 5 1 λj � . Part II Problems and Solutions OCW 18.03SC (c) We determined all possible cases using the trace-determinant diagram below. √ i) −1 < c: real eigenvalues, λ1 , λ2 = −1 ± 1 + c. � � � � 1 1 λ t λ t Using part (b), general real solution: x = c1 e 1 + c2 e 2 . λ1 λ2 Subcases: i.1) 0 < c: 1 negative, one positive eigenval.: saddle (unstable). i.2) c = 0: eigenvalues are negative and 0: line of critical points. i.3) −1 < c < 0: 2 unequal negative eigenvalues: nodal sink (asymp. stable). ii) c = −1: 1 eigenval. = -1, one eigenvector: improper nodal sink � � � � � � �� 1 1 0 − t − t General sol.: x = c1 e + c2 e t + . −1 −1 1 iii) c < −1: complex roots with negative real part: spiral sink (asymp. stable) � � √ 1 Let ω = −c − 1. This has eigenvalue/vector λ = −1 + iω, v = . (and −1 + iω the complex conjugates). � � cos ωt + i sin ωt One complex solution: x̃1 = eλt v = e−t (− cos ωt − ω sin ωt) + i (− sin ωt + ω cos ωt) � � � � cos ωt sin ωt − t − t general real solution: x = c1 e + c2 e . − cos ωt − ω sin ωt − sin ωt + ω cos ωt det A � � 0 1 Coeff. matrix A = c −2 ⇒ trA = −2 and det A = −c. In the trace-det. plane A is on the vertical line trA = −2. This is the dashed line in the picture. It passes through 5 cases as shown. (iii) c < −1 (spiral sink) (ii) c = −1 (improper sink) (i.3) − 1 < c < 0 (nodal sink) (i.2) c = 0 (line of c.p.) (i.1) c > 0 (saddle) (d) We match the diagrams to the classification in part (c) as follows: (i.1) c = 8, c = 1, (i.2) c = 0, (i.3) c = −.5, (ii) c = −1, (iii) c = −2, c = −10. 6 • • trA Part II Problems and Solutions OCW 18.03SC When c = −3 the portrait is a spiral towards the origin. The answer to part (c) says that the eigenvalues are complex with negative real part. The imaginary part leads to sin and cos in the solution, which causes the circular part of the spiral. The negative real part makes it spiral in to the origin as t → ∞. 7 MIT OpenCourseWare http://ocw.mit.edu 18.03SC Differential Equations�� Fall 2011 �� For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.