Math Lab
Home/Class IX/Ch 4/Graph of a Linear Equation

Graph of a Linear Equation

This is the centrepiece of the chapter. An equation like 2x+3y=62x + 3y = 6 describes infinitely many points, and those points fit exactly onto a single straight line in the plane. Drawing that line is the most efficient way to see a linear equation. This lesson is the technique.

Definitions

The graph of a linear equation ax+by+c=0ax + by + c = 0 in two variables is the set of all points (x,y)(x, y) in the Cartesian plane that satisfy the equation. This graph is always a straight line.

Concept and graphing technique

The headline theorem. The graph of every linear equation ax+by+c=0ax + by + c = 0 (where aa and bb are not both zero) is a straight line. Conversely, every straight line in the plane is the graph of some linear equation. So "linear equation" and "straight line" are the same object in two languages.

The minimal recipe. To graph a linear equation:

  1. Find any two distinct solutions of the equation.
  2. Plot them on the Cartesian plane.
  3. Draw the straight line through them.

That's it. Two points determine a line, so two solutions are enough. A common practical choice: find the xx-intercept by setting y=0y = 0, and the yy-intercept by setting x=0x = 0. Those two are usually easy to compute and easy to plot.

A worked walk-through. Graph 2x+3y=122x + 3y = 12.

  • Set y=0y = 0: 2x=122x = 12, so x=6x = 6. Point A=(6,0)A = (6, 0).
  • Set x=0x = 0: 3y=123y = 12, so y=4y = 4. Point B=(0,4)B = (0, 4).

Plot AA and BB. Draw the straight line through them. That is the graph of 2x+3y=122x + 3y = 12. Every solution of the equation lies on this line; every point on this line is a solution.

Use a third point as a check. Compute one more solution and verify that it lies on the line you drew. For instance, x=3y=2x = 3 \Rightarrow y = 2, so (3,2)(3, 2) should be on the line. If it is not, you have a plotting error somewhere.

When the line passes through the origin. If c=0c = 0 in the standard form, the line passes through the origin. The two-intercept method then gives the same point (0,0)(0, 0) twice , useless. Instead, pick a non-zero value like x=1x = 1 to find the second point.

Example. Graph 2xy=02x - y = 0. Setting x=0x = 0 gives y=0y = 0 , one point (0,0)(0, 0). Setting x=1x = 1 gives y=2y = 2 , second point (1,2)(1, 2). Join.

When the line is parallel to an axis. If b=0b = 0, the equation reduces to x=cx = c , a vertical line. If a=0a = 0, the equation reduces to y=cy = c , a horizontal line. These need only one number to describe and you draw them by sight; we cover these in the next lesson.

Why is the graph a straight line and not a curve? Because the equation ax+by+c=0ax + by + c = 0 is first degree in xx and yy. Higher-degree equations give curves: x2+y2=r2x^2 + y^2 = r^2 is a circle, y=x2y = x^2 is a parabola, xy=1xy = 1 is a hyperbola. The first-degree restriction is what forces straightness. A complete proof requires some work; in this chapter we take it as known.

Reading a graph backwards. Given a line on a grid, you can recover its equation by reading off two of its points and writing down the equation that passes through them. For example, a line through (0,3)(0, 3) and (2,0)(2, 0) has equation x2+y3=1\dfrac{x}{2} + \dfrac{y}{3} = 1, i.e. 3x+2y=63x + 2y = 6. Reading-and-writing graphs is a core skill.

Worked examples

Example 1. Draw the graph of x+y=5x + y = 5.

Intercepts: x=0y=5x = 0 \Rightarrow y = 5, so (0,5)(0, 5). y=0x=5y = 0 \Rightarrow x = 5, so (5,0)(5, 0). Plot and join with a straight line. Check: (2,3)(2, 3): 2+3=52 + 3 = 5. Lies on the line.

Example 2. Draw the graph of y=2xy = 2x.

Through origin, since c=0c = 0. Pick x=0y=0x = 0 \Rightarrow y = 0 (origin) and x=2y=4x = 2 \Rightarrow y = 4, so (2,4)(2, 4). Plot and join.

Example 3. Draw the graph of 3x2y=63x - 2y = 6.

Intercepts: x=02y=6y=3x = 0 \Rightarrow -2y = 6 \Rightarrow y = -3, so (0,3)(0, -3). y=03x=6x=2y = 0 \Rightarrow 3x = 6 \Rightarrow x = 2, so (2,0)(2, 0). Plot and join. Check at x=4x = 4: 122y=6y=312 - 2y = 6 \Rightarrow y = 3, so (4,3)(4, 3) should lie on the line.

Example 4. Find the equation of a line that passes through (0,4)(0, 4) and (2,0)(2, 0).

It has yy-intercept 44 and xx-intercept 22. Equation: x2+y4=1\dfrac{x}{2} + \dfrac{y}{4} = 1. Multiply through by 44: 2x+y=42x + y = 4.

Example 5. Graph 5x3y=05x - 3y = 0.

Through origin: c=0c = 0. Pick x=3153y=0y=5x = 3 \Rightarrow 15 - 3y = 0 \Rightarrow y = 5. Pick x=0y=0x = 0 \Rightarrow y = 0. Plot (0,0)(0, 0) and (3,5)(3, 5), join.

Try it yourself

  1. Draw the graph of x+y=4x + y = 4.
  2. Draw the graph of 2xy=32x - y = 3.
  3. Draw the graph of y=2x+1y = -2x + 1.
  4. Find the xx- and yy-intercepts of 4x+3y=124x + 3y = 12, then draw the line.
  5. Draw the graph of y=3xy = 3x.
  6. From the graph in question 1, read three integer solutions other than the intercepts.
  7. Write the equation of a line passing through (0,0)(0, 0) and (1,1)(1, 1).
  8. Write the equation of a line passing through (0,2)(0, -2) and (4,0)(4, 0).
  9. Draw the graphs of x+y=7x + y = 7 and xy=1x - y = 1 on the same axes. Where do they cross?
  10. The graph of kx2y=5kx - 2y = 5 passes through (1,1)(1, -1). Find kk.

Pitfalls / Insight

  • Always use at least two distinct points. A single point does not determine a line.
  • Plot three when you can. The third is a check; if it doesn't fall on the line, recompute.
  • Use a long ruler. A bumpy or curved line ruins the geometric picture.
  • Intercepts are the cleanest pair when both axes are crossed. If the line passes through the origin, find a different second point.

Insight. The graph of ax+by+c=0ax + by + c = 0 is the picture of all its solutions. Each solution is one dot; the line is the assembled dot-picture. Once you can read this picture, you can solve problems by eye , and once two lines are drawn at once, the next chapter's "pair of linear equations" becomes simply "where do these two lines cross?"

Practice quiz

Quick check on this topic.

Quiz
Quick check : Graph of a linear equation
6 questions · pick the best answer
Q1

The graph of 2x+y=62x + y = 6 is:

Q2

The xx-intercept of 3xy=63x - y = 6 is:

Q3

Minimum number of solutions to plot a line:

Q4

The graph of y=3xy = 3x passes through:

Q5

The line x+y=4x + y = 4 passes through:

Q6

If the line kx+2y=4kx + 2y = 4 passes through (1,1)(1, 1), then kk is: