सामग्री पर जाएँ

लेसन 29 · The Coordinate Plane and Graphs

Graphing Equations from Tables of Values

Build input-output tables for equations such as y = 2x + 1, plot the points, draw the line, and decide whether a point lies on a graph.

An equation with two variables, such as y = 2x + 1, has many solutions. Each solution is a pair (x, y) that makes the equation true. For example (0, 1) works: 2(0) + 1 = 1. So does (3, 7): 2(3) + 1 = 7. When we plot all the solutions on the coordinate plane, they form the graph of the equation. For this kind of equation, the graph is a straight line, and we call the equation linear.

The simplest way to draw such a graph is to make a table of values: choose several values of x, work out y each time, and plot the pairs.

Building a table

Here is y = 2x + 1. Pick x values, usually including a negative, zero and positive:

x calculation y point
-2 2(-2) + 1 -3 (-2, -3)
-1 2(-1) + 1 -1 (-1, -1)
0 2(0) + 1 1 (0, 1)
1 2(1) + 1 3 (1, 3)
2 2(2) + 1 5 (2, 5)

Notice how y increases by 2 every time x increases by 1. A steady change like this is the signature of a linear equation. Plot the five points and they fall on one straight line.

Python Make a table and plot the line

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Change m and b and run it again. A larger m makes the line steeper. Changing b moves it up or down.

Reading the graph

Where the line crosses the y-axis is the y-intercept: the point where x = 0. In y = 2x + 1 it is (0, 1), which is the +1. Where it crosses the x-axis (when y = 0) is the x-intercept. To find it, solve 2x + 1 = 0, giving x = -0.5.

flowchart TD
  A["Equation y = 2x + 1"] --> B["Choose x values"]
  B --> C["Compute y for each"]
  C --> D["Plot the points"]
  D --> E["Draw a straight line through them"]
  E --> F["Read intercepts and check points"]

The whole procedure for graphing a linear equation.

Does a point lie on the graph?

A point is on the graph exactly when its coordinates make the equation true. Test (4, 9) in y = 2x + 1: 2(4) + 1 = 9. Yes, it is on the line. Test (3, 8): 2(3) + 1 = 7, not 8. No.

Python Is the point on the line?

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Equations in other forms

Sometimes y is not alone. For x + y = 5, get y alone: y = 5 - x. Then build the table:

x y = 5 - x
-1 6
0 5
2 3
5 0

Now y goes down by 1 each time x goes up by 1, so the line slants downward.

Special lines:

  • y = 4 is a horizontal line: y is always 4, whatever x is.
  • x = -2 is a vertical line: x is always -2, whatever y is.

Real-world graphs

A taxi charges $3 to start and $2 per km: cost = 2d + 3, where d is the distance. The table d = 0, 1, 2, 3 gives costs 3, 5, 7, 9. The graph is a line starting at (0, 3) and rising 2 for each step. Here the y-intercept 3 is the starting charge. Only d ≥ 0 makes sense, so the graph is only drawn to the right of the y-axis.

Python Taxi fare graph

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Not every equation gives a straight line. For y = x² the table x = -2, -1, 0, 1, 2 gives y = 4, 1, 0, 1, 4, which forms a curve. If the differences in y are not steady, you are not looking at a line, so plot more points.

Common mistakes

  • Using too few points. Two points define a line, but a third point confirms you did not make an arithmetic error.
  • Mixing up the order of the pair (x, y).
  • Drawing a line through points that do not line up. If the points are not collinear, recheck the calculations.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. For y = 3x - 2, what is y when x = 4?

    3(4) - 2 = 12 - 2 = 10.
  2. 2. Which point lies on y = x + 6?

    When x = 2, y = 2 + 6 = 8, so (2, 8) is on the line.
  3. 3. Where does y = 2x + 1 cross the y-axis?

    The y-axis is where x = 0, and y = 2(0) + 1 = 1.
  4. 4. What does the graph of y = 4 look like?

    y stays equal to 4 for every x, so the graph is a horizontal line.

Summary

  • A solution of a two-variable equation is an ordered pair that makes it true.
  • Build a table of values, plot the points and join them: linear equations make straight lines.
  • The y-intercept is where x = 0; the x-intercept is where y = 0.
  • A point is on the graph if substituting it makes the equation true.
  • y = c is horizontal and x = c is vertical.

Next: Slope and Rate of Change

अपनी प्रगति ट्रैक करें

मुफ़्त अकाउंट बनाएँ, लेसन पूरे के रूप में चिह्नित करें और किसी भी डिवाइस पर वहीं से शुरू करें जहाँ छोड़ा था।