Skip to main content
Mathematics LibreTexts

Graphing

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

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

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \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{\longvect}{\overrightarrow}\)

    \( \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}\)

     

    Graphing

    The Distance Formula

    If two points are in the plane, we can find the distance between them by using the Pythagorean theorem.  For example, if the points are (1,4) and (5,2), then the the figure below shows the right triangle that helps us find the distance.

    Right triangle in the xy-plane with horizontal side length 5-1, vertical side length 4-2 and hypotenuse s.  Vertices at (1,2), (5,2), and (1,4).

    We have 

         \( s^2 = (5 - 1)^2 +(4 - 2)^2 = 4^2 + 2^2 = 20 \)

    So that

            \( s = \sqrt{20} \)

    In general 

     \[ s = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \]


     

    Graphing Equations

    If an equation is given, we can find the x-intercept by setting y equal to zero and solving.  We can find the y-intercept by setting x equal to zero and solving.  

     

    Example

    Find the x and y intercepts of 

      \(y^2 = x^3 - 4x \)

     

    Solution

    Let's first find the y-intercept.  Setting x equal to zero gives

        \(y^2 = 0^3 - 4(0) = 0 \)

    Hence the y-intercept is at (0,0).

    Now find the x-intercept.  Setting y equal to 0 gives

         \( 0 = x^3 - 4x \)

         \( x(x^2 - 4) = x(x - 2)(x + 2) = 0 \)     Factoring

         \( x = 0\) or \( x = -2\) or \(x = 2\)

    Hence the x-intercepts are at the points

            (-2,0), (0,0), and (2,0)

    Notice that the origin is both an \(x\) and \(y\) intercept.

     


     

    Supply and Demand

    Economists are interested in the study of supply and demand.  

    The supply curve is the relationship between the price at which an item is sold and the quantity that suppliers are willing to sell in their store.  

    The demand curve is the relationship between the price at which an item is sold and the number is items that will be purchased by consumers.  

    If the price is lowered, then fewer suppliers will be interested in selling the item while more consumers will be interested in purchasing the item.  The price will be be adjusted so that the number of items sold in stores will equal the number of items that the customer is willing to purchase.  This point is called the equilibrium point.

     

    Example

    Suppose that the demand curve for snow board rentals is given by 

         \( p = 20 + 4x \)

    and the supply curve is given by 

         \( p = 300 - 10x\)

    Find the equilibrium point.

     

    Solution

    We want to find the point of intersection.  Setting the equations equal to each other gives

         \( 20 + 4x = 300 - 10x \)

         \( 14x = 280 \)       adding 10x and subtracting 20

         \( x = 20 \)           dividing by 14

    Now plug this back into the demand equation

         \( p = 40 + 4(20) = 100 \)

    The equilibrium points is (20,100).  That is the market will be in equilibrium when the price of a rental is $20 when there will 100 snowboards rented.

     


     

    Mathematical Modeling

    When data is collected, it typically does not fit any simple equation perfectly.  However, the data often can be approximated by a rather simple curve.  The type of curve can be determine by either glancing at the data and searching for a pattern or from theoretical considerations of where the data come from.  Once the type of curve has been determined, mathematics can be used to find the "best" curve of the given type.  The determination of the best curve involved more advanced mathematics so will not be discussed at this time.  

     

    Example    A Mathematical Model

    A biologist has collected data of the weight of a dog over time.  She weighed the animal each week over a period of 5 weeks.  The data is given below

     

    Week 0 1 2 3 4 5
    Weight 1.5 2.0 2.3 2.5 2.7 2.8

     The best linear model for this data is given by

         \(  = 1.7 + 0.25t \)

    where \(w\) is the weight of the dog and \(t\) is the time in weeks.  The graph of the line and the scatter plot is shown below.

     

    Graph of the scatter plot and regression line.  The regression line has y-intercept of 1.7 and slope of 0.25.  The points are all close to the line.

    We can see that the data is close to the line.  If we want to predict the weight of the dog at week 8 we can use the model 

         \( w(8) = 1.7 + 0.25(8) = 3.7 \)

    We can predict that the dog will weigh about 3.7 pounds at week 8.

     


    Back to the Limits and Continuity page

     

     

    Graphing is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?