aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesMath AI HLTopic 2.1
Unit 2 · Functions · Topic 2.1

IB Math AI HL — Equations of a line

IB Mathematics AI SL topic covering core concepts and exam-style applications.

Higher Level students should use this topic hub as a map: start with the shared sub-topics, then follow the HL-only extensions and exam-skill links where this topic asks for deeper analysis.

Exam technique guidePractice questions

Key concepts in Equations of a line

Key Idea: A straight line is fully defined by two numbers: its gradient (steepness) and its y-intercept (where it hits the y-axis). Know these two numbers and you can write the equation, spot parallel lines, and find perpendicular ones.

What the IB asks you to do:

Find the gradient

  • m = (y₂ − y₁) ÷ (x₂ − x₁)
  • Pick any two points on the line
  • Positive m: rises left → right

Write the equation

  • y = mx + c — when you know m and c
  • y − y₁ = m(x − x₁) — when you know m and a point
  • ax + by + d = 0 — just rearrange your answer into this form

Parallel & perpendicular

  • Parallel lines: same gradient
  • Perpendicular lines: m₁ × m₂ = −1
  • Flip and change sign to get the perpendicular gradient

📐 Reading the gradient

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}m=x2​−x1​y2​−y1​​
Rise divided by run — how much y changes for every 1 unit increase in x
Gradient m
A measure of steepness. m = 3 means: for every step right, go up 3. m = −2 means: for every step right, go down 2. m = 0 means the line is horizontal. To find m from two points (x₁, y₁) and (x₂, y₂): subtract the y-values, divide by the difference in x-values.
y-intercept c
The value of y when x = 0 — where the line crosses the vertical axis. In y = mx + c, the number at the end is always the y-intercept. E.g. y = 3x + 7 → y-intercept is 7.
Equation forms
Gradient-intercept: y = mx + c (easy to read m and c directly) Point-slope: y − y₁ = m(x − x₁) (use this when you know a point and the gradient) Both describe the same line — just rearrange between them.
Parallel lines have the same gradient. They never meet. Perpendicular lines have gradients that multiply to −1. If one line has gradient 3, the perpendicular gradient = −1 ÷ 3 = −⅓. Shortcut: flip the fraction and change the sign.

✏️ Worked examples

Find the equation of a line through two points

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

Step by step:

  1. Gradient: m = (10 − 4) ÷ (3 − 1) = 6 ÷ 2 = 3

  2. Use point-slope with point (1, 4): y − 4 = 3(x − 1)

  3. Expand: y − 4 = 3x − 3

  4. Rearrange: y = 3x + 1

Final answer:

y = 3x + 1

Find a perpendicular line

Line L has equation y = 2x − 5. Find the equation of the perpendicular through (4, 3).

Step by step:

  1. Gradient of L: m = 2

  2. Perpendicular gradient: −1 ÷ 2 = −½

  3. Use point-slope with (4, 3): y − 3 = −½(x − 4)

  4. Rearrange: y = −½x + 5

Final answer:

y = −½x + 5

Interpret in context

A phone plan charges a $20 connection fee plus $0.15 per minute. Write the cost equation and interpret m and c.

Step by step:

  1. Equation: C = 0.15t + 20 (t = minutes)

  2. Gradient m = 0.15 → cost increases by $0.15 per minute

  3. y-intercept c = 20 → fixed connection fee of $20 (cost when t = 0)

Final answer:

C = 0.15t + 20

Show the gradient calculation first — even if you can see it from the graph, write m = (y₂ − y₁)/(x₂ − x₁). That step earns a method mark on its own. Point-slope is your friend — you almost never need to use y = mx + c from scratch. Find m, use point-slope, then rearrange. Perpendicular check: multiply the two gradients together. If the answer is −1, you're right. Context questions: m = rate of change, c = starting value. The units of m come from the units of y divided by the units of x.

IB-style question [7 marks]

Line L passes through the points A(−2, 1) and B(2, 9). (a) Find the gradient of L. (b) Find the equation of L in the form y = mx + c. (c) The line N is perpendicular to L and passes through the point (4, 0). Find the equation of N in the form y = mx + c.

Step by step:

  1. (a) Find the gradient of L from the two given points.

    mL=9−12−(−2)=84=2m_L = \frac{9 - 1}{2 - (-2)} = \frac{8}{4} = 2mL​=2−(−2)9−1​=48​=2
  2. (b) Use point-slope with m = 2 and the point A(−2, 1), then rearrange.

    y−1=2(x+2)  ⇒  y=2x+5y - 1 = 2(x + 2) \;\Rightarrow\; y = 2x + 5y−1=2(x+2)⇒y=2x+5
  3. (c) N is perpendicular to L, so its gradient is the negative reciprocal of 2 — flip the fraction and change the sign.

    mN=−12m_N = -\frac{1}{2}mN​=−21​
  4. N passes through (4, 0); substitute into y = mx + c to find c.

    0=−12(4)+c  ⇒  0=−2+c  ⇒  c=20 = -\tfrac{1}{2}(4) + c \;\Rightarrow\; 0 = -2 + c \;\Rightarrow\; c = 20=−21​(4)+c⇒0=−2+c⇒c=2
  5. Write the equation of N.

    y=−12x+2y = -\tfrac{1}{2}x + 2y=−21​x+2
Final answer:

(a) gradient of L = 2. (b) y = 2x + 5. (c) y = −(1/2)x + 2.

What you'll learn in Topic 2.1

  • 2.1.1 Gradient and y-intercept
  • 2.1.2 Writing the equation of a straight line
  • 2.1.3 Parallel and perpendicular lines
  • 2.1.4 Linear models in context
Suggested study order: Read the notes for each sub-topic below → test yourself with flashcards → attempt practice questions → review exam technique.

Study resources — 2.1 Equations of a line

2.1.1

Gradient and y-intercept

Notes
2.1.2

Writing the equation of a straight line

Notes
2.1.3

Parallel and perpendicular lines

Notes
2.1.4

Linear models in context

Notes

Ready to study Equations of a line?

Get expert practice questions with instant AI feedback, and a study planner tailored to your IB Math AI HL exam date.

Start studying free

Topic 2.1 Equations of a line forms a core part of Unit 2: Functions in IB Math AI HL. Mastering these concepts will strengthen your understanding of connected topics across the syllabus and prepare you for exam questions that require analysis, evaluation, and real-world application.

Previous topic
1.15 Eigenvalues & eigenvectors (HL only)
Next topic
2.2 Functions, domains, ranges, and graphs
All Math AI HL topics
Exam technique

Ready to practice?

Get AI-graded practice questions, mock exams, flashcards, and a personalised study plan — all aligned to your IB syllabus.

Start Studying Free

No credit card required · No time limit