Why this matters
Questions on x = a and y = b are short and reliable: a one-mark question asks for the equation of a line parallel to an axis, and a two-mark question asks you to show the same equation on the number line and in the Cartesian plane. The idea returns in Class 10 coordinate geometry and in every graph you draw in science.
The idea
Consider the equation x = 3. On the number line, which has one dimension, x = 3 is a single point three units to the right of 0. But in the Cartesian plane the same equation can be read as a linear equation in two variables: x + 0y − 3 = 0. Its solutions are all pairs (3, y) for any value of y: (3, 0), (3, 1), (3, −2) and so on. Plotted, these points form a vertical line.
The graph of the equation x = a in the Cartesian plane is a straight line parallel to the y-axis at a distance a from it, passing through the point (a, 0). If a is positive the line is to the right of the y-axis; if a is negative it is to the left.
In the same way the equation y = b, which is 0x + y − b = 0, has solutions (x, b) for every x. The graph of the equation y = b in the Cartesian plane is a straight line parallel to the x-axis at a distance b from it, passing through the point (0, b). If b is positive the line is above the x-axis; if b is negative it is below.
The axes themselves have equations. Every point on the x-axis has y-coordinate 0, so the equation of the x-axis is y = 0. Every point on the y-axis has x-coordinate 0, so the equation of the y-axis is x = 0.
Two such lines meet at a single point. The line x = a and the line y = b intersect at the point (a, b), because that is the only point with x-coordinate a and y-coordinate b.
An equation such as 2x + 6 = 0 is only x = −3 in disguise; solve it first and then draw. Remember: on the number line the solution is one point, in the plane it is a whole line, and the question often asks for both.
Worked examples
Example 1: One equation, two pictures
Question: Represent x = 4 on the number line and in the Cartesian plane.
- On the number line, mark the single point 4 units to the right of 0.
- In the plane, write x = 4 as x + 0y − 4 = 0. Solutions include (4, 0), (4, 2) and (4, −3).
- Plot these points; they lie on a vertical line 4 units to the right of the y-axis.
- Draw the line and label it x = 4.
Answer: A point on the number line; a line parallel to the y-axis through (4, 0) in the plane.
Example 2: Lines through a given point
Question: Write the equations of the lines through (−3, 5) that are parallel to the x-axis and to the y-axis.
- A line parallel to the x-axis has the form y = b. It passes through (−3, 5), so b = 5. The equation is y = 5.
- A line parallel to the y-axis has the form x = a. It passes through (−3, 5), so a = −3. The equation is x = −3.
Answer: y = 5 and x = −3.
Example 3: Solving first, then drawing
Question: Solve 2y + 6 = 0 and draw its graph in the plane. Where does this line meet the line x = 2?
- 2y = −6, so y = −3.
- In the plane, y = −3 is a line parallel to the x-axis, 3 units below it, through (0, −3), (1, −3) and (−2, −3).
- The line x = 2 is parallel to the y-axis through (2, 0).
- They meet at the point with x = 2 and y = −3, namely (2, −3).
Answer: y = −3, a horizontal line 3 units below the x-axis; it meets x = 2 at (2, −3).
Common mistakes
- Drawing x = 3 as a horizontal line. The x-coordinate is fixed, so the line is vertical, parallel to the y-axis.
- Mixing up the axis equations. The x-axis is y = 0, not x = 0.
- Giving a point as the answer in the plane. In two variables x = 3 is a line; only on the number line is it a point.
- Placing x = −2 to the right of the y-axis. Negative a means the line is on the left.
Try it yourself
- Write the equation of the line parallel to the y-axis at a distance of 2 units to the left of it.
- Solve 3x − 9 = 0 and describe its graph in the plane.
- At which point do the lines x = −1 and y = 4 meet?
Answers: 1. x = −2. 2. x = 3; a line parallel to the y-axis through (3, 0). 3. (−1, 4).