Coordinate Geometry
Coordinate Geometry
y
5
Every straight line has a unique, individual NAME. 4 x+
The name is called its EQUATION and usually contains y=
an “x” and a “y” except for horizontals and verticals
3
5
2
which contain either x or y but not both.
1
x
Consider this. Here is a straight line that goes
-2
The equation that connects these pairs of x
-3
and y numbers is easy to find
-4
x+y=5 -5
This is the equation of the line that all these points lie on.
Also, there are millions of other points like (8, – 3) which
also lie on the line (if it’s extended). When you add 8 and KEY
– 3 you get 5, SO THE POINT (8, - 3) LIES ON THE LINE .
FACT!
y (0,5) Y-intercept
x+y=5 5
y=5–x
This format is called the GRADIENT/Y-INTERCEPT FORMAT or “y = mx + c” because
you can easily read off
• the gradient : the number in front of x, i.e. m = – 1
• the y-intercept : the number on its own, i.e. c = 5
Check that these values actually agree with the graph.
“m”
y2 y1
x2 x1
Rise
Run
y
x
y
5.0
3
2 2
1 3 x
-5.0 -4 -3 -2 -1 1 2 3 4 5.0
-1
-2
2
-3
Gradient m
3
-4
-5.0
4
1
3 4
2
1
x
-5.0 -4 -3 -2 -1 1 2 3 4 5.0
-1
-2 1
Gradient =
-3
4
-4
-5.0
y
5.0
3
1
2
1
x
5
-5.0 -4 -3 -2 -1 1 2 3 4 5.0
-1
-2
5
-3
Gradient = 5
1
-4
-5.0
y
5.0
1
x
-5.0 -4 -3 -2 -1 1 2 3 4 5.0
-1
-2
-3
Gradient = 0
-4
-5.0
4
2
1
x
-5.0 -4 -3 -2 -1 1 2 3 4 5.0
-1
-2
2
-3
Gradient =
6
-4
1
-5.0
Note – all lines LEANING TO THE LEFT have a 3
NEGATIVE GRADIENT!
y
5.0
1 4
2 3 3
2
6 1
x
-5.0 -4 -3 -2 -1 1 2 3 4 5.0
-1
-2
IMPORTANT NOTE!
-3
It doesn’t matter
-4
where on the line
-5.0 your two points lie.
Had we chosen our 2nd point to be here then the triangle would have been here
and so the fraction would have been 1/3
which is the same as the 2/6 we had on the last slide when we used a different point!
y
This line is infinitely 5.0
steep, so we say 4
that its gradient is
3
undefined
2
1
x
-5.0 -4 -3 -2 -1 1 2 3 4 5.0
-1
-2
-3
-4
-5.0
The gradient of every vertical line is UNDEFINED
Rise
Run
Gradient means slope or steepness of a line
The symbol for gradient is m. (Not “g”
as you might expect because g means
something else!),
Gradient of any line leaning to the
RIGHT is POSITIVE
Gradient of any line leaning to the
LEFT is NEGATIVE
Gradient of a HORIZONTAL line is ZERO
Gradient of a VERTICAL line is
UNDEFINED Rise
Gradient =
Run
You can also calculate the gradient
without drawing a graph.
Suppose we have two points A(x1, y1) and B(x2, y2).
y
(y 2 – y 1)
RISE
point relative to the axes
It is now just a matter of
subtracting these to get y1• •A(x1,y1)
the rise and run...........
Rise = y2 – y1 •x RUN 1
•x 2
x
(x2 – x1)
Run = x2 – x1
So the gradient, m is given by
y2 y1
m
x2 x1
6 4
m
23 You can also verify (check) this by
drawing a graph, marking the two
10
m points and joining the line. Its gradient
5 should be – 2 (should lean left and go
up 2 for every 1 across)
m 2
Read off gradient m and y-intercept c from the equation
m is the gradient
c is the y-intercept
m is – and c = 5 4
1
x
-1
-2
-3
-4
-5
Finding the equation if you know gradient and y-intercept
E.g. Find the equation of the line having gradient 5 and y-intercept (0, 4)
y = 5x + 4
Finding Equations
of lines from the graph
Example – find the equation of this line
4 y
1
2
x
−6 −4 −2 3
2 4 6
−1
−2
−3
−4
1
x
−6 −4 −2 2 4 6
−1
−2
−3
−4
4
m is positive as it
3
leans to the right
2
1
m= =1
x
c= –2
-1
-2
y = 1x – 2
or
-3
-4
y=x–2
(ans)
-5
y
5
4
m is positive as it
3 leans to the right
2
1 m= =
x
c = -3
-1
y = x – 3 (ans)
-2
-3
-4
-5
y
5
4
m is positive as it
3 leans to the right
2
1
m = 3/4
x
c= 0
-1
y= ¾x No c
-2
-3
-4
NOTE If it goes through
-5 the origin then the y
intercept = 0, so there
will be no “c” on the end
of the equation!
Verticals and Horizontals
y y
5 5
4 4
Horizontal 3
Vertical 3
2 2
y=2 1 x = -1 1
x x
-1 -1
-2 -2
-3
-3
-4
-4
-5
-5
The pink panther’s guide
to handling straight lions
lines…………………
In this powerpoint, we draw the graph of
2x + 3y = 6
2. x and y-intercepts GO
3. Table of values GO
Using Gradient and y-intercept
3y = – 2x + 6
2
1
x
-1
-2
-3
-4
-5
Gradient and y-intercept
(continued)
x 0 y-intercept
Step 1 – set up a
table like this y 0 x-intercept
Remember the
y-intercept has x = 0
and
x-intercept has y = 0
2x + 3y = 6
x 0 3
Step 2 – finding y 2 0
the intercepts
2
1
x
2x
-1 +3
y=
-2 6
-3
Compare with
-4
other slides –
same line! -5
x -3 0 3
y
2
1
x
2x
-1 +3
y=
6
-2
-3
-4
-5
If a point (a, b) lies on a
line, then you can
substitute these numbers in
place of x and y and the
equation will still hold true.
(3, 5)
2
Does the point (3, 5) +
x
=
lie on y
the line y = x + 2 ?
3 in place of x
5 in place of y
5 in place of x
-9 in place of y
3 in place of x
a in place of y
x + 2y = 5 becomes 3 + 2a = 5
2a = 5 – 3
a=1
y = 4x + c
becomes
A line passes through (-3, 2) and has
a gradient of 4. Find its y-intercept 2 = 4(-3) + c
and equation 2 = -12 + c
14 = c
Begin by letting the line’s and we know m = 4
equation be y = mx + c
11
7
rise:run ratio is
point (-3,2) 5 4:1, so gradient 4
3
1 x
-3
-5
The Equation of a Line y
Method 1 – using y = mx + c
Solution: A (x1 , y1 )
Step 1 – find m
Let the equation of the line be y = mx + c.
We are told m = 3 so substitute this in….
y = 3x + c
x
Step 2 – find c
We know (– 2, 5) fits so substitute these
in in place of x and y.
y = 3x + c becomes y = 3x + 11
5 = 3(– 2) + c Once you have your answer, check correctness by
c = 11 substituting (– 2, 5) in to make sure it lies on the line!
5 = 3(– 2) + 11
The Equation of a Line y
Solution: A (x1 , y1 )
Substitute
x1 = – 2 x
y1 = 5
m = 3
y – 5 = 3(x – – 2 )
y = 3x + 11
y – 5 = 3(x + 2 )
y – 5 = 3x + 6
The Midpoint Formula
Let A (x1 , y1) and B (x2 , y2) be two points. B (x2 , y2)
M (? , ?)
A (x1 , y1)
We often need to find M, the point halfway between A
and B. This is called the MIDPOINT and its coordinates
are found by averaging the x’s and averaging the y’s.
x1 x2 y1 y2 P249 Ex 6.3
M , Q1 a,i,m,n,t
2 2 Q2 do ALL
The Distance Formula
Let A (x1 , y1) and B (x2 , y2) be two points. B (x2 , y2)
D
y2 – y 1
A (x1 , y1)
x2 – x 1
We often need to find d, the distance between A and B.
This is found using PYTHAGORAS
P252 Ex 6.4
D ( x2 x1 ) 2 ( y2 y1 ) 2 Q1 a,i,m,n,t
Q2 do a-f
Parallel lines
m1 = m2
Example…find the equation of the line through (5, – 3) which is parallel to the
line 3x – 4y = 8.
3x – 4y = 8 Gradient m = ¾
– 4y = 8 – 3x
Now we use the formula
4y = – 8 + 3x
y=–2+¾x Using same m
y – y1 = m(x – x1 ) value because
they are parallel
m1 = -
Or, to put it
another way,
m1 x m2 = – 1
Illustration
Here are two perpendicular lines
The gradient of the red line = +
y
5
The gradient of the purple line = –
4
3
When two lines are perpendicular
the rise of one becomes the run of 2
The two gradients are called -1
negative reciprocals…..
-2
3y – 2x = 12 Gradient m =
3y = 12 + 2x
So our new gradient m = –
y = 4 +x
Now we use the formula
Using negative
y – y1 = m(x – x1 ) reciprocal
because they are
perpendicular
Step 2 Substitute for m, x1 and y1 m=–
x1 = – 1
y – y1 = m (x – x1 )
3 y1 = 5
y – 5 = 2 (x + 1 )
3 3
y – 5 = x Step 4 Clean up
2 2
Step 3 Mult through by 2 to get rid of fractions
2y – 10 = – 3x – 3 2y + 3x = 7
See next slide for a visual
Find the equation of the line through (–1, 5) which is perpendicular to the line 3y
– 2x = 12
y
(– 1,5) 5
1 2
x = 3
–2 This is the line we want!!
3y 2
m = 2/3
2y
+3
1
x=
x
7
-1
m = – 3/2
-2
-3
-4
-5
2 y = – 3/2 x + 4
y x2
3
y
c=4
c=–2 5
m = –3/2
m = 2/3 4
3 leans left
leans right
2 run is 2
run is 3
1
rise is 3
x
rise is 2
-1
-2
-3
-4
-5
The lines are perpendicular – their gradients are
NEGATIVE RECIPROCALS of each other!
The gradient of one line was 2/3 and the
gradient of the other was – 3/2.
When 2 lines are perpendicular (meet at 90°)
their gradients are negative reciprocals (change
sign and flip upside down)