The absolute value function

The absolute value function is a function defined by parts: |x|={x if x0x if x<0 Its domain Dom(f)=R and its image Im(f)=[0,+).

Example

Let's consider the function f(x)=|2x1|.

To represent it graphically, first, we will have to express it as a function defined by parts: f(x)=|2x1|={2x1 if 2x10(2x1) if 2x1<0={2x1 if x1212x if x<12 Now we can already represent it graphically considering, for example, points 0,12 and 1:

x f(x)
0 1
12 0
1 1

Therefore the function is (let's remember that only we need two points to represent a straight line):

imagen