Math 1483 - Quiz 4

YOUR NAME HERE

Remember, ALT+7 gives a new text cell, be sure to explain your answers, if needed!

Problem 1

The background information for this problem was taken from:

https://www.tsijournals.com/articles/elzaki-transform-for-two-tank-mixing-problems.pdf

You do not need to know anything that appears in that pdf, the two functions will be defined for you, this is just for reference.

We  have  two 100 gallon tanks.  Tank A  is  initially  full  of  salt  water  with  a  salt  concentration  0.5  liter/gallon. Tank B  is  full  of  pure  water.  Pure  water  enters tank A  at  2  gal/min  water  and exits  the  well  mixed  tank  A  at  two  gal/min  and then flows into tank B.  The well mixed water in Tank B exits  at a rate of 2 gal/min and flows out of the system.   It can be shown that in this situation, the amount of salt in each tank can be modeled by the following two functions.

The amount of salt in Tank A (measured in liters), as a function of t (in minutes), is given by:
A(t) = 50(e^(-t/50))

The amount of salt in Tank B (measured in liters), as a function of t (in minutes), is given by:
B(t) = 50t (e^(-t/50))

A[t_]:=50*Exp[-t/50];
B[t_]:=t*Exp[-t/50];

Part 1

Evaluate A(0) and B(0) and compare those results to the situation described in the problem.  Do they agree?

Part 2

Plot A(t) and B(t) on the same graph, for the time range t=0 minutes to t=200 minutes.

Part 3

Explain how the graphs given in part 2 agree with your intuition about how much salt should be in each tank as time passes.  Be sure to include the initial state, the mixing of the tanks, and the amount of salt in the tanks after a long period of time has passed.

Part 4

When do both tanks have the same salinity?

Part 5

At what time was there the most salt in Tank B?  And how much salt was there?

Part 6

Compare your results from Part 4 and Part 5, and then explain.

Problem 2

Normally, if we draw two random lines in a plane, they will intersect at a single point.  What happens if we take three lines and plot them.  What do you think the chances are of all three points intersecting at single point?

Part 1

Consider the following two lines:
y=3x-2
y=-2x+1
Find where these two lines intersect by using the Solve command.

Part 2

Plot both of the lines, and verify that your solution is indeed where the two lines intersect.

Part 3

Verify that the following three lines do not have a single point of intersection.
y=3x-2
y=-2x+1
y = -x-1

Part 4

Find a value for b such that the following three lines do intersect at a single point.
y=3x-2
y=-2x+1
y = -x-b

Part 5

Plot all three lines on the same graph to verify that they all intersect at the same point.

Problem 3

The following table gives the total number of people fully vaccinated in Oklahoma over a window of time in April of 2021:

({{Day (in April),  People Fully Vaccinated }, {1, 1243871}, {2, 1268778}, {3, 1290295}, {4, 1307768}, {5, 1315073}, {6, 1318146}, {7, 1335798}, {8, 1351773}, {9, 1368221}, {10, 1386123}, {11, 1402339}, {12, 1410306}, {13, 1414279}, {14, 1417964}, {15, 1428544}, {16, 1438343}, {17, 1447491}})

Data was gathered from: https://github.com/owid/covid-19-data/tree/master/public/data/vaccinations

VaccineData =  {{1, 1243871},{2,1268778},{3,1290295},{4,1307768},{5,1315073},{6,1318146},{7,1335798},{8,1351773},{9,1368221},{10,1386123},{11,1402339},{12,1410306},{13,1414279},{14,1417964},{15,1428544},{16,1438343},{17,1447491}};

Part 1

Plot the data.  Be sure to label your axes appropriately.

Part 2

Compute the rate of change for the data.

Part 3

On what day from the data set was there the greatest increase in vaccinations?

Part 4

What is the average rate of change in the number of people vaccinated over the entire period of time in the data set.

Problem 4

Time for a “Let’s find something fun to do with Mathematica” problem.

Part 1

Have Mathematica generate a random integer between 1,000 and 1,000,000.

Part 2

Have Mathematica find all the prime factors of the random integer, and express your integer as product of these prime integers to powers.