Salick Academy

Introduction to Graphs

No calculator

A graph turns a relationship between two quantities into a picture. Once you can read that picture — where a line crosses, how steeply it climbs — you can answer questions about the relationship without doing any algebra at all. This topic sets up the machinery you will use for the rest of the course.

The Cartesian plane

Two number lines crossing at right angles make the Cartesian plane. The horizontal line is the xx-axis, the vertical line is the yy-axis, and they meet at the origin, the point (0,0)(0,0).

Every point is named by an ordered pair (x,y)(x, y): go across first, then up. The order matters — (3,5)(3, 5) and (5,3)(5, 3) are different points.

The axes cut the plane into four quadrants, numbered anticlockwise starting from the top right:

Quadrant xx yy Example
First positive positive (3,4)(3, 4)
Second negative positive (3,4)(-3, 4)
Third negative negative (3,4)(-3, -4)
Fourth positive negative (3,4)(3, -4)

A point sitting on an axis is in no quadrant at all: (0,5)(0, 5) is on the yy-axis, (2,0)(-2, 0) is on the xx-axis.

Choosing a scale

When you draw a graph yourself, the scale is your decision, and marks are given for a sensible one.

  • Use the grid you are given. If the paper offers 20 squares and your xx values run from 00 to 1010, use 2 squares per unit — not 1, which wastes half the page.
  • Keep each axis uniform. Squares must not jump from 1 unit to 5 units partway along.
  • The two axes need not match each other. xx in steps of 11 and yy in steps of 1010 is perfectly acceptable if the numbers call for it.
  • Label both axes and state the scale.

The equation of a straight line

Every straight line that is not vertical can be written

y=mx+cy = mx + c

where mm is the gradient and cc is the yy-intercept.

The gradient tells you how steep the line is: it is the change in yy for every 11 unit increase in xx. The yy-intercept tells you where the line crosses the yy-axis, at the point (0,c)(0, c).

For y=5x+2y = 5x + 2: the gradient is 55 and the line crosses the yy-axis at (0,2)(0, 2). Every step of 11 to the right lifts the line 55 units.

For y=2x+7y = -2x + 7: the gradient is 2-2. A negative gradient means the line falls as you move right. It crosses the yy-axis at (0,7)(0, 7).

Sign and steepness at a glance

Gradient Line
m>0m > 0 rises left to right
m<0m < 0 falls left to right
m=0m = 0 horizontal
undefined vertical

The size of mm is the steepness, ignoring direction. A line with gradient 4-4 is steeper than one with gradient 22, even though it is falling.

Gradient from two points

If you know two points on a line, (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), the gradient is

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

Rise over run: the change in yy divided by the change in xx.

Find the gradient of the line through (1,2)(1, 2) and (5,10)(5, 10).

m=10251=84=2m = \frac{10 - 2}{5 - 1} = \frac{8}{4} = 2

The line rises 22 units for every 11 across.

It does not matter which point you call first, as long as you are consistent. Taking them the other way round:

m=21015=84=2m = \frac{2 - 10}{1 - 5} = \frac{-8}{-4} = 2

Same answer.

Is a point on the line?

A point lies on a line exactly when its coordinates satisfy the equation. Substitute and check.

Does (2,7)(2, 7) lie on y=3x+1y = 3x + 1?

Substitute x=2x = 2:

y=3(2)+1=7y = 3(2) + 1 = 7

The equation gives 77 and the point has y=7y = 7, so yes, (2,7)(2, 7) is on the line.

Does (4,10)(4, 10) lie on y=3x+1y = 3x + 1?

y=3(4)+1=1310y = 3(4) + 1 = 13 \ne 10

So no. The point (4,13)(4, 13) is on the line; (4,10)(4, 10) sits 33 units below it.

Finding the equation of a line

There are two standard situations.

Given the gradient and one point

Put the gradient into y=mx+cy = mx + c, substitute the point to find cc, then write the equation out.

Find the equation of the line with gradient 22 passing through (3,1)(3, 1).

Start with m=2m = 2:

y=2x+cy = 2x + c

The line goes through (3,1)(3, 1), so x=3x = 3 and y=1y = 1 must fit:

1=2(3)+c1 = 2(3) + c 1=6+c1 = 6 + c c=5c = -5

So the equation is

y=2x5y = 2x - 5

Check: at x=3x = 3, y=2(3)5=1y = 2(3) - 5 = 1. Correct.

Given two points

Find the gradient first, then use either point exactly as above.

Find the equation of the line through (1,4)(1, 4) and (3,10)(3, 10).

m=10431=62=3m = \frac{10 - 4}{3 - 1} = \frac{6}{2} = 3

So y=3x+cy = 3x + c. Using (1,4)(1, 4):

4=3(1)+cc=14 = 3(1) + c \quad \Rightarrow \quad c = 1

The equation is y=3x+1y = 3x + 1.

Check with the other point, which you have not used yet: at x=3x = 3, y=3(3)+1=10y = 3(3) + 1 = 10. Correct — and this check is worth doing every time, because it catches an arithmetic slip in the gradient.

Special cases

Horizontal and vertical lines

A horizontal line has gradient 00. Its equation is y=ky = k — every point on it has the same yy-coordinate. The line through (1,3)(1, 3) and (7,3)(7, 3) is y=3y = 3.

A vertical line has undefined gradient, because the run is zero and you cannot divide by zero. Its equation is x=kx = k. The line through (4,1)(4, 1) and (4,9)(4, 9) is x=4x = 4.

Parallel lines

Two lines are parallel exactly when their gradients are equal. y=3x+1y = 3x + 1 and y=3x8y = 3x - 8 are parallel: same steepness, different intercepts, so they never meet.

Find the line parallel to y=4x1y = 4x - 1 passing through (2,3)(2, 3).

Parallel means the same gradient, m=4m = 4:

3=4(2)+cc=38=53 = 4(2) + c \quad \Rightarrow \quad c = 3 - 8 = -5

So y=4x5y = 4x - 5.

Intercepts

The yy-intercept is found by setting x=0x = 0; the xx-intercept by setting y=0y = 0.

For y=2x6y = 2x - 6:

  • x=0x = 0 gives y=6y = -6, so the yy-intercept is (0,6)(0, -6).
  • y=0y = 0 gives 0=2x60 = 2x - 6, so x=3x = 3 and the xx-intercept is (3,0)(3, 0).

Those two points are enough to draw the whole line.