In this activity, you will determine whether you can swim to safety before a shark attacks. You will need to use piecewise functions and the Net Change Theorem to find the outcome.
The shark senses you and begins accelerating toward you at a rate of 5 m/s\(^2\text{,}\) up to a top speed of 13 m/s. You see the shark coming and begin swimming towards shore at a speed of 2 m/s. Assume there is no time needed for you to accelerate up to your top speed. If the shore is 20 m away from you (and 70 m away from the shark), do you make it to shore before the shark attacks?
For convenience, we will let the sharkβs initial position be \(0\) m and your initial position be \(50\) m. This means that the shore is at a position of \(70\) m.
Calculate by hand or using Maple how long it takes for the shark to reach its top speed of 13 m/s if it accelerates at 5 m/s\(^2\text{.}\) Assign this time to t1. Note that the shark will no longer accelerate after \(t_1\) seconds, since it has reached its top speed.
Define a piecewise function for the sharkβs velocity using the piecewise() command and assign this to sharkvelocity(t). This velocity function should be linearly increasing for \(0 \leq t \leq t_1\) while the shark accelerates and then constant for \(t > t_1\text{.}\)
Integrate \(sharkvelocity(t)\) with respect to \(t\) to find the position function for the shark. Assign this piecewise position function to something like sharkposition(t).
Since your swim velocity is constant, determining your position function is much simpler. Assign the function \(swimvelocity(t) = 2\) and integrate \(swimvelocity(t)\) with respect to \(t\) to find your displacement function (the net change from your initial position). Add 50 to this displacement function for your initial position and assign it to swimposition(t).
Plot the position functions for you and the shark on the same graph. Adjust your plot axes so that you can see the moment that the shark catches up to you.
Evaluate the sharkβs position function at this time to determine the position of the shark when it will catch you. Will you make it to the shore safely?
Instead of swimming, letβs suppose you hop on your board and surf the nearest wave away towards the shore. You are initially at rest, but due to the wave, you accelerate at \(2\) m/s\(^2\) until you reach a top speed of \(4\) m/s.