IB Mathematics: Analysis and Approaches HL · IB AA HL SL 2.1

SL 2.1 · Use equations and features of straight lines

Straight lines describe constant rates of change. They can model situations such as a fixed starting fee plus a constant charge per unit, or a…

International Baccalaureate (IB) IB AA HL: Mathematics: Analysis and Approaches HL

Functions

Representing, interpreting and comparing linear relationships

Straight lines describe constant rates of change. They can model situations such as a fixed starting fee plus a constant charge per unit, or a journey at steady speed. A line can be described by a graph, a table of values or an equation. In this lesson, we connect these representations and use the information in an equation to identify important features of its graph. We assume that coordinates are measured in consistent units and that any contextual linear model is appropriate over the stated range.

What you will learn

  • Calculate the gradient of a line from two points and interpret its sign and value.
  • Use gradient-intercept and general forms to describe straight lines.
  • Find a line equation from given information and determine whether two lines are parallel or perpendicular.
  • Find and interpret the intersection of two straight lines, checking results with graphing technology.

1. Prior knowledge: coordinates and gradient

A point on a graph is written as (x,y)(x,y): xx gives its horizontal coordinate and yy its vertical coordinate. The gradient, often called the slope, measures how much yy changes for a change in xx. For two points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2), subtract the coordinates in matching order. The gradient is undefined if the two points have the same xx-coordinate; they lie on a vertical line.
A positive gradient means the line rises as we move from left to right. A negative gradient means it falls. A horizontal line has gradient zero. Gradient is a rate, so in a context its units are the units of yy divided by the units of xx. For instance, if yy is distance in kilometres and xx is time in hours, gradient is in kilometres per hour.
m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}
  • Use the same point order in both coordinate differences.
  • A vertical line has equation x=ax=a for a constant aa and cannot be written as y=mx+cy=mx+c.
  • A horizontal line has equation y=by=b and gradient 00.

2. Equations and features of a line

The gradient-intercept form is y=mx+cy=mx+c. Here mm is the gradient and cc is the vertical intercept: the value of yy where the line crosses the vertical axis, where x=0x=0. For example, in y=3x−2y=3x-2, the gradient is 33 and the vertical intercept is (0,−2)(0,-2). Substituting any xx-value gives the corresponding point on the line.
If the gradient and one point are known, use point-gradient form: y−y1=m(x−x1)y-y_1=m(x-x_1). This says that the change in yy from the given point equals the gradient times the change in xx. It can be rearranged into gradient-intercept form when useful. In general form, a straight-line equation is written ax+by+d=0ax+by+d=0, where aa, bb and dd are constants and aa and bb are not both zero. When b≠0b\ne0, rearranging gives y=−abx−dby=-\frac{a}{b}x-\frac{d}{b}, so the gradient and vertical intercept can be read from the rearranged equation.
A line is determined by its gradient and a point on it, unless it is vertical, in which case its equation is x=ax=a. Two distinct lines with the same gradient are parallel. For non-vertical lines, two gradients that are negative reciprocals indicate perpendicular lines. These tests follow from the directions of the lines; do not confuse a negative gradient alone with perpendicularity.
The intersection of two lines is a point satisfying both equations. Algebraically, solve the equations together, then substitute the result into both original equations. Graphically, it is where the two plotted lines cross. The intersection may represent a break-even point, equal costs or another moment when two quantities match.
y=mx+cy=mx+c
  • In y=mx+cy=mx+c, mm is gradient and cc is the vertical intercept.
  • Parallel non-vertical lines have equal gradients.
  • Non-vertical perpendicular lines have gradients whose product is −1-1.
  • An intersection must satisfy both line equations.

3. Representations, technology and checking

A table makes a linear pattern visible: for equal increases in xx, the changes in yy are equal. A graph shows the direction and intercepts, while an equation gives an exact rule. Moving between these forms is useful: use a table to calculate points, plot them, and check that each point satisfies the equation. Two distinct points are enough to draw a straight line, but extra points can help reveal an arithmetic error.
Use graphing technology to plot two equations on the same axes and estimate their intersection, or to check whether a plotted line passes through a specified point. Set the viewing window so that the relevant points are visible and use equal scales on the axes where practical. A graph is a useful check, not a replacement for exact algebra: the screen may show an approximate intersection or conceal a feature if the window is poorly chosen.
In a contextual question, define what each variable represents before forming or interpreting an equation. State units and consider the model's limitation: a straight-line rule is suitable only where a constant rate is a reasonable assumption. An answer outside the meaningful range of the situation may not be useful even if it satisfies the equation.
  • Keep coordinate differences in a consistent order.
  • Use technology to check shape and approximate location, then verify exact values algebraically.
  • Interpret gradients, intercepts and intersections in the context and units given.

Worked example

1. Find a line from two points

Find the equation of the line through (−2,5)(-2,5) and (4,−1)(4,-1). Give its gradient and vertical intercept.
  1. Calculate the gradient
    Subtract corresponding coordinates in the same order. The change in yy is −6-6 and the change in xx is 66, so the line falls by one unit in yy for each unit increase in xx.
    m=−1−54−(−2)=−1m=\frac{-1-5}{4-(-2)}=-1
  2. Use a point to form the equation
    Substitute the gradient and one known point into point-gradient form. Choosing (−2,5)(-2,5) gives an equation that must also pass through the other point because the gradient was calculated from both.
    y−5=−(x+2)y-5=-(x+2)
  3. Read the intercept
    Rearrange to gradient-intercept form. At x=0x=0, the value of yy is 33, so the vertical intercept is (0,3)(0,3). Check the second point: substituting x=4x=4 gives y=−1y=-1.
    y=−x+3y=-x+3
Answer: The line is y=−x+3y=-x+3. Its gradient is −1-1 and its vertical intercept is (0,3)(0,3).
Check: Both points satisfy the equation: at x=−2x=-2, y=5y=5; at x=4x=4, y=−1y=-1.

Worked example

2. Compare two lines

Line L1L_1 has equation y=2x+1y=2x+1. Line L2L_2 passes through (1,4)(1,4) and (3,0)(3,0). Determine whether the lines are parallel or perpendicular.
  1. Identify the first gradient
    The equation is already in gradient-intercept form, so the coefficient of xx is the gradient of L1L_1.
    m1=2m_1=2
  2. Calculate the second gradient
    Use the two points defining L2L_2.
    m2=0−43−1=−2m_2=\frac{0-4}{3-1}=-2
  3. Compare the gradients
    The gradients are not equal, so the lines are not parallel. Their product is −4-4, not −1-1, so they are not perpendicular either.
    m1m2=2(−2)=−4m_1m_2=2(-2)=-4
Answer: The lines are neither parallel nor perpendicular.
Check: The required gradient tests give unequal gradients and a product different from −1-1.

Worked example

3. Interpret an intersection

Two service plans have costs CA=18+4nC_A=18+4n and CB=6+6nC_B=6+6n dollars, where nn is the number of months. Find when their costs are equal and the common cost. Assume the plans' monthly charges remain constant over the period considered.
  1. Set the costs equal
    At the intersection, both plans give the same cost for the same number of months. Equating the expressions finds that point.
    18+4n=6+6n18+4n=6+6n
  2. Solve for the month
    Subtract 4n4n from both sides and subtract 66 from both sides. Dividing by 22 gives the month count.
    n=6n=6
  3. Find the common cost
    Substitute n=6n=6 into either cost rule. Both give the same value, as the equality requires.
    CA=CB=42C_A=C_B=42
Answer: The costs are equal after 66 months, when each plan costs CAD 42.
Check: At n=6n=6, plan A costs 18+4(6)=4218+4(6)=42 and plan B costs 6+6(6)=426+6(6)=42. A graph of both rules should cross at (6,42)(6,42).

Common mistakes and how to avoid them

Subtracting the xx-coordinates in one order and the yy-coordinates in the opposite order.
Correction: Keep the order consistent in both differences; reversing both differences leaves the gradient unchanged.
Treating the constant term in any equation as the vertical intercept without rearranging.
Correction: First write the equation as y=mx+cy=mx+c, if possible. Then cc is the vertical intercept.
Calling lines perpendicular whenever one gradient is negative.
Correction: For non-vertical lines, check that the product of the gradients is −1-1.
Reporting a graph's estimated intersection as an exact answer.
Correction: Solve the equations algebraically and substitute the result into both equations; use the graph as a visual check.

Lesson summary

  • Gradient is change in yy divided by change in xx.
  • The form y=mx+cy=mx+c displays gradient and vertical intercept directly.
  • Use a known point with a gradient to form a line equation; use x=ax=a for a vertical line.
  • Compare gradients to test parallelism and perpendicularity, and solve simultaneous equations to find an intersection.

Check your understanding

Question 1

What is the gradient of the line through (2,−1)(2,-1) and (5,8)(5,8)?
  1. 33
  2. −3-3
  3. 13\frac{1}{3}
  4. −13-\frac{1}{3}
Show answer and explanation
33
The change in yy is 99 and the change in xx is 33, giving gradient 33.

Question 2

Which line is perpendicular to y=12x+4y=\frac{1}{2}x+4?
  1. y=2x−1y=2x-1
  2. y=−2x+1y=-2x+1
  3. y=−12x+1y=-\frac{1}{2}x+1
  4. x=2x=2
Show answer and explanation
y=−2x+1y=-2x+1
The given gradient is 12\frac{1}{2}. The negative reciprocal is −2-2, so the line with gradient −2-2 is perpendicular.

Question 3

At what value of xx do y=3x−2y=3x-2 and y=x+6y=x+6 intersect?
  1. 22
  2. 33
  3. 44
  4. 88
Show answer and explanation
44
Set the expressions equal: 3x−2=x+63x-2=x+6, so 2x=82x=8 and x=4x=4. Substitution gives y=10y=10.

Key terms

Gradient
The change in the vertical coordinate divided by the change in the horizontal coordinate between two points on a line.
Vertical intercept
The point where a line crosses the vertical axis; it occurs where x=0x=0.
Parallel lines
Lines in the same plane that do not meet; distinct non-vertical parallel lines have equal gradients.
Intersection
A point that lies on both lines, so its coordinates satisfy both equations.

Continue through IB AA HL

View the complete IB AA HL International Baccalaureate (IB) IB AA HL: Mathematics: Analysis and Approaches HL curriculum and lessons

Tutor support for SL 2.1 · Use equations and features of straight lines

Working on SL 2.1 · Use equations and features of straight lines in IB AA HL? Bring the question and your own attempt. In a live session, you can show each step of your attempt and compare it with a worked example. Ask about the first step that does not make sense, then try a similar question yourself.

Explore math tutoring · Request an eligible free 30-minute introduction. Your request is matched by subject and language; a tutor must accept before a time is confirmed.

برای مبحث SL 2.1 · استفاده از معادله‌ها و ویژگی‌های خط راست در درس IB AA HL، سؤال و تلاش خود را همراه بیاورید. در جلسه می‌توانید گام‌های تلاش خود را نشان دهید و آن را با یک نمونهٔ حل‌شده مقایسه کنید. راهنمای معلم ریاضی را ببینید یا جلسهٔ معارفهٔ رایگان ۳۰ دقیقه‌ای درخواست کنید. زمان جلسه پس از پذیرش معلم قطعی می‌شود.

About this lesson and its review

Published by DoAssignment. This reviewed lesson follows International Baccalaureate (IB) IB AA HL: Mathematics: Analysis and Approaches HL, study topic SL 2.1. It is a study resource, not an official curriculum publication.

Before publication, content is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question