IB Applications and Interpretation SL · 2D geometry · Section 2 of 5

Gradient and equations of a line

3 worked examples · By Álvaro López

Key idea

A line is determined by two pieces of information: two points, or a point and its gradient. The gradient tells you how much the line rises or falls for each unit you move to the right, and with it you can write the equation in three equivalent forms. In the IB exam it appears when modelling linear situations (tariffs, paths, ramps), when finding where two lines cross, and when calculating shapes formed with the axes.

The gradient

When you travel along a line from left to right, your position changes in two directions: you move horizontally and you go up or down vertically. The gradient compares both changes.

[FIGURA mai-t4-a2-pendiente: Cartesian plane with x and y axes and a soft grid. A line that rises to the right passes through the points A(1, 2) and B(5, 5), marked with dots and labelled "A(x₁, y₁)" and "B(x₂, y₂)". From A a dashed horizontal segment runs to the vertical through B, labelled "x₂ − x₁ (run)"; from there a dashed vertical segment runs up to B, labelled "y₂ − y₁ (rise)". At the point where the line meets the x-axis, the angle θ between the line and the positive direction of the x-axis is marked. On the right, a small box with a line that falls (through C(1, 5) and D(5, 2)) with its run and fall marked, labelled "negative gradient"; the first drawing is labelled "positive gradient".]

The sign of tells you what the line is like:

  • : the line rises as you move to the right.
  • : the line falls as you move to the right.
  • : the line is horizontal (there is no vertical change).
  • If , the denominator is : the line is vertical and its gradient is not defined.

The larger is, the steeper the line. A gradient means that for every unit you move forward, you go up two.

Gradient and angle

If is the acute angle that the line makes with the horizontal axis, the right-angled triangle in the figure has legs and . By the tangent ratio,

This relation links this topic with trigonometry: a gradient of corresponds to , and a large gradient to an angle close to .

The equations of a line

The same line can be written in several ways. Each form is useful for something different.

Point-gradient form

Suppose the line has gradient and passes through . If is any other point on the line, the gradient between and is also : Clearing the denominator gives the following equation.

This is the form you use to construct a line when you know a point and the gradient, or two points (you calculate first and then use either of the two points).

Explicit form

If you rearrange the point-gradient form to make the subject, you get The bracket is a constant: it is the value of when .

It is the most convenient form for reading a line, sketching it or interpreting it as a model: is the initial value and is how much changes for each unit of .

General form

If you move all the terms to one side, the equation takes the form with , and real numbers and , not both zero. This is the general (or standard) form. Exam questions often ask for “the form , where , and are integers”: multiply the whole equation by the common denominator to remove the fractions.

To change from general form to explicit form, rearrange for : From this you can read that the gradient is and the y-intercept is (if ).

Horizontal and vertical lines

[FIGURA mai-t4-a2-horizontal-vertical: two small Cartesian planes side by side, with axes graduated from -5 to 5 on x and from -4 to 4 on y. In the left one, a thick horizontal line at height y = -3, with the label "y = -3" above it and the point (2, -3) marked. In the right one, a thick vertical line at x = 4, with the label "x = 4" beside it and the point (4, 1) marked.]

Intercepts with the axes

[FIGURA mai-t4-a2-cortes-ejes: Cartesian plane with axes graduated from -2 to 7 on x and from -5 to 3 on y. A thick line that cuts the x-axis at the point (6, 0) and the y-axis at the point (0, -3). Both points marked with large dots and labelled "(6, 0)" and "(0, -3)". Beside the line, the label "x − 2y − 6 = 0". The triangle formed by the line and the positive part of the x-axis and the negative part of the y-axis is lightly shaded.]

Intercepts with the axes are the easiest points of a line to calculate and, in addition, they are enough to draw it: two points determine a single line.

Intersection of two lines

Two lines with different gradients meet at exactly one point. That point is the only one that satisfies both equations at once, so its coordinates are the solution of the system formed by both equations: If one of the lines is in explicit form, the quickest method is to substitute into the other. If not, use elimination: multiply the equations so that the coefficients of one unknown match, and subtract.

  • If the gradients are equal and the y-intercepts are different, the lines are parallel and do not meet: the system has no solution.
  • If the gradients and the y-intercepts are equal, it is the same line: there are infinitely many solutions.

[FIGURA mai-t4-a2-interseccion: Cartesian plane with axes graduated from -2 to 8 on both x and y. Two lines: line r (blue) with equation "y = x/2 + 1", passing through (0, 1) and (4, 3); line s (orange) with equation "y = -x + 7", passing through (0, 7) and (7, 0). They meet at the point P(4, 3), marked with a large dot and labelled "P(4, 3)". Dashed lines from P to the axes, with the values 4 and 3 marked.]

Worked examples

Example 1 Basic

A path across a farm

On the plan of a farm, a straight track joins the farmhouse with the well (units of hundreds of metres).

a) Calculate the gradient of the track.

b) Find the acute angle that the track makes with the horizontal axis, to one decimal place.

c) Write the equation of the line containing the track in the form , with , and integers and .

Solution

a) .

b) Since , .

c) Point-gradient form using the point : We multiply by to remove the fraction: Check with : . It is satisfied.

Example 2 Medium

Bicycle hire

A shop hires out bicycles with a tariff that combines a fixed fee and a price per hour. Hiring a bicycle for hours costs euros and for hours costs euros. The cost (in euros) is a linear function of the time (in hours).

a) Find the gradient and the y-intercept of the line that models the cost, and say what each one means.

b) How many hours can be hired for euros?

c) How much does it cost to hire the bicycle for hours?

Solution

a) The points on the line are and : With the point : , that is, . So and .

Meaning: is the price per hour (3 euros for each extra hour); is the fixed fee (what is paid even if the time were zero).

b) We solve :

c) euros.

Example 3 Hard

Two paths that cross

On the map of a park (units of 1 km), a path passes through the points and . Another path follows the line with equation .

a) Find the equation of in the form with integer coefficients and .

b) Find the points where cuts the -axis and the -axis.

c) Find the coordinates of the point where the two paths cross.

d) The line and the coordinate axes enclose a triangular region. Calculate its area in km, to one decimal place.

Solution

a) Gradient: . With the point :

b) With the x-axis (): , so and the point is .

With the y-axis (): , so and the point is .

c) We solve the system: Adding the two equations eliminates : , so . In the first, , from which . The crossing point is . (Using the GDC, solving the system gives , .)

d) The triangle has vertices , and . It is right-angled at the origin, with legs and :

In the exam: in a multi-part problem, each result earns marks. Write the gradient before the equation, state what you substitute for each intercept with an axis (for example “”) and set up the system before solving it, even if you use the GDC. Write the unit with the area.

Common mistakes

Summary

  • The gradient of the line through and is . Positive: rises; negative: falls; zero: horizontal; if the line is vertical and has no gradient.
  • With the acute angle with the x-axis: .
  • Point-gradient form: . Explicit form: . General form: , with .
  • Horizontal lines and vertical lines .
  • Intercept with the x-axis: set . Intercept with the y-axis: set .
  • The intersection of two lines is the solution of the system formed by their equations; on the GDC, use the equation solver or the graph.
  • When interpreting a linear model : is the change per unit and the initial value.
Maths classes in Aldaia and online

Want to work on it together?

Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.

Message us on WhatsApp