Back to Matrix multiplication and linear combinations

Exercise 12

Avg difficulty 2.5

Suppose that a city is starting a bicycle sharing program with bicycles at locations BB and CC. Bicycles that are rented at one location may be returned to either location at the end of the day. Over time, the city finds that 80% of bicycles rented at location BB are returned to BB with the other 20% returned to CC. Similarly, 50% of bicycles rented at location CC are returned to BB and 50% to CC.

To keep track of the bicycles, we form a vector xk=[BkCk]\xvec_k = \twovec{B_k}{C_k} where BkB_k is the number of bicycles at location BB at the beginning of day kk and CkC_k is the number of bicycles at CC. The information above tells us how to determine the distribution of bicycles the following day: Bk+1=0.8Bk+0.5CkCk+1=0.2Bk+0.5Ck.\begin{alignedat}{3} B_{k+1} & {}={} 0.8B_k & {}+{} & 0.5 C_k \\ C_{k+1} & {}={} 0.2B_k & {}+{} & 0.5 C_k. \\ \end{alignedat} Expressed in matrix-vector form, these expressions give xk+1=Axk\xvec_{k+1} = A\xvec_k where A=[0.80.50.20.5]A = \left[\begin{array}{rr} 0.8 & 0.5 \\ 0.2 & 0.5 \\ \end{array}\right].

  1. Let's check that this makes sense.

    1. Suppose that there are 1000 bicycles at location BB and none at CC on day 1. This means we have x1=[10000]\xvec_1 = \twovec{1000}{0}. Find the number of bicycles at both locations on day 2 by evaluating x2=Ax1\xvec_2 = A\xvec_1.

    2. Suppose that there are 1000 bicycles at location CC and none at BB on day 1. Form the vector x1\xvec_1 and determine the number of bicycles at the two locations the next day by finding x2=Ax1\xvec_2 = A\xvec_1.

  2. Suppose that one day there are 1050 bicycles at location BB and 450 at location CC. How many bicycles were there at each location the previous day?

  3. Suppose that there are 500 bicycles at location BB and 500 at location CC on Monday. How many bicycles are there at the two locations on Tuesday? on Wednesday? on Thursday?

Austin, Understanding Linear Algebra, §2.2 Matrix multiplication and linear combinations, Exercise 12

AI Tutor

Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.