Computational modelling techniques Exercise set 5 Solutions 1. The gross national product (GNP) represents the sum of consumption purchases of goods and services, government purchases of goods and services, and gross private investment (which is the increase in inventories plus buildings constructed and equipment acquired). Assume that the GNP is increasing at the rate of 3% per year, and that the national debt is increasing at a rate proportional to the GNP. a) Construct a system of two ordinary differential equations modeling the GNP and national debt. ๐๐บ๐๐ = 0.03 ๐บ๐๐ ๐๐ก ๐๐ท = ๐ ๐บ๐๐, ๐ > 0 ๐๐ก b) Solve the system in part a, assuming the GNP is M0 and the national debt is N0 at year 0. For the GNP, we have to solve ๐๐บ๐๐ ๐๐ก = 0.03 ๐บ๐๐, given that GNP(t0=0) = M0. ๐๐๐ก๐๐๐๐๐ก๐๐๐ ๐๐บ๐๐ = 0.03๐๐ก ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ln(๐บ๐๐) + ๐ถ1 = 0.03๐ก + ๐ถ2 โ ln(๐บ๐๐) = 0.03๐ก + ๐ถ ๐บ๐๐ At time t0=0 we get the equation ln(๐บ๐๐) = 0.03๐ก0 + ๐ถ โ ๐ถ = ln(๐0 ) Replacing the value of the constant C into the previous equation yields: ๐บ๐๐ ๏ฟฝ = 0.03๐ก โ ๐บ๐๐(๐ก) = ๐0 ๐ 0.03๐ก ln(๐บ๐๐) = 0.03๐ก + ln(๐0 ) โ ln ๏ฟฝ ๐0 For the national debt D, we have to solve ๐๐๐ก๐๐๐๐๐ก๐๐๐ ๐๐ท ๐๐ก ๐๐ท = ๐๐0 ๐ 0.03๐ก ๐๐ก ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๐ท + ๐ถ1 = At time t0=0 we get the equation ๐0 = = ๐๐บ๐๐, given that D(t0=0)=N0. ๐๐0 0.03๐ก ๐๐0 0.03๐ก ๐ + ๐ถ2 โ ๐ท = ๐ +๐ถ 0.03 0.03 ๐๐0 0.03๐ก ๐๐0 0 + ๐ถ โ๐ถ = ๐ โ ๐ 0 0.03 0.03 Replacing the value of the constant C into the previous equation yields: ๐ท(๐ก) = ๐๐0 0.03๐ก (๐ โ 1) + ๐0 0.03 c) Does the national debt eventually outstrip the GNP? Consider the ratio of the national debt to the GNP. If the national debt is to outstrip the GNP, we get: ๐ท(๐ก) > ๐บ๐๐(๐ก) โ ๐๐0 0.03๐ก (๐ โ 1) + ๐0 > ๐0 ๐ 0.03๐ก โ 0.03 ๐๐0 (๐ 0.03๐ก โ 1) > 0.03(๐0 ๐ 0.03๐ก โ ๐0 ) โ (๐ โ 0.03)๐0 ๐ 0.03๐ก > ๐๐0 โ 0.03๐0 If the ratio k satisfies k > 0.03, then the relation above is equivalent to ๐๐0 โ 0.03๐0 ๐ 0.03๐ก > (๐ โ 0.03)๐0 so we can conclude that national debt eventually outstrips the GNP in this case. If we have k = 0.03, we obtain 0 > ๐๐0 โ 0.03๐0 = 0.03(๐0 โ ๐0 ) and in this case the debt is larger than the GNP only if this was also the case in year 0. For k < 0.03 we must have ๐ 0.03๐ก < ๐๐0 โ 0.03๐0 . (๐ โ 0.03)๐0 If the right hand side is negative, the inequality can never hold. If it is positive, it is still a constant and in the long run the inequality becomes false, which means that GNP will become greater than D even if it starts smaller. 2. For the differential equation ๐๐ฆ ๐๐ฅ = (๐ฆ โ 1)(๐ฆ โ 2)(๐ฆ โ 3) identify the equilibrium values. Which are stable and which are unstable? ๐๐ฆ ๐๐ฅ The equilibrium points are given by solving the equation equilibrium points: y1=1, y2=2, and y3=3. = 0, so we get three To identify the behavior around the equilibrium points, we need to establish the sign of the ๐2 ๐ฆ function (๐ฆ โ 1)(๐ฆ โ 2)(๐ฆ โ 3), then solve ๐๐ฅ 2 = 0 and establish its sign. yโ<0 yโ>0 yโ<0 yโ>0 y 1 2 3 ๐2 ๐ฆ = (๐ฆ 3 โ 6๐ฆ 2 + 11๐ฆ โ 6)โฒ = (3๐ฆ 2 โ 12๐ฆ + 11)(๐ฆ โ 1)(๐ฆ โ 2)(๐ฆ โ 3) ๐๐ฅ 2 ๐2 ๐ฆ โ3 = 0 โ ๐ฆ โ {2 ± , 1, 2, 3} 2 3 ๐๐ฅ Decreasing concave function Increasing function; concavity changes convex to concave yโ<0 yโ>0 yโโ<0 yโโ>0 Increasing convex function Decreasing function; concavity changes convex to concave yโ<0 yโโ<0 yโโ>0 yโ>0 yโโ<0 yโโ>0 y 1 2-โ3/3 2 2+โ3/3 3 The points y1=1 and y3=3 are unstable equilibrium points, and y2=2 is stable. 3. Consider two species whose survival depends on their mutual cooperation. An example would be a species of bee that feeds primarily on the nectar of one plant species and simultaneously pollinates the plant. One simple model of this mutualism is given by the autonomous system ๐๐ฅ = โ๐๐ฅ + ๐๐ฅ๐ฆ ๐๐ก ๐๐ฆ = โ๐๐ฆ + ๐๐ฅ๐ฆ ๐๐ก a) What assumptions are implicitly being made about the growth of each species in the absence of cooperation? In absence of cooperation, both species would decline up to eventual extinction. b) Interpret the constants a, b, m and n in terms of the physical problem. a and m are the decay rates for the two species. b and n represent the positive effect of one species on the other. c) What are the equilibrium levels? ๐๐ฅ = 0 โ โ๐๐ฅ + ๐๐ฅ๐ฆ = 0 โ ๐ฅ(๐๐ฆ โ ๐) = 0 ๐๐ก ๐๐ฆ = 0 โ โ๐๐ฆ + ๐๐ฅ๐ฆ = 0 โ ๐ฆ(๐๐ฅ โ ๐) = 0 ๐๐ก ๐ ๐ ๐ ๐ The two equilibrium points are (0, 0) and ๏ฟฝ , ๏ฟฝ. d) Perform a graphical analysis and indicate the trajectory directions in the phase plane. ๐ ๐๐ฅ โฅ 0 โ โ๐๐ฅ + ๐๐ฅ๐ฆ โฅ 0 โ ๐ฆ โฅ ๐ ๐๐ก y ๐ ๐๐ฆ โฅ 0 โ โ๐๐ฆ + ๐๐ฅ๐ฆ โฅ 0 โ ๐ฅ โฅ ๐ ๐๐ก ๐ ๐ ๐ ๐ e) Interpret the outcomes predicted by your graphical analysis. Do you believe the model is realistic? Why? ๐ ๐ When either of the two species is under the threshold ( or respectively), due to ๐ ๐ the mutual cooperation between species, also the other population will be driven down, leading eventually to the extinction of the two species. When either one of the two populations is above the corresponding threshold, due to the mutualism the other species will also increase, leading to infinite growth. The model reflects well mutual cooperation among two species, but it is not realistic in predicting infinite growth. A maximum supported population factor should be introduced for both species. 4. In the model for the arms race (see course 11, slides 23-25), assume that an-bm<0, so the equilibrium point lies in a quadrant other than the first one in the phase plane. Sketch the lines dx/dt=0 and dy/dt=0 in the phase plane and label them and their intercepts on the coordinate axes. Perform a graphical stability analysis to respond to the following: Model: ๐๐ฅ = โ๐๐ฅ + ๐๐ฆ + ๐ ๐๐ก ๐๐ฆ = ๐๐ฅ โ ๐๐ฆ + ๐ ๐๐ก To find the equilibrium point, the above derivatives should both be zero. We obtain the ๐๐+๐๐ ๐๐+๐๐ , ๏ฟฝ. To decide where this point is located in the plane, we equilibrium point ๏ฟฝ ๐๐โ๐๐ ๐๐โ๐๐ use the hypothesis an-bm<0 and also we assume that, since the signs of each term were chosen to characterize the intuitive behavior of the model, the constants involved in the model are all positive. To draw the two lines, we find their intersection with the axes and plot the corresponding points according to their sign. Next, we need to distinguish, for each line, the semi-plane that makes the corresponding equation positive and the one that makes it negative. For this, it is enough to plug the point (0, 0) in both equation and see that the result is positive for both lines. y ๏ฟฝโ ๐ ๏ฟฝ0, ๏ฟฝ ๐ ๐ , 0๏ฟฝ ๐ A B ๐ ๐ =๐ ๐ ๐ D C ๐ ๐ =๐ ๐ ๐ Region A: ๐๐ฅ ๐๐ก > 0, ๐๐ฆ ๐๐ก <0 ๐ ๏ฟฝ0, โ ๏ฟฝ ๐ ๐ ๏ฟฝ , 0๏ฟฝ ๐ x Region B: Region C: Region D: ๐๐ฅ ๐๐ก ๐๐ฅ ๐๐ก ๐๐ฅ ๐๐ก > 0, < 0, < 0, ๐๐ฆ ๐๐ก >0 ๐๐ฆ ๐๐ก <0 ๐๐ฆ ๐๐ก >0 a) Do any potential equilibrium levels for defense spending exist? List any such points and classify them as stable or unstable. ๐๐+๐๐ ๐๐+๐๐ The only possible equilibrium point is ๏ฟฝ , ๏ฟฝ which due to the sign of an๐๐โ๐๐ ๐๐โ๐๐ bm is negative, and thus not viable for our defense spending model. The equilibrium point is unstable. If we take for example a trajectory that starts in region A, it will move downwards and to the right toward the equilibrium point. As it approaches the equilibrium point, the derivatives dx/dt and dy/dt approach 0. Depending on where the trajectory begins and the sizes of the constants a, b, c, m, n, p, either the trajectory will continue moving downward into region D (and then move away from the equilibrium point), or continue moving rightward into region B (and again move away from the equilibrium point). b) What outcome for defense spending is predicted by your graphical analysis? Since defense expenses are positive, the initial values will correspond to a point in region B (most probable), A or C (if one of the countries spends a lot more than the other. In any case, according to this model, both countries will infinitely increase their defense expenses. 5. Find the local minimum value of the function ๐(๐ฅ, ๐ฆ) = ๐ฅ๐ฆ โ ๐ฅ 2 โ ๐ฆ 2 โ 2๐ฅ โ 2๐ฆ + 4 Calculate the critical point: ๐๐ = ๐ฆ โ 2๐ฅ โ 2 = 0 ๐๐ฅ ๐๐ = ๐ฅ โ 2๐ฆ โ 2 = 0 ๐๐ฆ Check that the point (-2, -2) is a minimum: f(-2, -2)=0; f(-1,-1)=7 > f(-2, -2). 6. Find three numbers whose sum is 9 and whose sum of squares is as small as possible. Let x, y and z be the two numbers. We need to minimize ๐(๐ฅ, ๐ฆ, ๐ง) = ๐ฅ 2 + ๐ฆ 2 + ๐ง 2 in such a way that x+y+z=9. We can use the Lagrange multiplier merit function: ๐ฟ(๐ฅ, ๐ฆ, ๐ง, ฮป) = ๐ฅ 2 + ๐ฆ 2 + ๐ง 2 + ฮป(๐ฅ + ๐ฆ + ๐ง โ 9) Minimize ๐ฟ(๐ฅ, ๐ฆ, ๐ง, ฮป) ๐๐ฟ = 2๐ฅ + ฮป = 0 ๐๐ฅ ๐๐ฟ = 2๐ฆ + ฮป = 0 ๐๐ฆ ๐๐ฟ = 2๐ง + ฮป = 0 ๐๐ง ๐ฅ = 3; ๐ฆ = 3; ๐ง = 3; ฮป = โ6 ๐ฟ๐ฟ =๐ฅ+๐ฆ+๐งโ9=0 ๐ฟฮป ๐(๐ฅ, ๐ฆ, ๐ง) = 27. If we vary ๐ฅ, ๐ฆ, ๐ง we get for example ๐(2, 3, 4) = 29 > 27, so (3, 3, 3) is indeed a minimum point.
© Copyright 2024 ExpyDoc