Access free live classes and tests on the app
Download
+
Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA
Login Join for Free
avtar
  • ProfileProfile
  • Settings Settings
  • Refer your friendsRefer your friends
  • Sign outSign out
  • Terms & conditions
  • •
  • Privacy policy
  • About
  • •
  • Careers
  • •
  • Blog

© 2023 Sorting Hat Technologies Pvt Ltd

Watch Free Classes
    • Free courses
    • JEE Main 2024
    • JEE Main 2024 Live Paper Discussion
    • JEE Main Rank Predictor 2024
    • JEE Main College Predictor 2024
    • Stream Predictor
    • JEE Main 2024 Free Mock Test
    • Study Materials
    • Notifications
    • JEE Advanced Syllabus
    • JEE Books
    • JEE Main Question Paper
    • JEE Coaching
    • Downloads
    • JEE Notes & Lectures
    • JEE Daily Videos
    • Difference Between
    • Full Forms
    • Important Formulas
    • Exam Tips
JEE Main 2026 Preparation: Question Papers, Solutions, Mock Tests & Strategy Unacademy » JEE Study Material » Mathematics » Solved Examples of Modulus Function

Solved Examples of Modulus Function

A modulus function is a function that returns a number's absolute value and generates its magnitude. Some solved examples of modulus are shared in this article.

Table of Content
  •  

A modulus function determines a number’s magnitude regardless of its sign. The absolute value function is another name for it. The modulus of a real number x is given by the modulus function, represented as |x| in mathematics. It returns a non-negative value for x, implying that the function’s output is always positive, regardless of the input. In this article, we will learn about the solved examples on modulus and its application with the help of some solved examples.

Modulus function

A modulus function is a function that returns a number or variable’s absolute value. It generates the number of variables’ magnitudes. A number’s modulus, or absolute value, is also known as the number’s distance from the origin or zero.  

The function is denoted as y = |x| or f(x) = |x|, 

where f: R → R and x ∈ R.

 

f(x) = x,   if x ≥ 0              f(x) =-x,     if  x<0

Therefore, in mathematics, |x| is the modulus of x, where x is a real number. If x is greater than or equal to 0, the modulus function returns the actual value of x. If x is less than 0, the function takes the minus of the actual value ‘x’.

 

Calculation of modulus function

The modulus function’s application and calculation are simple to comprehend. As a consequence of the function, the modulus function always returns the absolute value of the input x.

To understand the application of the formula, let us consider a few solved examples:

 

Solved example: Consider the modulus function f(x) = |x – 1|. Then:

  • If x = -7, then y = f(x) = – (-7 – 1) = 8, since x-1 is less than zero
  • If x = 5, then y = f(x) = 5 – 1 = 4, since x-1 is greater than zero
  • If x = 1, then y = f(x) = – (1 – 1) = 0, since x-1 is equal to zero

Thus similarly, we can solve for any modulus function. However, we must also understand the intricacies of the domain and range of modulus functions before proceeding further.

Graph of modulus function meaning

The graph of modulus function depicts the relationship between x and y as x changes. The graph is drawn so that the range of function f(x) is positive for all x values.

Thus, for a function, y = |x|:

  • The x-axis shows the value of variable x 
  • The y-axis shows the value of function y. 

Let us take a solved example for better understanding. Suppose x is a variable, and f(x) = |x|. Then, according to the function, the output of f(x) for changing values of x will be as follows:

 

x

f(x) = |x|

15

15

10

10

5

5

1

1

0

0

-1

1

-2

2

-3

3

-4

4

-5

5

 

Thus, when these values are plotted on a graph, the graph of the modulus function f(x) = |x| will look like this:

It can be seen from the graph that the relationship between x and y for function y = |x| is as follows

  • If x = -5 then y = |-5| = 5
  • If x = -4 then y = |-4| = 4
  • If x = -3 then y = |-3| = 3
  • If x = -2 then y = |-2| = 2
  • If x = -1 then y = |-1| = 1
  • If x = 0 then y = |0| = 0
  • If x = 1 then y = |1| = 1
  • If x = 5 then y = |5| = 5
  • If x = 10 then y = |10| = 10
  • If x = 15 then y = |15| = 15

 

Thus it can be easily inferred from the graph that for all possible values of x, the function f(x) remains positive. 

Solved Examples On Modulus

Question 1:

Solve |x + 4| = 10 using modulus function.

Solution: 

As we have noted earlier, the modulus function always gives positive output. Therefore for the function |x + 4| = 10, there can be two situations 

If x + 4 > 0, then |x + 4| = x + 4 and

If x + 4 < 0, then |x + 4| = −(x + 4)

 

Situation 1: If x + 4 > 0

|x + 4| = x + 4

⇒ x + 4 = 10

⇒ x = 10 − 4 = 6

 

Situation 2: If x + 4 < 0, we have

|x + 4| = − (x + 4)

⇒ − (x + 4) = 10

⇒ − x − 4 = 10

⇒ x = − 4 − 10 = − 14

Therefore, the solution for x is −14 and 6.

It can thus be said that −14 < x < 6.

 

Question 2:

Solve x for |x2 – 7x + 12| using modulus function:

 

Solution:

|x2 – 7x + 12| = |(x – 3) (x – 4)| = |f(x)|

 

According to the definition of modulus function,

When f(x) is positive

|f(x)| = f(x)

When  f(x) is negative

| f(x) |= -f(x)

 

Thus, 

f(x) = (x – 3)(x – 4) is  non-negative or zero when x = (- ∞, 3] ∪ [4, ∞)

f(x) = (x – 3)(x – 4) is negative when x = (3, 4)

 

So, |x2 – 7x + 12| = (x2 – 7x + 12) when x = (-∞, 3] ∪ [4, ∞) and

|x2 – 7x + 12| = -(x2 – 7x + 12) when x = (3, 4)

 

Question 3:

If |x2 – 7x + 12| + |x2 – 9x + 20| = 0. Find x.

 

Solution:

We know that a modulus function is always a positive number. 

In the question, |x2 – 7x + 12| + |x2 – 9x + 20| = 0

Thus, when two different modulus functions add up to zero, then it must mean that both the modulus functions are also equal to zero (The sum of two positive numbers can never be zero unless they both are equal to 0).

Thus, 

x2 – 7x + 12 = 0 

(x – 3) (x – 4) = 0

x = 3, 4

Similarly, 

x2 – 9x + 20 = 0

(x – 4) (x – 5) = 0

x = 4, 5

 

Thus it can be seen that both the equations are zero at only one point, ie, when x = 4

Thus the only possible solution for x for |x2 – 7x + 12| + |x2 – 9x + 20| = 0 is x = 4

Conclusion

Thus in this article we have studied that the modulus of a real number x is given by the modulus function. The function provides a non-negative value for x, implying that the function’s output is always positive. We have also learnt how to plot the graph of the modulus function, which depicts the relationship between x and y.

faq

Frequently Asked Questions

Get answers to the most common queries related to the JEE Examination Preparation.

What is the domain of a Modulus Function?

The domain of a function refers to the range of values that can be put into it. The domain of the modulus function i...Read full

What is the range of a Modulus Function?

A function’s range is the set of values that the function can take. The range of the modulus function is [0,âˆ...Read full

What is the result of a modulus function?

The result of a modulus function is always a non-negative number. According to the properties of the modulus functio...Read full

The domain of a function refers to the range of values that can be put into it. The domain of the modulus function is R, where R represents the set of all positive real numbers. Thus, any real number can be modulated using the modulus function. 

A function’s range is the set of values that the function can take. The range of the modulus function is [0,∞) and the domain is R. This means that the range of the modulus function is the set of all non-negative real numbers, denoted as [0,∞).

The result of a modulus function is always a non-negative number. According to the properties of the modulus function, it can never result in a negative number.

Crack IIT JEE with Unacademy

Get subscription and access unlimited live and recorded courses from India’s best educators

  • Structured syllabus
  • Daily live classes
  • Ask doubts
  • Tests & practice
Learn more

Notifications

Get all the important information related to the JEE Exam including the process of application, important calendar dates, eligibility criteria, exam centers etc.

Allotment of Examination Centre
JEE Advanced Eligibility Criteria
JEE Advanced Exam Dates
JEE Advanced Exam Pattern 2023
JEE Advanced Syllabus
JEE Application Fee
JEE Application Process
JEE Eligibility Criteria 2023
JEE Exam Language and Centres
JEE Exam Pattern – Check JEE Paper Pattern 2024
JEE Examination Scheme
JEE Main 2024 Admit Card (OUT) – Steps to Download Session 1 Hall Ticket
JEE Main Application Form
JEE Main Eligibility Criteria 2024
JEE Main Exam Dates
JEE Main Exam Pattern
JEE Main Highlights
JEE Main Paper Analysis
JEE Main Question Paper with Solutions and Answer Keys
JEE Main Result 2022 (Out)
JEE Main Revised Dates
JEE Marking Scheme
JEE Preparation Books 2024 – JEE Best Books (Mains and Advanced)
Online Applications for JEE (Main)-2022 Session 2
Reserved Seats
See all

Related articles

Learn more topics related to Mathematics
Zero Vector

A zero vector is defined as a line segment coincident with its beginning and ending points. Primary Keyword: Zero Vector

ZERO MATRIX

In this article, we will discuss about the zero matrix and it’s properties.

YARDS TO FEET

In this article we will discuss the conversion of yards into feet and feets to yard.

XVI Roman Numeral

In this article we are going to discuss XVI Roman Numerals and its origin.

See all
Access more than

10,505+ courses for IIT JEE

Get subscription

Trending Topics

  • JEE Main 2024
  • JEE Main Rank Predictor 2024
  • JEE Main Mock Test 2024
  • JEE Main 2024 Admit Card
  • JEE Advanced Syllabus
  • JEE Preparation Books
  • JEE Notes
  • JEE Advanced Toppers
  • JEE Advanced 2022 Question Paper
  • JEE Advanced 2022 Answer Key
  • JEE Main Question Paper
  • JEE Main Answer key 2022
  • JEE Main Paper Analysis 2022
  • JEE Main Result
  • JEE Exam Pattern
  • JEE Main Eligibility
  • JEE College predictor
combat_iitjee

Related links

  • JEE Study Materials
  • CNG Full Form
  • Dimensional Formula of Pressure
  • Reimer Tiemann Reaction
  • Vector Triple Product
  • Swarts Reaction
  • Focal length of Convex Lens
  • Root mean square velocities
  • Fehling’s solution
testseries_iitjee
Predict your JEE Rank
.
Company Logo

Unacademy is India’s largest online learning platform. Download our apps to start learning


Starting your preparation?

Call us and we will answer all your questions about learning on Unacademy

Call +91 8585858585

Company
About usShikshodayaCareers
we're hiring
BlogsPrivacy PolicyTerms and Conditions
Help & support
User GuidelinesSite MapRefund PolicyTakedown PolicyGrievance Redressal
Products
Learner appLearner appEducator appEducator appParent appParent app
Popular goals
IIT JEEUPSCSSCCSIR UGC NETNEET UG
Trending exams
GATECATCANTA UGC NETBank Exams
Study material
UPSC Study MaterialNEET UG Study MaterialCA Foundation Study MaterialJEE Study MaterialSSC Study Material

© 2026 Sorting Hat Technologies Pvt Ltd

Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA

Share via

COPY