Skip to main content
Engineering LibreTexts

Chapter 06: Mathematical Models

  • Page ID
    89911
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

     

    fig6.1
    Figure 6.1: Mathematical models are just math ways of talking about natural phenomena.

     

    The last thing we will cover about Excel is how to select a trendline type and what that actually means. It would be better to phrase that as “how to select the correct mathematical model”. Mathematical modeling is the process of using math to represent real-world phenomena. The reason the second terminology is better is because it correctly expresses the thinking that you must do to select a correct model. Before we jump into the different types of mathematical models (and associated trendlines) that you are expected to learn, we need to have a quick word on thinking.

     

    Learning Goals

    The emphasis of this chapter will be on thinking. You need to think before you choose a model type. We will also learn how to:

    • Explain what a model is and how it is used
    • Recognize how to identify a linear, power, or exponential function
    • Identify whether an equation represents a linear, power, or exponential model
    • Determine the physical meaning and units of parameters of a linear, power, and exponential function.

     

    Think Twice, Model Once

    There is an old saying in carpentry that you should measure twice and cut once. The idea is that you can’t un-cut a piece of wood so you better be sure you are cutting it correctly. While this analogy doesn’t perfectly translate to mathematical modeling (you could technically re-run the model), the reality is that once you choose your model and think it is good enough, it is unlikely you will re-scrutinize it.

     

    fig6.2
    Figure 6.2: Think twice, model once!

     

    The danger with mathematical modeling is that sometimes your data may look like they fit a certain type of model so you select that trendline type and move on. It is easier that way and uses less brain power. Humans are all lazy, and in fact, our laziness has led to some of our greatest inventions! However, your laziness can get the best of you when it comes to mathematical modeling.

    You need to think about what you would expect the model would be off on your understanding of the underlying physics before you model it. What I am trying to convey is that you think, then choose your trendline type later. Think twice, model once will be our trendline selection mantra! Now that we have that out of the way, let’s look at the different model types that we will consider: linear, power, and exponential.

     

    What is a Mathematical Model?

    Engineers use mathematical models all the time to represent physical phenomena. For example, in the last chapter we learned about Hooke’s Law, \( F=kx \) for springs, which is a mathematical model. You may have also heard about Ohm’s Law in physics, \( V=IR \) for circuits, which is also a mathematical model. There is also Pascal’s Law for fluid pressure, \( {\Delta}P={\rho}g{\Delta}H \), Stoke’s Law for drag force, \( F_d=6\pi{\mu}Rv \) and the list goes on and on.

    The point is that these mathematical models tell us something about the way things actually occur in the real world. Again, returning to Hooke’s Law from the previous chapter, we saw that as we increase the force stretching a spring, the spring will stretch linearly proportional to the force applied. That means if we double the force, the distance the spring will stretch will double. We can intuitively understand this because we have all played with springs, and we can also see this reflected in the mathematical equation that describes the phenomena.

    Almost all mathematical models will have the following characteristics:

    • They will take the form of an equation \( {y}= \) something with an \( {x} \), \( {m} \), and \( {b} \).
    • \( {y} \) and \( {x} \) are variables of interest.
    • \( {b} \) is a constant (keep in mind sometimes it is 0 or 1 meaning it might be invisible)
    • \( {m} \) is the “slope”. This will intuitively make sense to you for linear models but you need to keep in mind that the interpretation of slope with the other models will be slightly different.

     

    Linear Models

    Linear models are straight lines and take on the form of the equation:

    \( {y}={m}{x}+{b} \)

     

    fig6.3
    Figure 6.3: An example of what linear models look like when plotted

     

    Example of Linear Model - Hooke’s Law

    Let’s look at Hooke’s Law again: \[F=kx \nonumber\]

    recall that \( {F} \) is the force deforming the spring, \( {x} \) is the distance it deforms, and \( {k} \) is a spring constant which is a characteristic of the spring (meaning it does not change). We can trust that this law is true so let’s go ahead and determine what the units of \( {k} \) should be.

     

    Stop & Think

    Remember from our units chapter that we can use dimensional analysis to determine the units of \({k}\) since we know that for this equation to be true, the dimensions on each side of the equal sign must be equal. It follows that the units must be equal on each side as well. I’ll be honest, I tell you what the units are for \({k}\) below. You will only be cheating yourself if you skip this quick brain workout.

     

     

    Question 6.1: Units of k

     

    Hopefully you actually tried this on your own and found that the SI units for \( {k} \) are \( {N}/{m} \). If you google search “buying springs” you can see that this specification is always listed for springs that are for sale. It may be in US units (\( {lbs}/{in} \)…gross) but you get the idea.

     

    Fig6.4
    Figure 6.4: Load up the Excel file you saved with this chart.

     

    Now, let’s return to the Excel worksheet we were working on in the previous chapter. When we left off, we had a chart with two series plotted on it (we called them Spring 1 and Spring 2).

    We know that these are springs and that they should obey Hooke’s Law so we can use Excel to add a linear trendline which will effectively mathematically model these equations.

     

    How to Add a Trendline

    The process for adding a trendline is identical regardless of the mathematical model being used. Let’s see how to add a trendline to our spring data and start with the spring 1 data. The process is also very similar to adding a legend or other chart element so this should be easy for you.

    Step 0) Think! What are we mathematically modeling? What type of trendline will we need to use?

     

    Question 6.2: What type of trendline do we need to use?

     

    Step 1) Click on one of the data points for the spring 1 dataset. You can click on any of them within the graph and you should notice that they are all selected. You can tell they are selected because Excel will put little circles around all the data points in the series (figure 6.5)

     

    fig6.5
    Figure 6.5: Example of Spring 1 data series being selected.

     

    Step 2) Click on our old friend the “Add Chart Element” menu and select the “Trendline” option.

    Step 3) In the sub-menu that presents itself, you can choose the type of trendline you want, in this case, it is the “Linear” type. Select the “Linear” option and the trendline should automatically be added to the plot!

     

    fig6.6
    Figure 6.6: What your chart should look like after you add the linear trendline to the spring 1 dataset.

     

    Step 4) We have the trendline, but we are still missing the mathematical model that represents the line. To get the model, you need to double-click on the actual trendline itself. That will bring up the “Format Trendline” options (a menu should pop up similar to the one to the left in figure 6.7). It is here that you can change the trendline type if you need to.

    Step 5) THINK AGAIN. We know this mathematical model should be linear so we don’t need to change that. But should we set the intercept? Does that make sense in this case? Recall: \( {F}={k}{x} \) and \( {y}={m}{x}+{b} \). See what I am getting at here? Notice how in Hooke’s Law we are assuming that before the spring has mass added to it, we are expecting it to stretch 0 meters. Does that sound like an intercept?

     

    fig6.7
    Figure 6.7: Format Trendline Options

     

     

    Step 6) Yes! Check the “Set Intercept” box and make sure that the value is 0. The b = 0 in Hooke’s Law so we should set the intercept = 0. Any deviation from that in our mathematical model will be from measurement errors, it would not be representing actual physical phenomena!

    Step 7) Click the “Display Equation on the chart” and “Display R-squared value on chart” options. Then close the “Format Trendline” menu.

    Now you can see the mathematical equation displayed on the graph! Notice that the equation is \( {y}=3.1485{x} \). The equation is giving us \( {k} \), the spring constant! In this case, we can say that the spring constant is: \( {k} \approx{3.1} \)

    Follow the exact same process for the spring 2 data in the Excel spreadsheet. What is the spring constant for spring 2?

    Hint: make sure that you set the y-intercept = 0 so that you get the same answer I did! Also, round to 1 decimal place. It doesn’t make sense to include those non-significant figures. There is no way our measurements had that much precision.

     

    Question 6.3: What about spring 2?

     

    Video 1: How to add a trendline to an Excel data series
    A quick video recap of this process is provided above in video 1.

     

    Discussion 6.1: Linear Model Real World Examples

     

    Power Model

    Power models are swoopy lines and take the form of the equation:

    \( {y}={b}{x}^{m} \)

     

    fig5.8
    Figure 6.8: Example of two different power models. The blue line has a positive “slope” (m value) and the orange line has a “negative” slope.

     

    There are a few interesting things to note about power models:

    • When \( {m} \) is positive, the power model has a value of \( {0} \) at \( {x}={0} \)
    • When \( {m} \) is negative, the power model has a value of \(\infty \) at \( {x}={0} \)

     

    Example of a Power Model - Volume of a Sphere

    There are many examples of power models in engineering but perhaps the one that you are the most familiar with might be geometric functions. For example, consider the volume of a sphere.

    \( {V}={4}/{3}\pi{r}^{3} \)

    in this particular example, \( {V} \) and \( {r} \) are the variables and correspond to the volume and radius of the sphere respectively, \( {4}/{3}\pi \) is the constant, and \( {3} \) (the three in the exponent) is the slope. We can see that if we double the radius, we do not double the volume of the sphere, we increase it by 8 times!

    If \( {r}={1}\), \( {V}={4}/{3}\pi \)

    If \( {r}={2}, {V}={4}/{3}\pi({2}^{3})={32}/{3}\pi \)

     
    Fun Fact

    This is the reason why insects are small and you don’t see human-sized ants running around. Since insects “breathe” by diffusing oxygen through their shell they do not scale up nicely. Technically, it is a little more complicated than just straight diffusion but the fact is, geometry limits their size. If an ant was two times bigger, it would have about 8 times more volume which is much more difficult to diffuse oxygen!

     

    fig6.9
    Figure 6.9: Don’t worry about him growing to the size of a person anytime soon. Worry about him going extinct.

     

    Identifying the units in this equation is a lot easier. We know that \pi is a dimensionless number, so the only dimensions are on \( {V} \) (\( {L}^{3}) \) and on the other \( {r}^{3} \: ({L}*{L}*{L}={L}^{3}) \) which checks out.

    Other examples of power models in engineering include but are not limited to:

    • Kinetic Energy: \( {K}{E}={1}/{2}{m}{v}^{2} \)

    • Ideal gas law: \( {V}=\dfrac{nRT}{P} \)

    Exponential Model

    Exponential models are also swoopy (and hence the reason you need to think to make sure you don’t confuse it for a power model!) and take on the form of the equation:

    \( y=be^{mx} \)

    Keep in mind that the \( {e} \) in this equation refers to the mathematical constant, the base of the natural logarithm. There are a couple of other interesting things to note about exponential models:

    • The value \( {b} \) is the value at the start of the exponential growth (or decay).
    • The \( {m} \) is called the rate of growth.
    • When \( {m} \) is positive, the model is asymptotic to \( {0} \) for large negative values of \( {x} \). This scenario is called exponential growth.
    • Conversely, when \( {m} \) is negative, the model is asymptotic to \( {0} \) at large positive values of \( {x} \). This scenario is called exponential decay.

     

    fig6.10
    Figure 6.10: Examples of exponential models. The blue line has a positive m, the orange line has a negative m.
     
    Example of an Exponential Model - Atmospheric Pressure

     

    6.11
    Figure 6.11: It is hard to breathe up there or so I am told. But not just because of all the poop.

     

    The “standard” pressure at sea level is \(101,325 \: Pascals\). The reason standard is in quotes is because realistically it varies with the weather, temperature, etc. but that is the number scientists commonly use to calculate things. Furthermore, it is known that atmospheric pressure, if you could provide existing plans, decreases by about 12% for every \(1,000m\) that you go up. Intuitively, you can see that this is an example of exponential decay! Furthermore, with a little cleverness, we can create a mathematical model and guess what the pressure should be in Fort Collins, CO (elevation \(5,003ft\) feet) and on the top of Mount Elbert, the highest peak in Colorado (elevation \(14,439ft\) or \(4,041m\)).

    The elevation of Fort Collins is listed at \(5,003ft\). Take a minute to take out a piece of paper, look at your conversion sheet, and convert this elevation to meters. This is a good brain workout review! Don’t skip it!

     

    Question 6.3: Unit Practice

     

    Looking at our model:

    • We know that \( {b}={101325} \) because that is the pressure at sea level in Pa and the \( {b} \) is the value of what we are modeling before the decay.
    • We know \( {y} \) is our pressure in Pascals and \( {x} \) is the distance above sea level in meters.
    • We know that at \( {x}={1000} \), \( {y} \) is \( {12}\% \) less than at sea level. We can use this to figure out what m is equal to!

    \( {12}\% \) of \( {101325} \) is \( {12159} \). That means that \( {y}( {1000})={101325}-{12159}={89166} \). This implies that the pressure at \( {1000} \) meters is \( {89166} \) Pascals. Make sure you can follow this logic!

    Plugging in everything we know to solve \( {m} \)\[ 89166=101325e^{1000m} \nonumber\]

    Solving for \( {m} \)\[ m=\frac{ln(0.88)}{1000} \nonumber\]

    Now our mathematical model becomes: \[y=101325e^{\frac{ln(0.88)}{1000}x} \nonumber\] and we can use this to calculate the expected atmospheric pressure on the top of Mount Elbert!

     

    Atmospheric pressure on the top of Mount Elbert

    \[x=4401 \nonumber\]

    \[y=101325e^{\frac {ln(0.88)}{1000}4401}=57727Pa \nonumber\]

    You can validate for yourself with a quick google search that this is a pretty accurate model!

    Using the mathematical model we just developed for atmospheric pressure, what is the predicted atmospheric pressure in Fort Collins, Colorado?

     

    Question 6.4: Atmospheric Pressure in Fort Collins

     

    End of Chapter Items

     

    Fill in the Blank 6.1: Mantra of Chapter 6


    Chapter 06: Mathematical Models is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?