1.4 Equations of Lines and Modeling

  • Determine equations of lines.

  • Given the equations of two lines, determine whether their graphs are parallel or perpendicular.

  • Model a set of data with a linear function.

Slope–Intercept Equations of Lines

In Section 1.3, we developed the slope–intercept equation y=mx+b, or f(x)=mx+b. If we know the slope and the y-intercept of a line, we can find an equation of the line using the slope–intercept equation.

Example 1

A line has slope 79 and y-intercept (0,16). Find an equation of the line.

Solution

We use the slope–intercept equation and substitute 79 for m and 16 for b:

y=mx+by=79x+16, orf(x)=79x+16.

Now Try Exercise 7.

Example 2

A line has slope 23 and contains the point (−3, 6). Find an equation of the line.

Solution

We use the slope–intercept equation, y=mx+b, and substitute 23 for m: y=23x+b. Using the point (−3, 6), we substitute −3 for x and 6 for y in y=23x+b. Then we solve for b.

y=mx+by=23x+bSubstituting 23 for m6=23 (3)+bSubstituting 3 for x and 6 for y6=2+b4=bSolving for b. The y-intercept is (0,b).

The equation of the line is y=23x+4, or f(x)=23x+4.

Now Try Exercise 13.

Point–Slope Equations of Lines

Another formula that can be used to determine an equation of a line is the pointslope equation. Suppose that we have a nonvertical line and that the coordinates of point P1 on the line are (x1, y1). We can think of P1 as fixed and imagine another point P on the line with coordinates (x,y). Thus the slope is given by

yy1xx1=m.

Multiplying by xx1 on both sides, we get the point–slope equation of the line:

(xx1)yy1xx1=m(xx1)yy1=m(xx1).

If we know the slope of a line and the coordinates of one point on the line, we can find an equation of the line using either the point–slope equation,

yy1=m(xx1),

or the slope–intercept equation,

y=mx+b.

Example 3

Find an equation of the line containing the points (2, 3) and (1, −4).

Solution

We first determine the slope:

m=4312=71=7.

Using the Point–Slope Equation: We substitute 7 for m and either of the points (2, 3) or (1, −4) for (x1, y1) in the point–slope equation. In this case, we use (2,3).

yy1=m(xx1)Point-slope equationy3=7(x2)Substitutingy3=7x14y=7x11,orf(x)=7x11

Using the Slope–Intercept Equation: We substitute 7 for m and either of the points (2, 3) or (1, −4) for (x, y) in the slope–intercept equation and solve for b. Here we use (1, −4).

y=mx+bSlope-intercept equation4=71+bSubstituting4=7+b11=bSolving for b

We substitute 7 for m and −11 for b in y=mx+b to get

y=7x11,orf(x)=7x11.

Now Try Exercise 19.

Parallel Lines

Can we determine whether the graphs of two linear equations are parallel without graphing them? Let’s look at three pairs of equations and their graphs.

If two different lines, such as x=4 and x=2.5, are vertical, then they are parallel. Thus two equations such as x=a1 and x=a2, where a1a2, have graphs that are parallel lines. Two nonvertical lines, such as y=2x+4 and y=2x3, or, in general, y=mx+b1 and y=mx+b2, where the slopes are the same and b1b2, also have graphs that are parallel lines.

Perpendicular Lines

Can we examine a pair of equations to determine whether their graphs are perpendicular without graphing the equations? Let’s look at the following pairs of equations and their graphs.

If one line is vertical and another is horizontal, they are perpendicular. For example, the lines x=5 and y=3 are perpendicular. Otherwise, how can we tell whether two lines are perpendicular? Consider a line AB, as shown in the figure at left, with slope a/b. Then think of rotating the line 90° to get a line A1B1 perpendicular to AB. For the new line, the rise and the run are interchanged, but the run is now negative. Thus the slope of the new line is b/a, which is the opposite of the reciprocal of the slope of the first line. Also note that when we multiply the slopes, we get

ab (ba)=1.

This is the condition under which lines will be perpendicular.

If a line has slope m1, the slope m2 of a line perpendicular to it is 1/m1. The slope of one line is the opposite of the reciprocal of the other:

m2=1m1,orm1=1m2.

Example 4

Determine whether each of the following pairs of lines is parallel, perpendicular, or neither.

  1. y+2=5x, 5y+x=15

  2. 2y+4x=8, 5+2x=y

  3. 2x+1=y, y+3x=4

Solution

We use the slopes of the lines to determine whether the lines are parallel or perpendicular.

  1. We solve each equation for y:

    y=5x2,y=15x3.

    The slopes are 5 and 15. Their product is −1, so the lines are perpendicular. (See Fig. 1.)

    Figure 1.

  2. Solving each equation for y, we get

    y=2x+4,y=2x5.

    We see that m1=2 and m2=2. Since the slopes are the same and the y-intercepts, (0, 4) and (0, −5), are different, the lines are parallel. (See Fig. 2.)

    Figure 2.

  3. Rewriting the first equation and solving the second equation for y, we have

    y=2x+1,y=3x+4.

    We see that m1=2 and m2=3. Since the slopes are not the same and their product is not −1, it follows that the lines are neither parallel nor perpendicular. (See Fig. 3.)

    Figure 3.

Now Try Exercises 35 and 39.

Example 5

Write equations of the lines (a) parallel to and (b) perpendicular to the graph of the line 4yx=20 and containing the point (2, −3).

Solution

We first solve 4yx=20 for y to get y=14x+5. We see that the slope of the given line is 14.

  1. The line parallel to the given line will have slope 14. We use either the slope–intercept equation or the point–slope equation for a line with slope 14 and containing the point (2, −3). Here we use the point–slope equation:

    yy1=m(xx1)y(3)=14(x2)y+3=14x12y=14x72.
  2. The slope of the perpendicular line is the opposite of the reciprocal of 14, or 4. Again we use the point–slope equation to write an equation for a line with slope −4 and containing the point (2, −3).

    yy1=m(xx1)y(3)=4(x2)y+3=4x+8y=4x+5.

Now Try Exercise 43.

Mathematical Models

When a real-world situation can be described in mathematical language, we have a mathematical model. For example, the natural numbers constitute a mathematical model for situations in which counting is essential. Situations in which algebra can be brought to bear often require the use of functions as models.

Mathematical models are abstracted from real-world situations. The mathematical model gives results that allow one to predict what will happen in that real-world situation. If the predictions are inaccurate or the results of experimentation do not conform to the model, the model must be changed or discarded.

Mathematical modeling can be an ongoing process. For example, finding a mathematical model that will provide an accurate prediction of population growth is not a simple problem. Any population model that one might devise would need to be reshaped as further information is acquired.

Curve Fitting

We will develop and use many kinds of mathematical models in this text. In this chapter, we have used linear functions as models. Other types of functions, such as quadratic, cubic, and exponential functions, can also model data. These functions are nonlinear.

In general, we try to find a function that fits, as well as possible, observations (data), theoretical reasoning, and common sense. We call this curve fitting; it is one aspect of mathematical modeling.

Let’s look at some data and related graphs, or scatterplots, and determine whether a linear function seems to fit the set of data.

Year, x Gross Domestic Product (GDP) (in trillions) Scatterplot
1990, 0 $6.0

It appears that the data points can be represented or modeled by a linear function.

The graph is linear.

1995, 5 7.7
2000, 10 10.3
2005, 15 13.1
2010, 20 15.0
2011, 21 15.5
2012, 22 16.2

Sources: Bureau of Economic Analysis, U.S. Department of Commerce

Year, x Estimated Number of Alternative-Fueled Vehicles (in thousands) Scatterplot
1995, 0  247

It appears that the data points cannot be modeled accurately by a linear function.

The graph is nonlinear.

1997, 2 280
1999, 4 322
2001, 6 425
2003, 8 534
2005, 10 592
2007, 12 696
2009, 14 826
2011, 16 1192

Source: U.S. Energy Information Administration

Looking at the scatterplots, we see that the data on gross domestic product seem to be rising in a manner to suggest that a linear function might fit, although a “perfect” straight line cannot be drawn through the data points. A linear function does not seem to fit the data on alternative-fueled vehicles.

Example 6

U.S. Gross Domestic Product. The gross domestic product (GDP) of a country is the market value of final goods and services produced. Market value depends on the quantity of goods and services and their price. Model the data in the table above on the U.S. Gross Domestic Product with a linear function. Then estimate the GDP in 2018.

Solution

We can choose any two of the data points to determine an equation. Note that the first coordinate is the number of years since 1990 and the second coordinate is the corresponding GDP in trillions of dollars. Let’s use (5, 7.7) and (21, 15.5).

We first determine the slope of the line:

m=15.57.7215=7.816=0.4875.

Then we substitute 0.4875 for m and either of the points (5, 7.7) or (21, 15.5) for (x1, y1) in the point–slope equation. In this case, we use (5, 7.7). We get

yy1=m(xx1)Point-slope equationy7.7=0.4875(x5),Substituting

which simplifies to

y=0.4875x+5.2625,

where x is the number of years after 1990 and y is in trillions of dollars.

Next, we estimate the GDP in 2018 by substituting 28 (20181990=28) for x in the model:

y=0.4875x+5.2625Model=0.4875(28)+5.2625Substituting=18.912518.91.

We estimate that the gross domestic product will be $18.91 trillion in 2018.

Now Try Exercise 61.

In Example 6, if we were to use the data points (0,6.0) and (20,15.0), our model would be

y=0.45x+6.0,

and our estimate for the GDP in 2018 would be $18.60 trillion, about $0.31 trillion less than the estimate provided by the first model. This illustrates that a model and the estimates that it produces are dependent on the data points used.

Models that consider all the data points, not just two, are generally better models. The model that best fits the data can be found using a graphing calculator and a procedure called linear regression. This procedure is explained in the following Technology Connection.

The following scatterplots summarize the interpretation of a correlation coefficient.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.100.120