Analytical geometry uses algebra to study points, lines and shapes on the Cartesian plane. Coordinates, gradients, distances and equations can be used to prove geometrical relationships and calculate unknown lengths, angles and areas.
For two points with coordinates:
the distance between them is:
The distance formula follows from the theorem of Pythagoras. Distance is always positive.
Example
Calculate the distance between the points:
Substitute the coordinates into the distance formula.
Exam Tip
Keep negative values in brackets when substituting. Do not remove the square root until the sum of the squares has been simplified.
The midpoint divides a line segment into two equal parts. For endpoints:
the midpoint is:
Example
Determine the midpoint of the line segment joining:
If the midpoint and one endpoint are known, substitute them into the midpoint formula to calculate the other endpoint.
Gradient measures the steepness and direction of a straight line. For two distinct points on a line:
the gradient is:
The change in the vertical coordinates is divided by the change in the horizontal coordinates.
A positive gradient means that the line rises from left to right. A negative gradient means that it falls from left to right. A horizontal line has a gradient of zero. The gradient of a vertical line is undefined.
Example
Calculate the gradient of the line through:
Common Mistake
Use the coordinates in the same order in the numerator and denominator. If the second vertical coordinate is used first, the second horizontal coordinate must also be used first.
Parallel lines have equal gradients.
Example
Determine whether the line through the first pair of points is parallel to the line through the second pair:
Therefore:
The two lines are parallel.
The gradients of two non-vertical perpendicular lines are negative reciprocals. Their product is negative one.
Equivalently:
Example
A line has a gradient of:
Determine the gradient of a line perpendicular to it.
Remember
A horizontal line and a vertical line are also perpendicular, although the gradient of the vertical line is undefined.
Points are collinear if they lie on the same straight line. This can be proved by showing that the gradients between different pairs of points are equal.
Example
Show that the following points are collinear:
Since the gradients are equal and the line segments share the point B, the three points are collinear.
The most commonly used equation of a straight line is:
In this equation, the letter representing the gradient is the coefficient of the horizontal variable, while the constant represents the y-intercept.
Example
Determine the equation of the line with gradient negative two passing through the point:
Start with the general equation.
Substitute the gradient.
Substitute the coordinates of the known point.
Therefore, the equation is:
To determine the x-intercept, substitute zero for the vertical variable.
Therefore, the x-intercept is:
The y-intercept is:
This form shows the gradient and y-intercept directly.
This form is useful when the gradient and one point are known.
Example
Find the equation of a line with gradient three passing through:
A straight-line equation may also be written as:
For example:
Rearrange into gradient-intercept form to identify the gradient.
Therefore:
A horizontal line has a constant vertical coordinate.
A vertical line has a constant horizontal coordinate.
The angle of inclination is measured anticlockwise from the positive horizontal axis to the line. Its value lies between zero degrees and one hundred and eighty degrees.
The gradient and angle of inclination are related by:
Therefore:
If the gradient is positive, the angle of inclination is acute. If the gradient is negative, the angle of inclination is obtuse. A calculator may give a negative reference angle for a negative gradient, so one hundred and eighty degrees must be added.
Example
Calculate the angle of inclination of a line with gradient two.
Example
Calculate the angle of inclination of a line with gradient negative one.
The required angle must be between zero degrees and one hundred and eighty degrees.
One method is to calculate the angle of inclination of each line and then find the positive difference.
The acute angle between two non-perpendicular lines may also be calculated using:
Example
Calculate the acute angle between lines with gradients one-half and two.
The obtuse angle between the lines is supplementary to the acute angle.
Coordinate area problems usually require the distance formula, the midpoint formula, equations of lines or perpendicular distances. Always draw a rough sketch and label the coordinates.
The area of a triangle is:
Example
Calculate the area of the triangle with vertices:
The line segment joining A and B is horizontal because its endpoints have equal vertical coordinates. Its length is:
The perpendicular height is the vertical distance from C to the line through A and B.
For a quadrilateral, divide the shape into two triangles, calculate each area and add them. Alternatively, identify a familiar shape such as a rectangle, parallelogram or trapezium and use the appropriate area formula.
Exam Tip
Do not assume that a line is a height merely because it appears vertical or perpendicular in a diagram. Prove perpendicularity using gradients when necessary. Give lengths in units, areas in square units and angles in degrees. Retain several decimal places during calculations and round only the final answer as instructed.