Path: blob/main/141-Labs/Lab 07 - Project - Mathematical Models, Designing a Roller Coaster.ipynb
700 views
Lab 07 - Project - Mathematical Models: Designing a Roller Coaster
Overview
In this lab, we will apply our knowledge of Calculus to solve a real-world problem.
Important SageMath Commands Introduced in this Lab
ParseError: KaTeX parse error: Undefined control sequence: \hfill at position 32: …|l|l|} \hline \̲h̲f̲i̲l̲l̲ ̲\textbf{Command…Related Course Material
The Problem: Designing a Roller Coaster
Suppose we are asked to design a simple ascent and drop roller coaster with an overall horizontal displacement of 200 feet. By studying pictures of our favorite roller coasters, we decide that our roller coater should begin the ascent along a line of slope 1.5 for the first 20 ft horizontally. Next, it should continue the ascent and then begin the drop along a parabola for the next 100 ft horizontally. Finally, we want it to begin a soft landing at 30 ft above the ground along a cubic for the last 80 ft. The main task is to find that will ensure that the track is smooth at each transition point. We also would like to know the maximum height of the roller coaster.
We will begin by creating our functions. If we choose the origin as our starting point, then we know that since it is a line with slope 1.5 that passes through
Since our roller coaster consists of three curves, it can be set up as a piecewise-defined function:
Before we create the function in SageMath, we need to determine the values of . In order for our track to be connected, we need to make sure that is continuous. Therefore, we need to make sure that and .
In order for our track to be smooth, we cannot have abrupt changes in direction, so the first derivative needs to be continuous. Therefore, we need to guarantee that and
Since we want our roller coaster to begin a soft landing when it has traveled 120 ft horizonatally and is at a height of 30 ft, we need
Finally, in order to have a soft landing, the track should be tangent to the ground at the end of the track.
We now have a system of 7 equations in 7 unknowns which we can solve using the command.
We have found the values for so that our roller coaster is smooth at each transition point.
Now that we have determined the values of , we will create in SageMath using the and then plot our roller coaster.
Note: For syntax reasons, SageMath will only except intervals of the form and . So, in order to specify a function on the domain we will have to use the interval and the interval , which is simply the set consisting of only the point .
Now that we have created , we plot it.
We now want to find the maximum height of the roller coaster. Recall that absolute maxima can only occur at endpoints and critical points. We can find the critical points of a piecewise-defined function in SageMath by using the ParseError: KaTeX parse error: Expected 'EOF', got '_' at position 18: …extbf{.critical_̲points()} command.
Caution: The command does not work correctly on piecewise functions in SageMath.
It follows that the maximum height of the roller coaster could occur at the -values and . From the graph, we can see that the maximum occurs at
Therefore, the maximum height of the roller coaster is 67.5 ft.
Project
Design a larger roller coaster meeting the specifications below and prepare a neat and complete project report as specified by the Project Report Guidelines located on the lab website. The due date will be specified by your TA.
Suppose you are asked to build a roller coaster with an overall horizontal displacement of 600 feet. The coaster should ascend along a straight line of slope 2.5 for the first 30ft horizontally. We continue along three cubics, and for 150ft each. In addition, the coaster should be 210ft above the ground at the 120ft mark, reach a bottom of 37.5ft above the ground at the 270ft mark, and reach a peak 97.5ft above the ground at the 390ft mark. Finally, the coaster should start a soft landing 45ft above the ground along a cubic for the last 120ft.
Your task is to:
Write a system of 16 equations in 16 unknowns such that your track is both continuous and smooth. Make sure to include your equations in your report and you must explain the reasoning for your equations in your report.
Solve the equations in (1) with SageMath to find the values -.
Define and plot a piecewise-defined function, , for your roller coaster. Include the equation for your completed piecewise-defined function (with all values - plugged in) as well as the graph of your roller coaster. Be sure to use the same scalar for both and .
Find the maximum height of your roller coaster and the mark where it occurred.
Extra Credit
Design a more interesting roller coaster of your own.