Linear Equations in Two Variables Class 9: Graphs & Solutions
Everything from NCERT Chapter 4 — writing equations, finding solutions, plotting graphs and lines parallel to axes.

What is a Linear Equation in Two Variables?
A linear equation in two variables is an equation that can be written in the standard form:
where , and are real numbers, and both and are not zero simultaneously.
The word 'linear' comes from 'line' — the graph of every such equation is a straight line on the Cartesian plane.
Examples:
- can be written as (here , , )
- (here , , )
- can be written as
Not a linear equation: (product of variables), (variable squared).
Solution of a Linear Equation in Two Variables
A solution of is a pair of values that makes the equation true.
Key Fact: A linear equation in two variables has infinitely many solutions. Each solution is an ordered pair that lies on the line.
How to find solutions: Pick a value for one variable, substitute it into the equation and solve for the other.
Solved Example:
Find three solutions of .
Solution:
Rewrite as .
| Calculation | Solution | ||
|---|---|---|---|
All three pairs satisfy the equation. There are infinitely many more — every point on the line is a solution.
Graph of a Linear Equation in Two Variables
The graph of is always a straight line. Here is the step-by-step process to draw it.
Step 1: Find at least two solutions (three is better for accuracy).
Step 2: Plot the points on the Cartesian plane.
Step 3: Join the points with a straight line. Extend the line in both directions with arrows.
Solved Example:
Draw the graph of .
Rewrite as .
Plot , , and on graph paper. Join them — you get a straight line.
Important Observation: Every point on this line is a solution of , and every solution of the equation lies on this line. The line is the geometric representation of the equation.
Practice this topic on SparkEd — free visual solutions and AI coaching
Equations of Lines Parallel to the Axes
These are special cases that students often find tricky but are actually very simple.
1. Line parallel to the x-axis:
The equation is of the form (where is a constant).
- Every point on this line has the same -coordinate.
- Example: is a horizontal line passing through , , , etc.
- The x-axis itself has the equation .
2. Line parallel to the y-axis:
The equation is of the form (where is a constant).
- Every point on this line has the same -coordinate.
- Example: is a vertical line passing through , , , etc.
- The y-axis itself has the equation .
Solved Example:
Write the equation of the line passing through and parallel to the y-axis.
Solution: A line parallel to the y-axis has the equation . Since it passes through , we have .
The equation is .
Writing Equations from Word Problems
Many NCERT questions ask you to form an equation from a real-life situation and then graph it.
Example 1:
The cost of a notebook is twice the cost of a pen. Write a linear equation in two variables to represent this and draw its graph.
Solution:
Let cost of a pen (Rs) and cost of a notebook (Rs).
Given: , or equivalently .
Plot , , and join them. The line passes through the origin.
Example 2:
The perimeter of a rectangle is . Express this as a linear equation and find three possible dimensions.
Solution:
Let length and breadth .
Since and , the graph is the portion of the line in the first quadrant.
Key Properties of Linear Equation Graphs
Here are important facts that examiners love to test.
1. Every linear equation in two variables has infinitely many solutions. Its graph is a straight line extending infinitely in both directions.
**2. A linear equation in one variable () can be viewed in two ways:**
- On a number line: a single point .
- On the Cartesian plane: a vertical line (parallel to y-axis).
**3. The equation always passes through the origin** . The value determines the slope (steepness) of the line.
4. Intercepts:
- x-intercept: The point where the line crosses the x-axis. Set and solve for .
- y-intercept: The point where the line crosses the y-axis. Set and solve for .
Solved Example:
Find the x-intercept and y-intercept of .
For x-intercept: . Point: .
For y-intercept: . Point: .
More Solved Examples
Example 1: Check whether is a solution of .
Solution:
Substitute , :
Yes, is a solution. ✓
Example 2: The equation passes through the point . Find .
Solution:
Substitute , :
Example 3: Temperature Conversion
Problem: The relation between Fahrenheit () and Celsius () is . (a) Is this a linear equation? (b) Draw the graph. (c) At what temperature are and equal?
Solution:
(a) Rewrite: , which is of the form . Yes, it is linear.
(b) Find solutions:
Plot , , on a graph with on x-axis and on y-axis.
(c) Set :
At , Fahrenheit and Celsius readings are equal.
Example 4: Expressing as ax + by + c = 0
Problem: Express the following in the form and identify , , .
(i)
(, , )
(ii)
Multiply by 12:
(, , )
(iii)
(, , )
Exam Strategy & Common Mistakes
Mistake 1: Plotting only two points. While two points determine a line, plotting a third point acts as a verification check. If the three points are not collinear, you have made a calculation error.
Mistake 2: Forgetting arrows on the line. A line extends infinitely. Always draw arrows at both ends to indicate this.
**Mistake 3: Confusing with .** is horizontal (parallel to x-axis). is vertical (parallel to y-axis). Draw a quick sketch to confirm.
Mistake 4: Not labelling the graph. Always write the equation beside the line and label the axes with and . Label the plotted points with their coordinates.
Strategy: For graphing questions, use neat graph paper, choose a suitable scale and pick 'easy' values of (like , integers that make an integer) to avoid messy fractions.
Marks Tip: Graph questions are typically 3-mark questions. You get marks for: (a) finding correct solution pairs, (b) plotting points accurately, and (c) drawing a clean, labelled line.
Summary & Practice Resources
Key Takeaways:
1. The standard form is with and not both zero.
2. Every linear equation in two variables has infinitely many solutions — each is a point on the line.
3. To draw the graph: find 2-3 solutions, plot them, join with a straight line.
4. is a horizontal line; is a vertical line.
5. The x-intercept is found by setting ; the y-intercept by setting .
Connection to Class 10: In Class 10 (Chapter 3), you will study pairs of linear equations — two lines on the same plane — and learn about consistent, inconsistent and dependent systems. Mastering single linear equations now makes that chapter much easier.
Ready to practise? Head to the SparkEd Linear Equations practice page for adaptive problems with instant feedback. Use the SparkEd Math Solver to check your graphs or ask the SparkEd Coach for a walkthrough of any problem.
Practice These Topics on SparkEd
Frequently Asked Questions
Try SparkEd Free
Visual step-by-step solutions, three difficulty levels of practice, and an AI-powered Spark coach to guide you when you are stuck. Pick your class and board to start.
Start Practicing NowYou might also like

Areas Related to Circles Class 10: Sectors, Segments & Solved Problems
Master Areas Related to Circles Class 10 CBSE. Learn area of sector, segment, arc length, areas of combinations with for...

CBSE Class 10 Maths Important Questions 2026: Chapter-Wise with Solutions
CBSE Class 10 Maths important questions 2026 chapter-wise with solutions. Practice 2-3 key questions per chapter, markin...

Pair of Linear Equations Class 10: All 5 Methods with Solved Examples
Master Pair of Linear Equations Class 10 CBSE. Learn graphical, substitution, elimination, cross-multiplication methods,...