3.3 - Gradients and equations of straight lines

3.3 - Gradients and equations of straight lines

A straight line has one constant steepness, even if you measure it using different-sized steps. You will find that gradient and connect it to the equation of the line. The Higher parts use two coordinates and find equations of parallel and perpendicular lines.

Gradient from a graph

One ramp rises 33 units over a horizontal run of 66; another rises 66 over a run of 1212. Is the second ramp steeper? Comparing the rises alone is not enough. We need the rise for each unit across.

You already know

Coordinates give horizontal and vertical positions. Read each axis scale before measuring a change; equal-looking squares may represent different numerical amounts.

A line's gradient is its vertical change per unit horizontal change. A rising line has a positive gradient when read from left to right; a falling line has a negative one. A horizontal line has gradient zero. A vertical line has no finite gradient because its horizontal change is zero.

Gradient from a graph

gradient=vertical changehorizontal change\text{gradient}=\frac{\text{vertical change}}{\text{horizontal change}}

The horizontal change must be nonzero. Not in the Foundation or Higher formulae sheet: learn it.

Choose two well-separated, clear grid intersections on the line and make a right-angled step between them. Use coordinate units, not just numbers of squares. On one straight line, larger steps multiply both changes by the same factor, so their quotient stays the same.

[DIAGRAM: asset_slug: m048_gradient_triangle; caption: A falling straight line with a horizontal change of six units and vertical change of minus three; description: Exact line y equals minus one half x plus 2 with points A minus 2 comma 3 and B 4 comma 0, a horizontal run of 6 and a downward change of minus 3; file: m048_gradient_triangle.png; recommended_method: matplotlib]
A falling straight line with a horizontal change of six units and vertical change of minus three

The horizontal step in the diagram goes right, so it is positive. The vertical step goes down, so it is negative.

Worked example 1: a falling line

Question. Find the gradient of the line in the diagram using its marked step: 66 units right and 33 units down.

Plan. Divide the signed vertical change by the horizontal change.

vertical change=−3downwardshorizontal change=6rightwardsm=−36=−12divide the changes\begin{aligned} \text{vertical change}&=-3 &&\text{downwards}\\ \text{horizontal change}&=6 &&\text{rightwards}\\ m&=\frac{-3}{6}=-\frac12 &&\text{divide the changes} \end{aligned}

Why? A negative vertical change is needed to describe a line that falls as you move right.

Answer. The gradient is −12-\frac12.

Check. Each 22-unit move right goes 11 unit down, so the sign and size fit the diagram.

Change only the direction of the vertical movement next. The step has the same dimensions, but an upward step gives a positive gradient.

Worked example 2: a rising line

Question. A straight line rises 33 coordinate units while moving 66 units right. Find its gradient.

Plan. Use the same ratio with a positive vertical change.

vertical change=3upwardsm=36=12vertical divided by horizontal\begin{aligned} \text{vertical change}&=3 &&\text{upwards}\\ m&=\frac{3}{6}=\frac12 &&\text{vertical divided by horizontal} \end{aligned}

Why? Steepness includes direction: an upward and a downward line cannot have the same signed gradient.

Answer. The gradient is 12\frac12.

Check. A doubled step rises 66 over a run of 1212, and 6/12=1/26/12=1/2 too.

That check answers the ramp puzzle: doubling both dimensions keeps the same steepness. It also explains why your choice of a larger gradient triangle does not change the result.

Watch out

The line m=6/(−3)=−2m=6/(-3)=-2 in example 1 divides the wrong way round. Gradient measures vertical change per horizontal unit, so m=−3/6=−1/2m=-3/6=-1/2.

Keep the sign as you try another falling line.

Gradient and y-intercept in an equation

The equation tells you the gradient without drawing the line. In y=3x−4y=3x-4, increasing xx by 11 increases yy by 33. The constant −4-4 fixes where the line meets the vertical axis.

Straight-line equation

y=mx+cy=mx+c

The gradient is mm and the y-intercept is (0,c)(0,c). This form describes nonvertical straight lines. Not in the Foundation or Higher formulae sheet: learn it.

At the yy-axis, x=0x=0, so mxmx vanishes and y=cy=c. A horizontal line y=cy=c has m=0m=0. A vertical line x=kx=k cannot be written in this form with a finite gradient.

Worked example 3: read the equation

Question. State the gradient and the coordinates of the y-intercept of y=3x−4y=3x-4.

Plan. Match the coefficient and constant to y=mx+cy=mx+c.

m=3coefficient of xy=3(0)−4=−4set x to zero\begin{aligned} m&=3 &&\text{coefficient of x}\\ y&=3(0)-4=-4 &&\text{set x to zero} \end{aligned}

Why? The intercept is on the vertical axis, so its first coordinate must be zero.

Answer. Gradient 33; y-intercept (0,−4)(0,-4).

Check. At x=1x=1, y=−1y=-1, a rise of 33 from the intercept in one horizontal unit.

The next equation is presented differently: yy is not yet on its own. Rearrange first, because the coefficients in the original layout do not directly give the gradient.

Worked example 4: rearrange before reading

Question. State the gradient and y-intercept of 2y+4x=102y+4x=10.

Plan. Make yy the subject, then read mm and cc.

2y=−4x+10subtract 4xy=−2x+5divide every term by 2m=−2read the coefficient\begin{aligned} 2y&=-4x+10 &&\text{subtract 4x}\\ y&=-2x+5 &&\text{divide every term by 2}\\ m&=-2 &&\text{read the coefficient} \end{aligned}

Why? The gradient is the coefficient of xx only when the coefficient of yy is 11.

Answer. Gradient −2-2; y-intercept (0,5)(0,5).

Check. At (1,3)(1,3), 2(3)+4(1)=102(3)+4(1)=10, and the rearranged equation gives −2+5=3-2+5=3.

You can also build an equation from its gradient and intercept: gradient 66 through (0,2)(0,2) gives y=6x+2y=6x+2. Reversing the order of its terms, y=2+6xy=2+6x, changes no points on the line.

Watch out

Reading 44 as the gradient of 2y+4x=102y+4x=10 is wrong. Rearranging gives y=−2x+5y=-2x+5, so the gradient is −2-2, including its sign.

When coordinates of an intercept are requested, write a point such as (0,5)(0,5). The single number 55 only gives its height.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account