

Graphs Numbers 
Graphs : EquationsBasic  Intermediate  Advanced  Help Enter the equation you want to plot, set the dependent variable if desired and click on the Graph button.
FIRSTDEGREE EQUATIONS AND INEQUALITIES IN TWO VARIABLESThe language of mathematics is particularly effective in representing relationships between two or more variables. As an example, let us consider the distance traveled in a certain length of time by a car moving at a constant speed of 40 miles per hour. We can represent this relationship by
We have already used word sentences and equations to describe such relationships; in this chapter, we will deal with tabular and graphical representations. 7.1 SOLVING EQUATIONS IN TWO VARIABLESORDERED PAIRS The equation d = 40f pairs a distance d for each time t. For example, and so on. The pair of numbers 1 and 40, considered together, is called a solution of the equation d = 40r because when we substitute 1 for t and 40 for d in the equation, we get a true statement. If we agree to refer to the paired numbers in a specified order in which the first number refers to time and the second number refers to distance, we can abbreviate the above solutions as (1, 40), (2, 80), (3, 120), and so on. We call such pairs of numbers ordered pairs, and we refer to the first and second numbers in the pairs as components. With this agreement, solutions of the equation d  40t are ordered pairs (t, d) whose components satisfy the equation. Some ordered pairs for t equal to 0, 1, 2, 3, 4, and 5 are (0,0), (1,40), (2,80), (3,120), (4,160), and (5,200) Such pairings are sometimes shown in one of the following tabular forms. In any particular equation involving two variables, when we assign a value to one of the variables, the value for the other variable is determined and therefore dependent on the first. It is convenient to speak of the variable associated with the first component of an ordered pair as the independent variable and the variable associated with the second component of an ordered pair as the dependent variable. If the variables x and y are used in an equation, it is understood that replace ments for x are first components and hence x is the independent variable and replacements for y are second components and hence y is the dependent variable. For example, we can obtain pairings for equation by substituting a particular value of one variable into Equation (1) and solving for the other variable. Example 1 Find the missing component so that the ordered pair is a solution to 2x + y = 4 a. (0,?) b. (1,?) c. (2,?) Solution if x = 0, then 2(0) + y = 4 if x = 1, then 2(1) + y = 4 if x = 2, then 2(2) + y = 4 The three pairings can now be displayed as the three ordered pairs (0,4), (1,2), and (2,0) or in the tabular forms EXPRESSING A VARIABLE EXPLICITLY We can add 2x to both members of 2x + y = 4 to get 2x + 2x + y = 2x + 4 In Equation (2), where y is by itself, we say that y is expressed explicitly in terms of x. It is often easier to obtain solutions if equations are first expressed in such form because the dependent variable is expressed explicitly in terms of the independent variable. For example, in Equation (2) above, if x = 0, then y = 2(0) + 4 = 4 We get the same pairings that we obtained using Equation (1) (0,4), (1,2), and (2,0) We obtained Equation (2) by adding the same quantity, 2x, to each member of Equation (1), in that way getting y by itself. In general, we can write equivalent equations in two variables by using the properties we introduced in Chapter 3, where we solved firstdegree equations in one variable. Equations are equivalent if:
Example 2 Solve 2y  3x = 4 explicitly for y in terms of x and obtain solutions for x = 0, x = 1, and x = 2. Solution
2y  3x + 3x = 4 + 3x Now, dividing each member by 2, we obtain In this form, we obtain values of y for given values of x as follows: In this case, three solutions are (0, 2), (1, 7/2), and (2, 5). FUNCTION NOTATION Sometimes, we use a special notation to name the second component of an ordered pair that is paired with a specified first component. The symbol f(x), which is often used to name an algebraic expression in the variable x, can also be used to denote the value of the expression for specific values of x. For example, if f(x) = 2x + 4 where f{x) is playing the same role as y in Equation (2) on page 285, then f(1) represents the value of the expression 2x + 4 when x is replaced by 1 f(l) = 2(1) + 4 = 2 Similarly, f(0) = 2(0) + 4 = 4 and f(2) = 2(2) + 4 = 0 The symbol f(x) is commonly referred to as function notation. Example 3 If f(x) = 3x + 2, find f(2) and f(2). Solution Replace x with 2 to obtain Replace x with 2 to obtain 7.2 GRAPHS OF ORDERED PAIRSIn Section 1.1, we saw that every number corresponds to a point in a line. Simi larly, every ordered pair of numbers (x, y) corresponds to a point in a plane. To graph an ordered pair of numbers, we begin by constructing a pair of perpendicular number lines, called axes. The horizontal axis is called the xaxis, the vertical axis is called the yaxis, and their point of intersection is called the origin. These axes divide the plane into four quadrants, as shown in Figure 7.1. Now we can assign an ordered pair of numbers to a point in the plane by referring to the perpendicular distance of the point from each of the axes. If the first component is positive, the point lies to the right of the vertical axis; if negative, it lies to the left. If the second component is positive, the point lies above the horizontal axis; if negative, it lies below. Example 1 Graph (3, 2), (3, 2), (3, 2), and (3, 2) on a rectangular coordinate system. Solution The distance y that the point is located from the xaxis is called the ordinate of the point, and the distance x that the point is located from the yaxis is called the abscissa of the point. The abscissa and ordinate together are called the rectan gular or Cartesian coordinates of the point (see Figure 7.2). 7.3 GRAPHING FIRSTDEGREE EQUATIONSIn Section 7.1, we saw that a solution of an equation in two variables is an ordered pair. In Section 7.2, we saw that the components of an ordered pair are the coordinates of a point in a plane. Thus, to graph an equation in two variables, we graph the set of ordered pairs that are solutions to the equation. For example, we can find some solutions to the firstdegree equation y = x + 2 by letting x equal 0, 3, 2, and 3. Then, for x = 0, y=0+2=2 and we obtain the solutions (0,2), (3,1), (2,0), and (3,5) which can be displayed in a tabular form as shown below. If we graph the points determined by these ordered pairs and pass a straight line through them, we obtain the graph of all solutions of y = x + 2, as shown in Figure 7.3. That is, every solution of y = x + 2 lies on the line, and every point on the line is a solution of y = x + 2. The graphs of firstdegree equations in two variables are always straight lines; therefore, such equations are also referred to as linear equations. In the above example, the values we used for x were chosen at random; we could have used any values of x to find solutions to the equation. The graphs of any other ordered pairs that are solutions of the equation would also be on the line shown in Figure 7.3. In fact, each linear equation in two variables has an infinite number of solutions whose graph lies on a line. However, we only need to find two solutions because only two points are necessary to determine a straight line. A third point can be obtained as a check. To graph a firstdegree equation:
Example 1 Graph the equation y = 2x  6. Solution Example 2 Graph x + 2y = 4. Solution We now select any two values of x to find the associated values of y. We will use 2 and 0 for x. Thus, two solutions of the equation are (2, 1) and (0, 2). Next, we graph these ordered pairs and pass a straight line through the points, as shown in the figure. Any third ordered pair that satisfies the equation can be used as a check: We then note that the graph of (2, 3) also lies on the line. SPECIAL CASES OF LINEAR EQUATIONS The equation y = 2 can be written as 0x + y = 2 and can be considered a linear equation in two variables where the coefficient of x is 0. Some solutions of 0x + y = 2 are (1,2), (1,2), and (4,2) In fact, any ordered pair of the form (x, 2) is a solution of (1). Graphing the solutions yields a horizontal line as shown in Figure 7.4. Similarly, an equation such as x = 3 can be written as x + 0y = 3 and can be considered a linear equation in two variables where the coefficient of y is 0. Some solutions of x + 0y = 3 are (3, 5), (3, 1), and (3, 2). In fact, any ordered pair of the form (3, y) is a solution of (2). Graphing the solutions yields a vertical line as shown in Figure 7.5. Example 3 Graph a. y = 3 Solution
b. We may write x = 2 as x + Oy = 2. 7.4 INTERCEPT METHOD OF GRAPHINGIn Section 7.3, we assigned values to x in equations in two variables to find the corresponding values of y. The solutions of an equation in two variables that are generally easiest to find are those in which either the first or second component is 0. For example, if we substitute 0 for x in the equation 3x + 4y = 12 we have
3(0) + 4y = 12 Thus, a solution of Equation (1) is (0, 3). We can also find ordered pairs that are solutions of equations in two variables by assigning values to y and determining the corresponding values of x. In particular, if we substitute 0 for y in Equation (1), we get
3x + 4(0) = 12 and a second solution of the equation is (4, 0). We can now use the ordered pairs (0, 3) and (4, 0) to graph Equation (1). The graph is shown in Figure 7.6. Notice that the line crosses the xaxis at 4 and the yaxis at 3. For this reason, the number 4 is called the xintercept of the graph, and the number 3 is called the yintercept. This method of drawing the graph of a linear equation is called the intercept method of graphing. Note that when we use this method of graphing a linear equation, there is no advantage in first expressing y explicitly in terms of x. Example 1 Graph 2x  y = 6 by the intercept method. Solution
2x  (0) = 6 Now, we find the yintercept by substituting for x in the equation to get
2(0)  y = 6 The ordered pairs (3, 0) and (0, 6) are solutions of 2x  y = 6. Graphing these points and connecting them with a straight line give us the graph of 2x  y = 6. If the graph intersects the axes at or near the origin, the intercept method is not satisfactory. We must then graph an ordered pair that is a solution of the equation and whose graph is not the origin or is not too close to the origin. Example 2 Graph y = 3x. Solution Since one point is not sufficient to graphy = 3x, we resort to the methods outlined in Section 7.3. Choosing any other value for x,say 2, we get y = 3(2) = 6 Thus, (0, 0) and (2, 6) are solutions to the equation. The graph of y = 3x is shown at the right. 7.5 SLOPE OF A LINESLOPE FORMULA In this section, we will study an important property of a line. We will assign a number to a line, which we call slope, that will give us a measure of the "steepness" or "direction" of the line. It is often convenient to use a special notation to distinguish between the rectan gular coordinates of two different points. We can designate one pair of coordinates by (x_{1}, y_{1} (read "x sub one, y sub one"), associated with a point P_{1}, and a second pair of coordinates by (x_{2}, y_{2}), associated with a second point P_{2}, as shown in Figure 7.7. Note in Figure 7.7 that when going from P_{1} to P_{2}, the vertical change (or vertical distance) between the two points is y_{2}  y_{1} and the horizontal change (or horizontal distance) is x_{2}  x_{1}. The ratio of the vertical change to the horizontal change is called the slope of the line containing the points P_{1} and P_{2}. This ratio is usually designated by m. Thus, Example 1 Find the slope of the line containing the two points with coordinates (4, 2) and (3, 5) as shown in the figure at the right.Solution Note that we get the same result if we subsitute 4 and 2 for x_{2} and y_{2} and 3 and 5 for x_{1} and y_{1} Lines with various slopes are shown in Figure 7.8 below. Slopes of the lines that go up to the right are positive (Figure 7.8a) and the slopes of lines that go down to the right are negative (Figure 7.8b). And note (Figure 7.8c) that because all points on a horizontal line have the same y value, y_{2}  y_{1} equals zero for any two points and the slope of the line is simply Also note (Figure 7.8c) that since all points on a vertical have the same x value, x_{2}  x_{1} equals zero for any two points. However, is undefined, so that a vertical line does not have a slope. PARALLEL AND PERPENDICULAR LINES Consider the lines shown in Figure 7.9. Line l_{1} has slope m_{1} = 3, and line l_{2} has slope m_{2} = 3. In this case, These lines will never intersect and are called parallel lines. Now consider the lines shown in Figure 7.10. Line l_{1}, has slope m_{1} = 1/2 and line l_{2} has slope m_{2} = 2. In this case, These lines meet to form a right angle and are called perpendicular lines. In general, if two lines have slopes and m2:
b. The lines are perpendicular If the product of their slopes is 1, that is, if m_{1} ¦ m_{2} = 1. 7.6 EQUATIONS OF STRAIGHT LINESPOINTSLOPE FORM In Section 7.5, we found the slope of a straight line by using the formula Let us say we know that a line goes through the point (2, 3) and has a slope of 2. If we denote any other point on the line as P(x, y) (See Figure 7.1 la), by the slope formula Thus, Equation (1) is the equation of the line that goes through the point (2, 3) and has a slope of 2. In general let us say we know a line passes through a point P_{1}(x_{1}, y_{1} and has slope m. If we denote any other point on the line as P(x, y) (see Figure 7.11 b), by the slope formula Equation (2) is called the pointslope form for a linear equation. In Equation (2), m, x_{1} and y_{1} are known and x and y are variables that represent the coordinates of any point on the line. Thus, whenever we know the slope of a line and a point on the line, we can find the equation of the line by using Equation (2). Example 1 A line has slope 2 and passes through point (2, 4). Find the equation of the line.
Solution Thus, a line with slope 2 that passes through the point (2, 4) has the equation y = 2x + 8. We could also write the equation in equivalent forms y + 2x = 8, 2x + y = 8, or 2x + y  8 = 0. SLOPEINTERCEPT FORM Now consider the equation of a line with slope m and yintercept b as shown in Figure 7.12. Substituting 0 for x_{1} and b for y_{1} in the pointslope form of a linear equation, we have y  b = m(x  0) or y = mx + b Equation (3) is called the slopeintercept form for a linear equation. The slope and yintercept can be obtained directly from an equation in this form. Example 2 If a line has the equation then the slope of the line must be 2 and the yintercept must be 8. Similarly, the graph of y = 3x + 4 has a slope 3 and a yintercept 4; and the graph of has a slope 1/4 and a yintercept 2. If an equation is not written in x = mx + b form and we want to know the slope and/or the yintercept, we rewrite the equation by solving for y in terms of x. Example 3 Find the slope and yintercept of 2x  3y = 6. Solution 2x  3y  2x = 6  2x Now dividing each member by 3, we have Comparing this equation with the form y = mx + b, we note that the slope m (the coefficient of x) equals 2/3, and the yintercept equals 2. 7.7 DIRECT VARIATIONA special case of a firstdegree equation in two variables is given by y = kx (k is a constant) Such a relationship is called a direct variation. We say that the variable y varies directly as x. Example 1 We know that the pressure P in a liquid varies directly as the depth d below the surface of the liquid. We can state this relationship in symbols as P = kd In a direct variation, if we know a set of conditions on the two variables, and if we further know another value for one of the variables, we can find the value of the second variable for this new set of conditions. In the above example, we can solve for the constant k to obtain Since the ratio P/d is constant for each set of conditions, we can use a proportion to solve problems involving direct variation. Example 2 If pressure P varies directly as depth d, and P = 40 when d = 10, find P when d = 15. Solution Thus, P = 60 when d = 15. 7.8 INEQUALITIES IN TWO VARIABLESIn Sections 7.3 and 7.4, we graphed equations in two variables. In this section we will graph inequalities in two variables. For example, consider the inequality y ≤ x + 6 The solutions are ordered pairs of numbers that "satisfy" the inequality. That is, (a, b) is a solution of the inequality if the inequality is a true statement after we substitute a for x and b for y. Example 1 Determine if the given ordered pair is a solution of y = x + 6. a. (1, 1) Solution (1) = (1) + 6, or 1 = 5 which is a true statement. On the other hand, (2, 5) is not a solution because when 2 is substituted for x and 5 is substituted for y, we obtain (5) = (2) + 6, or 5 = 4 which is a false statement. To graph the inequality y = x + 6, we first graph the equation y = x + 6 shown in Figure 7.13. Notice that (3, 3), (3, 2), (3, 1), (3, 0), and so on, associated with the points that are on or below the line, are all solutions of the inequality y = x + 6, whereas (3,4), (3, 5), and (3,6), associated with points above the line are not solutions of the inequality. In fact, all ordered pairs associated with points on or below the line are solutions of y =  x + 6. Thus, every point on or below the line is in the graph. We represent this by shading the region below the line (see Figure 7.14).
In general, to graph a firstdegree inequality in two variables of the form Ax + By = C or Ax + By = C, we first graph the equation Ax + By = C and then determine which halfplane (a region above or below the line) contains the solutions. We then shade this halfplane. We can always determine which half plane to shade by selecting a point (not on the line of the equation Ax + By = C) and testing to see if the ordered pair associated with the point is a solution of the given inequality. If so, we shade the halfplane containing the test point; otherwise, we shade the other halfplane. Often, (0, 0) is a convenient test point. Example 2 Graph 2x+3y = 6 Solution 2(0) + 3(0) = 6 is false, (0, 0) is not a solution and we shade the halfplane that does not contain the origin (see graph b). When the line Ax + By = C passes through the origin, (0, 0) is not a valid test point since it is on the line. Example 3 Graph y = 2x. Solution (1) = 2(0) is true, (0, 1) is a solution and we shade the halfplane that contains (0, 1) (see graph b). If the inequality symbol is '< or > , the points on the graph of Ax + By = C are not solutions of the inequality. We then use a dashed line for the graph of Ax + By = C. CHAPTER SUMMARY
