Demystifying mathematics — One topic at a time — Graphs — Applications of modulus on functions

Abhishek Mukherjee
Demystifying Mathematics
2 min readSep 14, 2020

Okay so we have read about functions right? And we all know about the coordinate plane and a plotting the functions on the same. Many a time rough plotting of graphs helps a lot

But what is a function?? → In simple terms any equation i.e. f(x) = y where only one value of y is obtained by putting a value of x

Lets start plottinggg…

This repeats itself after every 2π interval

Lets plot a few of its variations:

a) y=mod(sin(x)) where mod = modulus function

What did we do here? → Just make the negative part(y) positive

This repeats itself after every π interval

b) y=sin(mod(x)) where mod = modulus function

What did we do here? → Just replicated the part for x >0 in the part where x <0 . Why so? Because → for sin|x| we would have sin(-x) = sin(x) as for |x| → — x=x

c) y=-sin(x)

What did we do here? → Just inverted the equation about x axis as we are negating the value of function

Lets do combinations:

d) y=-mod(sin(x))

Let’s do this step by step. One function at a time

We have two parts here:

y1=mod(sin(x)) → Let’s call this this y1

then y=-y1

Step 1(for y1=mod(sin(x))):

Step 2(for y=-y1):

Hope this made graphical plotting easy for you. Happy learning :). Also please note i have these plots are rough plots for better understanding. They are not to scale

Originally published at https://medium.com on September 14, 2020.

--

--