**Summary**

- Midpoint of a line:
- Distance between two points:
- Gradient of a straight line
- 3 forms of equation of a straight line:
- Gradient Intercept Form:
- Gradient Point Form:
- Two Point Form:

#### What is coordinate geometry?

As we know from GCSE’s geometry is basically about how shapes, points, lines all relate to each other. When we add coordinates to it, we are basically describing the location of those shapes, points or lines in space. Coordinate geometry is also known as cartesian geometry.

As shown in Fig 1, the position of a point in a plane is given by an ordered pair of numbers written as (x,y).

They are called cartesian coordinates. x and y measure the displacement of the point from two perpendicular axes(ox & oy) intersecting at o, where o is the origin.

#### Midpoint of a line segment

We know that a midpoint of a line is basically the center point of that line.

Generally, it is defined as:

If *M* is the midpoint of the line joining the points *A(x1, y1)* and *B(x2, y2)*, then its coordinates are given by:

#### Example #1

Q. Find the midpoint of the line in Fig 2.

*Solution:*

Use the above formula and substitute the values of x and y to work out the midpoint of the line joining A and B.

Put points *A(2, 2)* and *B(5, 8)* in above equation:

**Ans:**

#### Distance between two points

We want to find the length of PQ where point P and Q are given by the coordinates (4, 7) and (8, 15) respectively.

By pythagoras theorem:

Hence:

**Ans:**

#### Gradient of a line

As shown in Fig 4, to find the gradient (slope) of a straight line, we simply divide the change in y by the change in x between any two points on the line. In this case the points are A and B.

We know that slope of a straight line is always constant. The slope basically characterises the direction of the line. We find the gradient using the following formula:

Gradient of a line

**Remember these points:**

- Note, that it is not important in which order the two points
*A(x1, y1)*and*B(x2, y2)*are considered for calculations. - If AB is parallel to the
*x axis*then the gradient is equal to 0. - If AB is perpendicular to
*x axis*then the gradient is undefined. - If AB with gradient is parallel to another line PQ with gradient , then there gradients are equal.
- If two lines with gradient and are perpendicular to each other, then the product of these gradients is equal to -1.

#### Example #2

Q. Prove that line and line are perpendicular to each other.

*Solution:*

Gradient of line AB

Gradient of line PQ

As:

Since:

Hence, this proves both lines are perpendicular to each other.

#### Equation of a straight line

Depending upon the given conditions, we can find different forms of the equation of a straight line.

i) Gradient Intercept Form

Equation of a line with gradients *m* and *y* intercept *c* is:

ii) Gradient Point Form

If a line with gradient *m*, passes through a point *(x1, y1)*, then its equation is:

iii) Two Point Form

Equation of a straight line passing through two points* (x1 ,y1)* and *(x2, y2)* is: