1. Welcome to Coordinate Geometry!

Imagine you are trying to tell a friend exactly where a hidden treasure is on a map. You wouldn't just say "it's over there," right? You would use a grid! Coordinate Geometry is exactly that—it's a way of using numbers to describe exactly where points, lines, and shapes are located on a flat surface.

In this chapter, we will learn how to measure distances on a map, find the exact middle of a path, and describe how steep a hill is using just a few simple formulas. Don't worry if it seems like a lot of symbols at first; we will take it one step at a time!

2. The Basics: The Cartesian Plane

Before we start calculating, let's refresh our memory. Everything happens on the Cartesian Plane. This is a grid formed by two lines: the horizontal x-axis and the vertical y-axis.

Key Rule: When we write a coordinate like \( (x, y) \), always remember the phrase: "You have to walk to the elevator before you can go up or down." The first number (x) tells you how far to move left or right. The second number (y) tells you how far to move up or down.

Did you know? This system was named after René Descartes, a philosopher who supposedly came up with the idea while watching a fly crawl on his ceiling! He realized he could describe the fly's position using distances from the walls.

3. Distance Between Two Points

How do we find the distance between two points, like Point A \( (x_1, y_1) \) and Point B \( (x_2, y_2) \)?

If the points are on a straight horizontal or vertical line, we just count the squares. But if the line is diagonal, we use the Distance Formula:

\[ d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \]

Wait, that looks scary! Let’s simplify it:
This formula is actually just Pythagoras' Theorem (\( a^2 + b^2 = c^2 \)) in disguise! Think of the distance as the longest side of a right-angled triangle.
1. Find the horizontal difference (subtract the x-coordinates).
2. Find the vertical difference (subtract the y-coordinates).
3. Square both numbers, add them together, and take the square root.

Quick Review: Always remember that when you square a negative number, it becomes positive! So, \( (-3)^2 \) is \( 9 \), not \( -9 \).

4. The Midpoint: Finding the Middle

Finding the Midpoint is like finding the "average" position of two points. If you and a friend are at different ends of a street and want to meet exactly in the middle, you are looking for the midpoint.

The Formula:
\[ M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right) \]

How to do it:
1. Add the two x-coordinates together and divide by 2.
2. Add the two y-coordinates together and divide by 2.
3. Put those two answers into a coordinate bracket \( (x, y) \).

Key Takeaway: The Midpoint is always a coordinate—it's a location, not a single number!

5. Gradient (Slope)

The Gradient (represented by the letter m) tells us how steep a line is.
- A positive gradient goes "uphill" from left to right.
- A negative gradient goes "downhill" from left to right.
- A zero gradient is a flat, horizontal line.

The Formula:
\[ m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1} \]

Analogy: Imagine walking up stairs. The "Rise" is how high the step is, and the "Run" is how wide the step is. If you have a high rise and a small run, the stairs are very steep!

Common Mistake: Make sure you always put the y numbers on the top of the fraction and the x numbers on the bottom. Remember: "Rise over Run."

6. The Equation of a Straight Line

In MYP Year 4, we focus on the Gradient-Intercept Form. This is a "recipe" that describes any straight line:

\[ y = mx + c \]

What do these letters mean?
- y and x: These stay as letters. they represent any point on the line.
- m: This is the Gradient (steepness).
- c: This is the y-intercept (where the line crosses the vertical y-axis).

Example: If a line has a gradient of 3 and crosses the y-axis at 5, its equation is \( y = 3x + 5 \).

How to find the equation if you have the gradient and a point:
1. Start with \( y = mx + c \).
2. Plug in your gradient for \( m \).
3. Plug in the \( x \) and \( y \) values from your point.
4. Solve for \( c \).
5. Write the final equation with your \( m \) and \( c \) values.

7. Parallel and Perpendicular Lines

Lines can have special relationships based on their gradients!

Parallel Lines

These are lines that never meet, like train tracks.
Rule: Parallel lines have the exact same gradient (\( m_1 = m_2 \)).
Example: \( y = 2x + 1 \) and \( y = 2x - 7 \) are parallel because both have a gradient of 2.

Perpendicular Lines

These are lines that cross at a perfect 90-degree angle (like a capital T).
Rule: Their gradients are negative reciprocals. This means if you multiply them, you get \( -1 \).
Easy Trick: To find a perpendicular gradient, flip the fraction upside down and change the sign (+ to - or - to +).
Example: If a line has a gradient of \( \frac{2}{3} \), the perpendicular line has a gradient of \( -\frac{3}{2} \).

8. Summary and Final Tips

Quick Review Box:
- Distance: Use the "Pythagoras" formula.
- Midpoint: Find the average of x and y.
- Gradient (m): Rise over Run (\( \frac{y_2 - y_1}{x_2 - x_1} \)).
- Equation: \( y = mx + c \).
- Parallel: Same gradient.
- Perpendicular: Flip the fraction and change the sign.

Final Encouragement: Coordinate geometry is all about patterns. Once you get comfortable with the \( y = mx + c \) "recipe," you'll be able to graph and analyze almost any line you encounter. Keep practicing, and don't be afraid to draw a quick sketch if you get stuck—seeing the line often makes the math much easier!