SOLUTION: The path of a roller coaster is to be modelled by a piecewise function made of cubic functions It must have the following features -The roller coaster is a straight line roller c

Algebra ->  Rational-functions -> SOLUTION: The path of a roller coaster is to be modelled by a piecewise function made of cubic functions It must have the following features -The roller coaster is a straight line roller c      Log On


   



Question 914493: The path of a roller coaster is to be modelled by a piecewise function made of cubic functions
It must have the following features
-The roller coaster is a straight line roller coaster
-Its total horizontal length is less the 200m
-The track starts at 75m above the ground
-The height must not reach greater than 75m at any given point
-No ascent or descent should be greater than 80 degrees to the horizontal
-The beginning and end of the roller coaster must have a zero incline
-It must not go below ground
-There must be a minimum of two descents

Answer by KMST(5328) About Me  (Show Source):
You can put this solution on YOUR website!
I do not know what strategy is best or what strategy is expected.
A straight line roller coaster can be expressed as y=f%28x%29 , where
y= height above the ground, and
x= horizontal distance from the starting point.
Making it a piecewise function made of cubic functions helps somewhat.
The requirement for minimum (ground level, so y%3C=0 ),
maximum height (no more than 75m, so y%3C=75 ), and
maximum slope (no more than 80%5Eo to the horizontal, so abs%28dy%2Fdx%29%3Ctan%2880%5Eo%29 )
suggest that you are supposed to use calculus.
Cubic functions can have one maximum and one minimum,
as seen in the graphs of f%28x%29=2x%5E3-3x%5E2 , which slopes down from f%280%29=0 to f%281%29=-1 graph%28300%2C300%2C-0.5%2C1.5%2C-1.5%2C0.5%2C2x%5E3-3x%5E2%29
and f%28x%29=-2x%5E3%2B3x%5E2 graph%28300%2C300%2C-0.5%2C1.5%2C-0.5%2C1.5%2C-2x%5E3%2B3x%5E2%29 , which does the opposite.
Calculating the derivatives shows that the function's maxima and minima area at x=0 and x=1.
In fact, I found those functions by starting with f%28x%29=ax%5E3%2Bbx%5E2%2Bcx%2Bd ,
and setting up equations making the derivatives zero at x=0 and x=1 and equations making the maximum and minimum zero, -1, or 1 as needed. (Luckily, the system of 4 linear equations that results is easy, because you immediately get c=0 and d=0 .

If we take the interval between maximum and minimum in those functions, dilate it as needed, and shift it up as needed, we can get the three pieces needed for the piecewise function.
x=0 to end at x=end%3C=200
A first piece would be an initial downslope (descent) from 75m to a minimum at or above ground.
The second piece would be an upslope to a maximum no greater than 75m.
The third piece would be a second downslope (descent) to a minimum at ground level.
The beginning and end of each piece (and the whole ride) have a slope of zero by design.

The maximum limit for the slope is no problem.
The second derivative of the function is zero for the point of maximum slope.
For either of the f%28x%29=ax%5E3%2Bbx%5E2 functions above, the first and second derivatives are
df%2Fdx=3ax%5E2%2B2bx and d%5E2f%2Fdx%5E2=6ax%2B2b .
The maximum (or minimum) slope occurs when
d%5E2f%2Fdx%5E2=6ax%2B2b=0--->6ax=-2b--->x=-b%2F3a.
At that point the slope is the value of the derivative,
3a%28-b%2F3a%29%5E2%2B2b%28-b%2F3a%29=b%5E2%2F3a-2b%5E2%2F3a=-b%5E2%2F3a .
The absolute value of that derivative is b%5E2%2F%283%2Aabs%28a%29%29=3%5E2%2F%283%2A2%29=3%2F2 .
The maximum slope will be 3%2F2=1.5 adjusted by the dilation factors used.
Since tan%2880%5Eo%29=5.67 (rounded down), we have plenty of wiggle room.
Having the roller coaster go from 75m to ground in 20m is a bit extreme,
but it would mean a maximum downslope of 1.5%2A%2875%2F20%29=5.625 ,
and it would still be permissible.

There are a lot of choices.
You can make the first descent to go from 75m to 25m, or from 75 m to the ground, for example.
That first descent could happen over a horizontal distance of 20 meters (from x=0 to x=20),
or it could happen over 50 meters (from x=0 to x=50).
Similarly, the first upslope could go up to a height of 25 meters, 50 meters, or even an unrealistic 75 meters.
There is also a choice on how to get to the equations for each piece.
You could start from scratch, with f%28x%29=ax%5E3%2Bbx%5E2%2Bcx%2Bd ,
setting values for the function and derivative at the beginning and end of each piece, and find the coefficients a, b, c, and d.
You could also use the functions given above, and just transform them by dilating and shifting them as needed.

One possibility:
f%28x%29=red%280.0008x%5E3-0.06x%5E2%2B75%29 for red%280%3C=x%3C=50%29 for the first descent,
f%28x%29=green%28-0.0004x%5E3%2B0.09x%5E2-6x%2B150%29 for green%2850%3Cx%3C=100%29 for the upslope, and
f%28x%29=blue%280.0001x%5E3-0.045x%5E2%2B6x-200%29 for blue%28100%3Cx%3C=200%29 for the second descent.