Functions
1.0 Definitions
2.0 Relation
3.0 Types of Relation
4.0 Functions
5.0 Standard Real Functions and their Graphical Representation
5.10 Reciprocal Function
5.1 Constant Function
5.2 Identity Function
5.3 Modulus Function
5.4 Greatest Integer Function or Floor Function
5.5 Smallest Integer Function or Ceiling Function
5.6 Fractional Part Function
5.7 Signum Function
5.8 Exponential Function
5.9 Logarithmic Function
5.11 Square Root or Radical Function
5.12 Square Function
5.13 Cube Function
5.14 Cube Root Function
6.0 Operations on Real Functions
7.0 Types of Functions
8.0 Composition of a Function
9.0 Inverse of a Function
5.3 Modulus Function
5.1 Constant Function
5.2 Identity Function
5.3 Modulus Function
5.4 Greatest Integer Function or Floor Function
5.5 Smallest Integer Function or Ceiling Function
5.6 Fractional Part Function
5.7 Signum Function
5.8 Exponential Function
5.9 Logarithmic Function
5.11 Square Root or Radical Function
5.12 Square Function
5.13 Cube Function
5.14 Cube Root Function
The function $f(x)$ defined by, $$f(x) = \left| x \right| = \left\{ \matrix{x\;\;\;\;\;,\;when\;x \ge 0 \hspace{1em} \cr - x\,\;\;,\;when\;x < 0 \hspace{1em} \cr} \right.$$ is called the modulus function.
To plot the graph, just divide it into two parts.
First one is when $x>0$. We consider the first function i.e., $y=x$ means a straight line passing through origin and positive slope $+1$. But the graph is valid only when $x>0$ i.e., only for $I$ and $IV$ quadrant. So just remove the straight line part which lies in $III$ quadrant.
Similarly, for second part when $x<0$. We consider the second function i.e., $y=-x$ means a straight line passing through origin and negative slope $+1$. But the graph is valid only when $x<0$ i.e., only for $II$ and $III$ quadrant. So just remove the straight line part which lies in $IV$ quadrant.
The remaining part of straight line represents the graph of mod function as shown in the figure.
Using the above concept, if we have to plot for the function $y = - \left| x \right|$, we can directly change the sign as shown \[f(x) = - \left| x \right| = \left\{ \begin{gathered}- x\;\;\;\;\;,\;when\;x \geqslant 0 \hspace{1em} \\ x{\mkern 1mu} \;\;{\text{ }},\;when\;x < 0 \hspace{1em} \\ \end{gathered} \right.\]
Example 14. Plot the graph of a function $f(x) = \left| {x - {k_1}} \right| + {k_2}$.
Solution: To plot the graph of the function $$y = \left| {x - {k_1}} \right| + {k_2}$$ First of all bring the constant term to the left side, $$y - {k_2} = \left| {x - {k_1}} \right|$$ Now, assume both left and right side equals to $0$ separately i.e.,
$$\begin{equation} \begin{aligned} y - {k_2} = 0,\quad x - {k_1} = 0 \\ y = {k_2},\quad x = {k_1}\quad \\\end{aligned} \end{equation} $$
Now, the origin which was $(0,0)$ for the function $y = \left| x \right|$, is shifted to $\left( {{k_1},{k_2}} \right)$ and it becomes $$Y = \left| X \right|$$ where, $Y = y - {k_2}\;{\text{and }}X = x - {k_1}$
Now, we plot the graph similar to $y = \left| x \right|$ by shifting origin as shown in figure.