Modulus Functions (DP IB Analysis & Approaches (AA)): Revision Note

Dan Finlay

Written by: Dan Finlay

Reviewed by: Mark Curtis

Updated on

Modulus functions & graphs

What is the modulus function?

  • The modulus function (or absolute value function) is defined by f left parenthesis x right parenthesis equals open vertical bar x close vertical bar

    • which gives the positive distance (or size) of a real number x from zero

    • e.g.

      • vertical line 3 vertical line equals 3

      • vertical line minus 2 vertical line equals 2

      • vertical line 0 vertical line equals 0

  • It can also be defined as

    • open vertical bar x close vertical bar equals open curly brackets table row x cell x greater or equal than 0 end cell row cell negative x end cell cell x less than 0 end cell end table close

    • or open vertical bar x close vertical bar equals square root of x squared end root

  • Its largest domain is the set of all real values

    • and its range is the set of all real non-negative values

Examiner Tips and Tricks

It is common quick way of saying y equals vertical line x vertical line is "y equals mod x".

How do I sketch the modulus function?

  • The graph of y equals vertical line x vertical line is the line y equals x for x greater or equal than 0

    • and y equals negative x for x less than 0

      • giving it a V-shape

      • with its vertex at the origin

  • The function is continuous

    • but not differentiable at x equals 0

      • as no gradient exists there

2-4-2-ib-aa-hl-modulus-function

How do I sketch y = a|x + p| + q?

  • The graph of y equals a vertical line x plus p vertical line plus q is a transformation of the graph y equals vertical line x vertical line as follows:

    • First, apply a vertical stretch of scale factor a to y equals vertical line x vertical line

      • y equals a vertical line x vertical line

    • Secondly, apply a translation of open parentheses table row cell negative p end cell row q end table close parentheses

      • y equals a vertical line x plus p vertical line plus q

  • This transforms the vertex open parentheses 0 comma space 0 close parentheses on y equals vertical line x vertical line to

    • the new vertex at open parentheses negative p comma space q close parentheses on y equals a vertical line x plus p vertical line plus q

Examiner Tips and Tricks

A lot of students get the sign of p wrong when finding the vertex coordinates open parentheses negative p comma space q close parentheses from y equals a vertical line x plus p vertical line plus q.

  • Note that

    • a greater than 0 means a logical or shape

      • the bigger a the steeper the logical or

    • a less than 0 means a logical and shape

      • the more negative the a the steeper the logical and

Graph of transformed modulus function y = a|x + p| + q showing vertex at (-p, q), with 'V' shape for a>0 and '∧' shape for a<0. Axes included.

How do I rearrange a graph into the form y = a|x + p| + q?

  • Two useful modulus relations for rearranging are

    • open vertical bar a b close vertical bar equals open vertical bar a close vertical bar open vertical bar b close vertical bar

    • open vertical bar a minus b close vertical bar equals open vertical bar b minus a close vertical bar

  • e.g. y equals vertical line 6 minus 2 x vertical line plus 1 can be rearranged as follows:

    • y equals vertical line 2 x minus 6 vertical line plus 1

      • using open vertical bar a minus b close vertical bar equals open vertical bar b minus a close vertical bar

    • y equals vertical line 2 open parentheses x minus 3 close parentheses vertical line plus 1

      • by factorisation

    • y equals vertical line 2 vertical line vertical line open parentheses x minus 3 close parentheses vertical line plus 1

      • using open vertical bar a b close vertical bar equals open vertical bar a close vertical bar open vertical bar b close vertical bar

    • vertical line 2 vertical line equals 2 and vertical line open parentheses x minus 3 close parentheses vertical line equals vertical line x minus 3 vertical line giving

      • y equals 2 vertical line x minus 3 vertical line plus 1

You've read 0 of your 5 free revision notes this week

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Dan Finlay

Author: Dan Finlay

Expertise: Maths Subject Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Mark Curtis

Reviewer: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.