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)
The formula for f(x) is $f\left(x\right)=0.047619x^{2\ }+0.0119048x+\left(-0.0714286\right)$

:::info
(b) Estimate the stopping distance for a car that is traveling 43 mi/h.
:::
(b) The stopping distance for a car traveling 43 mi/h is approximately 88.49 ft
:::info
(c\) Estimate the stopping distance for a car that is traveling 100 mi/h.
:::
(c\)
The stopping distance for a car that is traveling 100 mi/h is approximately 477.31 ft
:::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) Apply the central difference approximation formula to estimate the value of f'(45) written as:
f’(a)=f(a+h)-f(a-h)/2h and refernce the interval [40,50] which correlate to the points (40.765.5) and (50, 120). the values are input into the formula in the following way:
$$f’(45)=120-76.5/2(50-40)$$
$$f’(45)=43.5/2(10)$$
$$f’(45)=2.175$$
Ultimately this concludes that the value f’(45) based on the interval [40,50] and the difference approximation formula is 2.175
:::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) Inputting the interval values [44,46] into the demos formula into f(x) I received the points (44, 92.6427666) and (46,101.2379962).
Applying the difference formula f’(a)=f(a+h)-f(a-h)/2h and using the points, (44, 92.6427666) and (46,101.2379962). Arrange them in the following way:
$$f’(45)=101.2379962-92.6427666/2(46-44)$$
$$f’(45)=8.5952296/2(2)$$
$$f’(45)=2.1488074$$
Using the central difference approximation formula f'(45) is given an estimated value of 2.1488074. This value is smaller and more precise than the estimated value in the previous question.
:::info
(f) Find the exact value of $f'(45)$ using the limit definition of derivative.
:::
Using the formula, f(x)=0.047619x^2+0.0119048x+(−0.0714286) and the limit definition of derivative formula,$f'(45)=lim_{h \to 0}\frac{f(x+h)-f(x)}{h}$ ,I arranged it like so:
$f'(x)=lim_{h \to 0}\frac{0 0.047619(x+h)^2 +0.0119048(x+h)+(-0.0714286)-0.047619x^2 +0.0119048x+(-0.0714286)}{h}$
distribute the values and cancel out
$f'(x)=lim_{h \to 0}\frac{0.047619x^2+0.095238xh+0.047619^2+0.0119048x+0.0119048h-0.0714286}{h}$
$f'(x)=lim_{h \to 0}\frac{h(0.095238xh+0.047619h^2+0.0119048h)}{h}$
$f'(x)=lim_{h \to 0}\frac{0.095238x+0.047619h+0.0119048}{}$
f'(x)=0.095238x+0.047619+0.0119048
plug in x=45 into the formula
f'(45=)=0.095238(45)+0.047619+0.0119048
f'(45)= 4.3452338
the exact value for f'(45) using the limit definition of derivative is 4.3452338
:::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) 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.

Find $g(1)$, $g(2)$, $g(4)$, and $g(5)$.
:::
(a) Using the information given about the quantity of squares I found *g(1)*=6, *g(2)*=9, *g(4)*=21, and *g*(5)=30
:::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 ). Be sure to label your axes appropriately using the settings under the wrench icon .
:::
(b)![]
:::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\) $g\left(x\right)=\left(6.7392\ \cdot10^{-16}\right)x^{3}+\left(1\right)x^{2\ }+\left(1.3162\cdot10^{-14}\right)x+5$
:::success
(d) How many squares are in a $50\times50$ grid?
:::
(d)There are 2505 squares in a 50 x 50 grid
:::success
(e) How many squares are in a $2000\times2000$ grid?
:::
(e) there are 4,000,005.00001 squares in a 2000 x 2000 grid
:::success
(f) Use a central difference on an appropriate interval to estimate $g'(4)$. What is the interpretation of this value?
:::
(f) The interval [3,5] is appropriate to estimate $g'(4)$ because the values are closest to $g(4)$
Knowing the exact points falling to that interval are (3,14) and (5,30) intergrate them into the central difference approximation formula,
$$f’(a)=f(a+h)-f(a-h)/2h$$
$$f’(4)=30-14/2(5-3)$$
$$f’(4)=16/2(2)$$
$$f’(4)=4$$
using the central difference to find *g*'(4) gives a 4 as an estimated value
---
To submit this assignment click on the Publish button . Then copy the url of the final document and submit it in Canvas.