Math 181 Miniproject 1: Modeling and Calculus.md --- Math 181 Miniproject 1: Modeling and Calculus === **Overview:** In this miniproject you will use technological tools to turn data and into models of real-world quantitative phenomena, then apply the principles of the derivative to them to extract information about how the quantitative relationship changes. **Prerequisites:** Sections 1.1--1.5 in *Active Calculus*, specifically the concept of the derivative and how to construct estimates of the derivative using forward, backward and central differences. Also basic knowledge of how to use Desmos. --- :::info 1\. The table below gives the distance that a car will travel after applying the brakes at a given speed. | Speed (in mi/h) | Distance to stop (in ft) | |----------------- |-------------------------- | | 10 | 5 | | 20 | 19 | | 30 | 43 | | 40 | 76.5 | | 50 | 120 | | 60 | 172 | | 70 | 234 | (a) Find a function $f(x)$ that outputs stopping distance when you input speed. This will just be an approximation. To obtain this function we will first make a table in Desmos. The columns should be labled $x_1$ and $y_1$. Note that the points are plotted nicely when you enter them into the table. Click on the wrench to change the scale of the graph to fit the data better. Since the graph has the shape of a parabola we hope to find a quadratric formula for $f(x)$. In a new cell in Desmos type \\[ y_1\sim ax_1^2+bx_1+c \\] and let it come up with the best possible quadratic model. Use the suggested values of $a$, $b$, and $c$ to make a formula for $f(x)$. ::: (a) ![](https://i.imgur.com/hTek5Vw.png) $f\left(x\right)=\frac{f\left(x+h\right)-f\left(x-h\right)}{2h}$ $f\left(x\right)=0.047619x^2+0.0119048x-0.0714386$ :::info (b) Estimate the stopping distance for a car that is traveling 43 mi/h. ::: (b) The stopping distance can be estimated by showing x=43 and plugging it into the function. $f\left(x\right)=0.047619\left(43\right)^2+0.0119048\left(43\right)-0.0714286=88.50mi/hr$ $f\left(43\right)=88.50ft$ :::info (c\) Estimate the stopping distance for a car that is traveling 100 mi/h. ::: (c) The stopping distance can be shown by pluggin in x=100 into the function. $f(x)=0.047619(100)2+0.0119048(100)-0.0714286=477.31ft$ $f\left(100\right)=477.31ft$ :::info (d) Use the interval $[40,50]$ and a central difference to estimate the value of $f'(45)$. What is the interpretation of this value? ::: (d) To estimate the value of f'(45), the central differential formula will be used. $f\left(x\right)=\frac{f\left(b\right)-f\left(a\right)}{b-a}$ $f'\left(45\right)=\frac{f\left(50\right)-f\left(40\right)}{50-40}$ $f'\left(45\right)=\frac{\left(120\right)-\left(76.5\right)}{50-40}$ $f'\left(45\right)=4.35\ \frac{ft}{\frac{mi}{hr}}$ It can be concluded that the car is accelerating at 45mi/hr and would stop at 4.35ft/mi/hr. :::info (e) Use your function $f(x)$ on the interval $[44,46]$ and a central difference to estimate the value of $f'(45)$. How did this value compare to your estimate in the previous part? ::: (e) f(44) and f(46) must be plugged into the quadradic model. $f\left(x\right)=0.047619x^2+0.0119048x-0.0714286$ $f\left(44\right)=0.047619x\left(44\right)^2+0.0119048\left(44\right)-0.0714286$ $f(44)=92.6427666$ $f\left(46\right)=0.047619x\left(46\right)^2+0.0119048\left(46\right)-0.0714286$ $f(46)=101.2379962$ $f'\left(45\right)=\frac{\left(46\right)-\left(44\right)}{46-44}$ $f'\left(45\right)=\frac{\left(101.2379962\right)-\left(92.6427666\right)}{46-44}$ $f'\left(45\right)=4.29\ \frac{ft}{\frac{mi}{hr}}$ This value is very similar to my estimate in the previous part because the intervals are close in value. :::info (f) Find the exact value of $f'(45)$ using the limit definition of derivative. ::: (f) To find the exact value of f'(45) by using the limit defition of derivative, this formula can be used. $\lim_{h \to 0}\frac{f(x+h)-f(x)}{h}$ plug in numbers $f'\left(45\right)\lim_{h \to 0}\frac{0.047619\left(45+h\right)^2+0.0119048(45+h)-0.0714286)-(0.047619(45)2+0.0119048(45)-0.0714286}{h}$ $f'\left(45\right)\lim_{h \to 0}\frac{(0.047619(h2+90h+2025)+0.535716+0.0119048h-0.0714286)-(96.428475+0.535716-0.0714286}{h}$ $f'\left(45\right)\lim_{h \to 0}\frac{(0.047619h2+4.28571h+96.428475+0.535716+0.0119048h-0.0714286)-96.8927624}{h}$ $f'\left(45\right)\lim_{h \to 0}\frac{0.047519h2+4.2976148h}{h}$ $f'\left(45\right)\lim_{h \to 0}\frac{h(0.047519h+4.2976148)}{h}$ $f'\left(45\right)=4.2976148\ \frac{ft}{\frac{mi}{hr}}$ The exact value of f'(45) is $4.2976148\ \frac{ft}{\frac{mi}{hr}}$ :::success 2\. Suppose that we want to know the number of squares inside a $50\times50$ grid. It doesn't seem practical to try to count them all. Notice that the squares come in many sizes. ![A 50x50 grid](https://i.imgur.com/vm5fGdC.png =300x300) (a) Let $g(x)$ be the function that gives the number of squares in an $x\times x$ grid. Then $g(3)=14$ because there are $9+4+1=14$ squares in a $3\times 3$ grid as pictured below. ![A 3x3 grid containing 9 1x1 squares, 4 2x2 squares and 1 3x3 square](https://i.imgur.com/JGhNudW.png =405x90) Find $g(1)$, $g(2)$, $g(4)$, and $g(5)$. ::: (a) g(1)=1 (1x1)grid g(2)=5(2x2)grid 1+4 g(4)=30(4x4)grid 1+4+9+16 g(5)=55(5x5)grid 1+4+9+16+25 :::success (b) Enter the input and output values of $g(x)$ into a table in Desmos. Then adjust the window to display the plotted data. Include an image of the plot of the data (which be exported from Desmos using the share button ![A picture of a "share" icon](https://i.imgur.com/lQGRxeG.png)). Be sure to label your axes appropriately using the settings under the wrench icon ![A picture of a "grid" icon](https://i.imgur.com/rNnK775.png). ::: (b) ![](https://i.imgur.com/9enMe4O.png) :::success (c\) Use a cubic function to approximate the data by entering \\[ y_1\sim ax_1^3+bx_1^2+cx_1+d \\] into a new cell of Desmos (assuming the columns are labeled $x_1$ and $y_1$). Find an exact formula for $g(x)$. ::: (c\) use the formula $y_1\sim ax_1^3+bx_1^2+cx_1+d$ a=0.3 b=0.5 c=0.2 d= $-8.5\cdot10^{-15}$ $g\left(x\right)=0.3x^2+0.5x^2+0.2x+-8.5\cdot10^{-15}$ :::success (d) How many squares are in a $50\times50$ grid? ::: (d) use the formula $y_1\sim ax_1^3+bx_1^2+cx_1+d$ $g(50)=0.3(50)3+0.5(50)2+0.2(50)+-8.5\times10^{-15}$ $g(50)=42924.95835\ squares$ :::success (e) How many squares are in a $2000\times2000$ grid? ::: (e) $g(50)=0.3(2000)3+0.5(2000)2+0.2(2000)+-8.5\times10^{-15}$ $g(2000)=2668664333\ squares$ :::success (f) Use a central difference on an appropriate interval to estimate $g'(4)$. What is the interpretation of this value? ::: (f) Central differential formula: $g'\left(x\right)=\frac{g\left(b\right)-g\left(a\right)}{b-a}$ use numbers that surround 4, aka 5 and 3. $g'\left(4\right)=\frac{g\left(5\right)-g\left(3\right)}{5-3}$ $g'\left(4\right)=\frac{54.9999-13.9999}{2}$ $g'\left(4\right)=20.5$ As the grid is squared to a larger number (4x4-> 5x5), the amount of squares will continuously increase by 20.5 squares. --- To submit this assignment click on the Publish button ![Publish button icon](https://i.imgur.com/Qk7vi9V.png). Then copy the url of the final document and submit it in Canvas.