Download Graphs of Linear Equations in 2 Variables

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Eigenvalues and eigenvectors wikipedia , lookup

Linear algebra wikipedia , lookup

Quartic function wikipedia , lookup

Cubic function wikipedia , lookup

Quadratic equation wikipedia , lookup

History of algebra wikipedia , lookup

System of polynomial equations wikipedia , lookup

Elementary algebra wikipedia , lookup

Signal-flow graph wikipedia , lookup

System of linear equations wikipedia , lookup

Equation wikipedia , lookup

Transcript
Graphs; Equations of Lines;
Functions; Variation
Copyright © Cengage Learning. All rights reserved.
3
Section
3.2
Graphs of Linear Equations
in Two Variables
Copyright © Cengage Learning. All rights reserved.
Objectives
11. Determine whether an ordered pair satisfies an
equation in two variables.
22. Construct a table of values given an equation.
33. Graph a linear equation in two variables by
constructing a table of values.
44. Graph a linear equation in two variables using
the intercept method.
3
Objectives
5. Graph a horizontal line and a vertical line given
5
an equation.
66. Write a linear equation in two variables from
given information, graph the equation, and
interpret the graphed data.
4
1. Determine whether an ordered pair
satisfies an equation in two variables
5
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
6
Example
Is the pair (–2, 4) a solution of y = 3x + 9?
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
4=3
Since the equation 4 = 3 is false, the pair (–2, 4) is not a
solution.
7
2.
Construct a table of values
given an equation
8
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
9
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.
10
Table of Solutions to an Equation
If x = 2, we have
y=5–x
y=5–2
y=3
This is the original equation.
Substitute the input value of 2 for x.
The output is 3.
A second solution is (2, 3). We list it in Table (2) below.
11
Table of Solutions to an Equation
If x = 5, we have
y=5–x
y=5–5
y=0
This is the original equation.
Substitute the input value of 5 for x.
The output is 0.
A third solution is (5, 0). We list it in Table (3) below.
12
Table of Solutions to an Equation
If x = –1, we have
y=5–x
y = 5 – (–1)
y=6
This is the original equation.
Substitute the input value of –1 for x.
The output is 6.
A fourth solution is (–1, 6). We list it in Table (4) below.
13
Table of Solutions to an Equation
If x = 6, we have
y=5–x
y=5–6
y = –1
This is the original equation.
Substitute the input value of 6 for x.
The output is –1.
A fifth solution is (6, –1). We list it in Table (5) below.
14
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.
15
3. Graph a linear equation in two variables
by constructing a table of values
16
Graphing a Linear Equation in 2 Variables
A linear equation
-- has the form: Ax + By = C
where A, B, and C are real numbers
and A and B are not both 0.
E.g.,
3x + 4y = 5
x=3–y
(1/2)x = 5
Figure 3-10
17
Graphing a Linear Equation in 2 Variables
To graph the equation y = 5 – x, we plot the ordered pairs
listed in the table on a rectangular coordinate system, as in
the figure.
18
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.
19
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.
20
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.
21
Example
Graph the set of points that satisfy the following linear
equation: y = 3x – 4
1. Create table of points.
2. Plot the points.
22
Your Turn
Graph by constructing a table of values and plotting points:
y = 2x - 1
(3,5)
Solution:
x
y
0
1
3
-1
1
5
(1,1)
(0,-1)
23
4. Graph a linear equation in two
variables using the intercept method
24
Graphing Linear Equation Using the
Intercept Method
X-intercept—point where the line intercepts the x-axis
Y-intercept—point where the line intercepts the y-axis
E.g..
The x-intercept is (a, 0)
The y-intercepts is (0, b)
Figure 3-14
25
Graphing Linear Equation Using the
Intercept Method
intercept method of graphing a line
1. Plot two intercept points and draw a line through them
2. Useful for graphing equations written in general form.
26
Graphing Linear Equation Using the
Intercept Method
General Form of the Equation of a Line
Ax + By = C
Whenever possible, make A  0.
E.g.,
Given: -2x + 3y = 5
Express as: 2x – 3y = -5
27
Example
Graph by using the intercept method: 3x + 2y = 6.
Solution:
Find (a, 0) and (0, b)
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).
28
Example – Solution
cont’d
To find the x-intercept, we let y = 0 and solve for x.
3x + 2y = 6
3x + 2(0) = 6
3x = 6
x=2
The x-intercept is the point with coordinates (2, 0).
As a check, we plot one more point. If x = 4, then
3x + 2y = 6
3(4) + 2y = 6
12 + 2y = 6
2y = –6
y = –3
The point (4, –3) is on the graph.
29
Example – Solution
cont’d
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
30
Your Turn
Given: y = 2.5x – 2
Plot the equation of the line using the intercept method.
When x = 0, y = -2
Thus, y-intercept: (0, -2)
When y = 0,
0 = 2.5x – 2
2 = 2.5x
(2/2.5) = (2.5/2.5)x
(2/2.5) = 20/25 = 4/5
x = 4/5
Thus, x-intercept: (4/5, 0)
(4/5, 0)
(0, -2)
31
5. Graph a horizontal line and a
vertical line given an equation
32
Horizontal and Vertical Lines
Are these linear equations?
1. y = 3
2. x = –2
Yes, because they can be written in the general form
Ax + By = C.
y=3
x = –2
is equivalent to
is equivalent to
0x + 1y = 3
1x + 0y = –2
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
34
Example – Solution
cont’d
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)
35
Example – Solution
cont’d
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.
36
Example – Solution
cont’d
A table of values and the graph are shown in
the figure.
 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.
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.
38
6.
Write a linear equation in two variables from
given information, graph the equation, and
interpret the graphed data
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.
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
41
Example – Solution
cont’d
c = 25 + 3n
42
Example – Solution
cont’d
c = 25 + 3n
If n = 0
c = 25 + 3(0)
c = 25
If n = 5
c = 25 + 3(5)
c = 25 + 15
c = 40
If n = 10
c = 25 + 3(10)
c = 25 + 30
c = 55
The results are recorded in the table.
43
Example – Solution
cont’d
Graph the points (figure) 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 determine
the y-intercept is (0, 25).
 The $25 represents the setup cost
for a party with no attendees.
44
Example – Solution
con’d
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!
45
Example 2– Group Rates
con’d
To promote the sale of tickets for a cruise to Alaska, a
travel agency reduces the regular ticket price of $3,000 by
$5 for each individual traveling in the group.
1. Write a linear equation that would find the ticket price T
for a cruise if a group of p people travel together.
T = 3000 – 5p
46
Example 2– Group Rates
2. Find T for 10 people, for 30
people, and for 60 people.
Plot the points and sketch a 3000
line.
T
2950
2850
2700
0
(10,2950)
(30,2850)
(60,2700)
2000$
T = 3000 – 5p
p
10
30
60
con’d
(p, T)
(10, 2950)
(10, 2850)
(60, 2700)
1000
10 20 30 40 50 60
p
47
Example 2—Group Rates
3. In this context, does (0, 3000) make sense?
4. Does (-10, 3050) make sense?
5. In this graph, what does (600, 0) mean?
3000
0
(10,2950)
(30,2850)
(60,2700)
2000$
1000
10 20 30 40 50 60
p
48