top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S3-SA1-0369

What is the Equation of a Line Passing Through Two Points?

Grade Level:

Class 7

AI/ML, Data Science, Physics, Economics, Cryptography, Computer Science, Engineering

Definition
What is it?

The equation of a line passing through two points is a mathematical rule that describes all the points lying on that straight line. It helps us find any point on the line if we know two specific points it passes through.

Simple Example
Quick Example

Imagine you are tracking the price of a samosa at your local shop. If the price was Rs 10 two years ago and Rs 15 today, you can use the equation of a line to estimate what the price might have been last year, assuming the price increased steadily.

Worked Example
Step-by-Step

Let's find the equation of a line passing through two points: Point A (2, 5) and Point B (4, 9).

Step 1: Identify the coordinates. Let (x1, y1) = (2, 5) and (x2, y2) = (4, 9).
---
Step 2: Calculate the slope (m) using the formula m = (y2 - y1) / (x2 - x1).
m = (9 - 5) / (4 - 2)
m = 4 / 2
m = 2
---
Step 3: Use the point-slope form of the equation: y - y1 = m(x - x1). You can use either point. Let's use (2, 5).
y - 5 = 2(x - 2)
---
Step 4: Simplify the equation to the slope-intercept form (y = mx + c).
y - 5 = 2x - 4
---
Step 5: Add 5 to both sides to isolate y.
y = 2x - 4 + 5
y = 2x + 1
---
Answer: The equation of the line passing through (2, 5) and (4, 9) is y = 2x + 1.

Why It Matters

Understanding line equations is super important! Data scientists use it to predict trends, like how mobile data usage might grow. Engineers use it to design bridges and buildings safely. It's a foundational skill for careers in AI, Physics, and Computer Science.

Common Mistakes

MISTAKE: Swapping x and y coordinates when calculating slope, like doing (x2 - x1) / (y2 - y1). | CORRECTION: Always remember slope is 'rise over run', so it's the change in y divided by the change in x: (y2 - y1) / (x2 - x1).

MISTAKE: Forgetting to distribute the slope (m) correctly in the point-slope form, e.g., y - y1 = m(x - x1) becoming y - y1 = mx - x1. | CORRECTION: Remember to multiply 'm' by BOTH 'x' and '-x1' inside the bracket: m(x - x1) = mx - mx1.

MISTAKE: Using coordinates from different points inconsistently in the point-slope form. For example, using y1 from point A and x1 from point B. | CORRECTION: If you pick (x1, y1) from one point, stick to those exact coordinates for both y1 and x1 in the equation y - y1 = m(x - x1).

Practice Questions
Try It Yourself

QUESTION: Find the equation of the line passing through (1, 3) and (3, 7). | ANSWER: y = 2x + 1

QUESTION: A line passes through (0, 0) and (5, 10). What is its equation? | ANSWER: y = 2x

QUESTION: The cost of a 1GB data pack was Rs 20 last month (Day 0) and Rs 26 today (Day 30). Assuming a linear increase, what is the equation representing the cost (C) on any given day (D)? | ANSWER: C = 0.2D + 20

MCQ
Quick Quiz

Which of these is the correct slope (m) formula for points (x1, y1) and (x2, y2)?

m = (x2 - x1) / (y2 - y1)

m = (y2 - y1) / (x2 - x1)

m = (x1 - y1) / (x2 - y2)

m = (y1 - x1) / (y2 - x2)

The Correct Answer Is:

B

The slope is calculated as the change in y-coordinates divided by the change in x-coordinates. Option B correctly shows (y2 - y1) / (x2 - x1).

Real World Connection
In the Real World

When you use a ride-sharing app like Ola or Uber, the app calculates your fare based on distance and time. This often involves linear equations, where the starting fare is like the 'c' and the per-kilometer charge is like the 'm', connecting two points (start and end of your journey) to find the total cost.

Key Vocabulary
Key Terms

SLOPE: The steepness or gradient of a line, showing how much y changes for a unit change in x. | Y-INTERCEPT: The point where the line crosses the y-axis (when x=0). | POINT-SLOPE FORM: A way to write the equation of a line using its slope and one point it passes through. | COORDINATES: A pair of numbers (x, y) that show the exact position of a point on a graph.

What's Next
What to Learn Next

Great job understanding this! Next, you can explore how to find the distance between two points or the midpoint of a line segment. These concepts build on your understanding of coordinates and lines, preparing you for more advanced geometry and algebra.

bottom of page