44
Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

Embed Size (px)

Citation preview

Page 1: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

Copyright © Cengage Learning. All rights reserved.

Graphs; Equations of Lines;Functions; Variation 3

Page 2: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

Copyright © Cengage Learning. All rights reserved.

Section 3.23.2

Graphs of Linear Equations in Two Variables

Page 3: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

3

Objectives

1. Determine whether an ordered pair satisfies an equation in two variables.

2. Construct a table of values given an equation.

3. Graph a linear equation in two variables byconstructing a table of values.

4. Graph a linear equation in two variables using the intercept method.

11

22

33

44

Page 4: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

4

5. Graph a horizontal line and a vertical line given an equation.

6. Write a linear equation in two variables from given information, graph the equation, and interpret the graphed data.

Objectives

55

66

Page 5: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

5

Determine whether an ordered pair satisfies an equation in two variables

1.

Page 6: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

6

Equations in 2 Variables

The equation x + 2y = 5 • contains the two variables x and y • solutions of such equations are ordered pairs of numbers

(x = 1, y = 2)

•For example, the ordered pair (1, 2) is a solution, because the equation is satisfied when x = 1 and y = 2.

x + 2y = 5

1 + 2(2) = 5

1 + 4 = 5

5 = 5

Page 7: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

7

Example

Is the pair (–2, 4) a solution of y = 3x + 9?

Solution:

We substitute –2 for x and 4 for y and determine whether the resulting equation is true.

y = 3x + 9

4 ≟ 3(–2) + 9

4 ≟ –6 + 9

Page 8: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

8

Example – Solution

4 = 3

Since the equation 4 = 3 is false, the pair (–2, 4) is not a solution.

cont’d

Page 9: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

9

Construct a table of values given an equation

2.

Page 10: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

10

Table of Solutions to an Equation

To find solutions of equations in x and y, we can pick numbers at random, substitute them for x, and find the corresponding values of y.

For example, to find some ordered pairs that satisfy y = 5 – x, we can let x = 1(called the input value), substitute 1 for x, and solve for y (called the output value).

y = 5 – x

Page 11: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

11

Table of Solutions to an Equation

y = 5 – 1

y = 4

The ordered pair (1, 4) is a solution. As we find solutions, we will list them in a table of values like Table (1) below.

Page 12: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

12

Table of Solutions to an Equation

If x = 2, we have

y = 5 – x

y = 5 – 2

y = 3

A second solution is (2, 3). We list it in Table (2) below.

This is the original equation.

Substitute the input value of 2 for x.

The output is 3.

Page 13: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

13

Table of Solutions to an Equation

If x = 5, we have

y = 5 – x

y = 5 – 5

y = 0

A third solution is (5, 0). We list it in Table (3) below.

This is the original equation.

Substitute the input value of 5 for x.

The output is 0.

Page 14: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

14

Table of Solutions to an Equation

If x = –1, we have

y = 5 – x

y = 5 – (–1)

y = 6

A fourth solution is (–1, 6). We list it in Table (4) below.

This is the original equation.

Substitute the input value of –1 for x.

The output is 6.

Page 15: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

15

Table of Solutions to an Equation

If x = 6, we have

y = 5 – x

y = 5 – 6

y = –1

A fifth solution is (6, –1). We list it in Table (5) below.

This is the original equation.

Substitute the input value of 6 for x.

The output is –1.

Page 16: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

16

Table of Solutions to an Equation

Since we can choose any real number for x, and since any choice of x will give a corresponding value of y, we can see that the equation y = 5 – x has infinitely many solutions.

Page 17: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

17

Graph a linear equation in two variables by constructing a table of values

3.

Page 18: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

18

Graphing a Linear Equation in 2 Variables

A linear equation is any equation that can be written in the form Ax + By = C, where A, B, and C are real numbers and A and B are not both 0.

To graph the equation y = 5 – x, we plot the ordered pairs listed in the table on a rectangular coordinate system, as in Figure 3-10.

Figure 3-10

Page 19: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

19

Graphing a Linear Equation in 2 Variables

From the figure, we can see that the five points lie on a line. We draw a line through the points. The arrowheads on the line show that the graph continues forever in both directions.

Since the graph of any solution of y = 5 – x will lie on this line, the line is a picture of all of the solutions of the equation. The line is said to be the graph of the equation.

Any equation, such as y = 5 – x, whose graph is a line is called a linear equation in two variables. Any point on the line has coordinates that satisfy the equation, and the graph of any pair (x, y) that satisfies the equation is a point on the line.

Page 20: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

20

Graphing a Linear Equation in 2 Variables

Since we usually will choose a number for x first and then find the corresponding value of y, the value of y depends on x. For this reason, we call y the dependent variable and x the independent variable.

The value of the independent variable is the input value, and the value of the dependent variable is the output value.

Although only two points are needed to graph a linear equation, we often plot a third point as a check. If the three points do not lie on a line, at least one of them is in error.

Page 21: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

21

Graphing a Linear Equation in 2 Variables

Graphing Linear Equations in Two Variables

1. Find two ordered pairs (x, y) that satisfy the equation by choosing arbitrary input values for x and solving for the corresponding output values of y. A third point provides a check.

2. Plot each resulting pair (x, y) on a rectangular coordinate system. If they do not lie on a line, check your calculations.

3. Draw the line passing through the points.

Page 22: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

22

Example

Graph by constructing a table of values and plotting points: y = 3x – 4.

Solution:

We find three ordered pairs that satisfy the equation.

If x = 1 If x = 2 If x = 3

y = 3x – 4 y = 3x – 4 y = 3x – 4

y = 3(1) – 4 y = 3(2) – 4 y = 3(3) – 4

y = 1 y = 2 y = 5

Page 23: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

23

Example – Solution

We enter the results in a table of values, plot the points, and draw a line through the points. The graph appears in Figure 3-11.

Figure 3-11

cont’d

Page 24: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

24

Graph a linear equation in two variables using the intercept method

4.

Page 25: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

25

Graphing Linear Equation Using the Intercept Method

The points where a line intersects the x- and y-axes are called intercepts of the line.

x- and y-Intercepts

The x-intercept of a line is apoint (a, 0) where the line intersectsthe x-axis. (See Figure 3-14.)

To find a, substitute 0 for y inthe equation of the lineand solve for x.

Figure 3-14

Page 26: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

26

Graphing Linear Equation Using the Intercept Method

A y-intercept of a line is a point (0, b) where the line intersects the y-axis. To find b, substitute 0 for x in the equation of the line and solve for y.

Plotting the x- and y-intercepts and drawing a line through them is called the intercept method of graphing a line. This method is useful for graphing equations written in general form.

Page 27: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

27

Graphing Linear Equation Using the Intercept Method

General Form of the Equation of a Line

If A, B, and C are real numbers and A and B are not both 0, then the equation

Ax + By = C

is called the general form of the equation of a line.

Comment

Whenever possible, we will write the general formAx + By = C so that A, B, and C are integers and A 0. We also will make A, B, and C as small as possible. For example, the equation 6x + 12y = 24 can be written as x + 2y = 4 by dividing both sides by 6.

Page 28: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

28

Example

Graph by using the intercept method: 3x + 2y = 6.

Solution:

To find the y-intercept, we let x = 0 and solve for y.

3x + 2y = 6

3(0) + 2y = 6

2y = 6

y = 3

The y-intercept is the point with coordinates (0, 3).

Substitute 0 for x.

Simplify.

Divide both sides by 2.

Page 29: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

29

Example – Solution

To find the x-intercept, we let y = 0 and solve for x. 3x + 2y = 6

3x + 2(0) = 63x = 6

x = 2The x-intercept is the point with coordinates (2, 0).

As a check, we plot one more point. If x = 4, then3x + 2y = 6

3(4) + 2y = 612 + 2y = 6

2y = –6

Substitute 0 for y.

Simplify.

Divide both sides by 3.

Substitute 4 for x.

Simplify.

Subtract 12 from both sides.

cont’d

Page 30: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

30

Example – Solution

y = –3

The point (4, –3) is on the graph. We plot these three points and join them with a line.

The graph of 3x + 2y = 6 is shown in Figure 3-15.

Figure 3-15

cont’d

Page 31: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

31

Graph a horizontal line and a vertical line given an equation

5.

Page 32: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

32

Horizontal and Vertical Lines

Equations such as y = 3 and x = –2 are linear equations, because they can be written in the general formAx + By = C.

y = 3 is equivalent to 0x + 1y = 3

x = –2 is equivalent to 1x + 0y = –2

Page 33: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

33

Example

Graph: a. y = 3 b. x = –2.

Solution:

a. We can write the equation y = 3 in general form as 0x + y = 3.

Since the coefficient of x is 0, the numbers chosen for x have no effect on y. The value of y is always 3.

For example, if we substitute –3 for x, we get

0x + y = 3

0(–3) + y = 3

Page 34: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

34

Example – Solution

0 + y = 3

y = 3

The table in Figure 3-16(a) gives several pairs that satisfy the equation y = 3.

Figure 3-16(a)

cont’d

Page 35: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

35

Example – Solution

After plotting these pairs and joining them with a line, we see that the graph of y = 3 is a horizontal line that intersects the y-axis at 3.

The y-intercept is (0, 3). There is no x-intercept.

b. We can write x = –2 in general form as x + 0y = –2.

Since the coefficient of y is 0, the values of y have no effect on x. The value of x is always –2.

cont’d

Page 36: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

36

Example – Solution

A table of values and the graph are shown in Figure 3-16(b).

The graph of x = –2 is a vertical line that intersects the x-axis at –2.

The x-intercept is (–2, 0). There is no y-intercept.

Figure 3-16(b)

cont’d

Page 37: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

37

Graphing Linear Equation Using the Intercept Method

Equations of Horizontal and Vertical Lines

Suppose a and b are real numbers.

The equation y = b represents a horizontal line that intersects the y-axis at (0, b). If b = 0, the line is the x-axis.

The equation x = a represents a vertical line that intersects the x-axis at (a, 0). If a = 0, the line is the y-axis.

Page 38: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

38

Write a linear equation in two variables from given information, graph the equation, and interpret the graphed data6.

Page 39: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

39

Linear Equation in 2 Variables

We have solved applications using one variable. In the next example, we will write an equation containing two variables to describe an application and then graph the equation.

Page 40: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

40

Example – Birthday Parties

A restaurant offers a party package that includes food, drinks, cake, and party favors for a cost of $25 plus $3 per child. Write a linear equation that will give the cost for a party of any size. Graph the equation and determine the meaning of the y-intercept in the context of this problem.

Solution:

Cost of party: c

Number of children: n

c = 25 + 3n

Page 41: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

41

Example – Solution

c = 25 + 3n

cont’d

Page 42: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

42

Example – Solution

If n = 0 If n = 5 If n = 10

c = 25 + 3(0) c = 25 + 3(5) c = 25 + 3(10)

c = 25 c = 25 + 15 c = 25 + 30

c = 40 c = 55

The results are recorded in the table.

cont’d

Page 43: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

43

Example – Solution

Next, we graph the points in Figure 3-17 and draw a line through them.

We don’t draw an arrowhead on the left, because it doesn’t make sense to have a negative number of children attend a party.

From the graph, we can determinethe y-intercept is (0, 25).

The $25 represents the setup cost for a party with no attendees. Figure 3-17

cont’d

Page 44: Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3

44

Example – Solution

Comment

The scale for the cost (y-axis) is 5 units and the scale for the number attending (x-axis) is 1.

Since the scales on the x- and y-axes are not the same, you must label them!

cont’d