Project Requirement: Linear Algebra With Computer Application
Project Requirement: Linear Algebra With Computer Application
Problem Set #1
Problem Set #2
By:
1. The figure shows a network of one-way streets with traffic flowing in the directions
indicated. The flow rate along the streets are measured as the average number of
vehicles per hour.
a. Set-up a linear system where solution provides the unknown traffic flow rate.
A: X1 + X3 = 800
B: X3 + X6 = 750
C: X1 + X4 = 200 + X2
D: X7 + 600 = X6 + X4
E: X5 + 450 = X7 + 400
F: X2 + 100 = 600 + X5
c. Is it possible to close the road from A to B for construction and keep traffic flowing on
the streets? Explain.
X1 – 6X3 = 0
2X1 + X2 – 6X3 = 0
2X1 – 12X3 =0
3. Find the cubic polynomial whose graph passes through the points (-1, -1), (0,1),
(1,3), and (4, -1).
Since there are three points, we will use an interpolating polynomial of degree n= 3.
P ( x ) =a0 +a 1 x +a2 x 2+ a3 x 3
X1 = -1, Y1 = -1
X2 = 0, Y2 = 1
X3 = 1, Y3 = 3
X4 = 4, Y4 = 1
Therefore, the final answer is:
4. A company produces web design, software and networking services. View the
company as an open economy described by:
Web
Design 0.40 0.20 0.45
Product
[
A = 0.30 0.35 0.30
0.15 0.10 0.20 ]
b. Suppose that the customers have a demand for $5400 worth of Web design, $2700
worth of Software, and $900 worth of networking. Use row reduction to find a
production vector that will meet this demand exactly.
0.40 0.20 0.45 x1 5400
[
A = 0.30 0.35 0.30 ,
0.15 0.10 0.20 ] []
x = x2 ,
x3 [ ]
d = 2700
900
Therefore, this tells us that the result is consistent, and the production will not
meet the demand of the open economy exactly because the demand by producing -
$43,148 worth of Web design output, -$52,450 worth of Software, -$27,043 work of
Networking.
Problem Set #2:
1. A country is divided into three demographic regions. It is found that each year 5% of
the residents of region 1 move to region 2, and 5% move to region 3. Of the residents
of region 2, 15% move to region 1 and 10% move to region 3. And of the residents of
region 3, 10% move to region 1 and 5% move to region 2. What percentage of the
population resides in each of the three regions after a long period of time?
[
P = 0.05 0.75 0.05
0.05 0.10 0.85 ]
We need to find the steady state vector q among the eigenvectors corresponding to
eigenvalue.
[
P = 0.05 0.75 0.05
0.05 0.10 0.85 ] [ ~ 0 0.175 −0.1
0 0 0 ] [
~ 0 −1.75 1
0 0 0 ]
To obtain the steady state vector, note that q is a probability vector. We choose t
such that (3.25 + 1 + 1.75)t = 1 which will give t = 1/6, and q = (0.54167, 0.16666,
0.29167), an eigenvector which is also a probability vector.
Therefore, after a long period of time, 54.17% of the population reside in region 1,
16.46% and 29.16% reside in Regions 2 and 3 respectively.
2. A mouse is placed in a box with nine rooms as illustrated in the figure below.
Assume that, at regular intervals of time, it is equally likely that the mouse will decide
to go through any door in the room or stay in the room.
A. Construct the 9×9 transition matrix for this problem and show that it is regular.
[ ]
1/3 1/4 1/3 0 1/5 0 0 0 0
0 1/4 1/3 0 0 1/ 4 0 0 0
1/3 0 0 1/4 1/5 0 1/3 0 0
P= 0 1/4 0 1/4 1/5 1/ 4 0 1/4 0
0 0 1/3 0 1/5 1/ 4 0 0 1/3
0 0 0 1/4 0 0 1/3 1/4 0
0 0 0 0 1/5 0 1/3 1/4 1/3
0 0 0 0 0 1/ 4 0 1/4 1/3
1/11
[]
4 / 33
1/11
4 / 33
V = 5/33
4 / 33
1/11
4 / 33
1/11