# How do you graph y=abs(3x-2)?

Jan 14, 2018

Seperate the function into a piecewise function containing two separate functions with different domains, then graph each function with their domains.

#### Explanation:

Firstly, let's have a look at what the absolute value means in this case, as what is called a "piecewise function":

y = |3x - 2| {(3x - 2, 3x - 2 ≥ 0), (-(3x - 2), 3x - 2 < 0) :}

We could expand the negative sign over on $- \left(3 x - 2\right)$:

y = |3x - 2| {(3x - 2, 3x - 2 ≥ 0), (-3x + 2, 3x - 2 < 0) :}

Having a look at the inequalities on the right side, we could simplify them. Let's start with the first one:

3x - 2 ≥ 0

Add both sides by $2$:

3x - 2 + 2 ≥ 0 + 2

3x ≥ 2

Then divide by $3$:

(3x)/3 ≥ 2/3

x ≥ 2/3

And put that back:

y = |3x - 2| {(3x - 2, x ≥ 2/3), (-3x + 2, 3x - 2 < 0) :}

We could be sure that the other one is solved similarly, except with a different symbol:

y = |3x - 2| {(3x - 2, x ≥ 2/3), (-3x + 2, x < 2/3) :}

Since both are linear equations, we'd only need two points to plot each. Let's start by plotting the "extreme" point:

if $x = \frac{2}{3}$, then $y = 3 \left(\frac{2}{3}\right) - 2 = 2 - 2 = 0$

So we have $\left(\frac{2}{3} , 0\right)$:

Looking at our piecewise function, we could see that the first equation should be graphed only on the right of this point, and the second equation only on the left of this point. Since this point we have plotted is part of the first equation, we just need anoter point.

Let's pick $x = 1 = \frac{3}{3}$:

$y = 3 x - 2 \rightarrow 3 \left(1\right) - 2 = 3 \left(\frac{3}{3}\right) - 2 = 3 - 2 = 1$

So we have $\left(1 , 1\right)$:

And we can connect these two points to form the first equation's line:

Notice, we have cut off the line by the time it reaches $x = \frac{2}{3}$, because in our piecewise function, this first equation is only for x ≥ 2/3.

Looking at the second equation, we need a number less than $\frac{2}{3}$... how about $\frac{1}{3}$?

$y = - 3 x + 2 \rightarrow y = - 3 \left(\frac{1}{3}\right) + 2 = - 1 + 2 = 1$

So we have $\left(\frac{1}{3} , 1\right)$:

Hmm, we need another point... $x = \frac{1}{2}$?

$y = - 3 x + 2 \rightarrow y = - 3 \left(\frac{1}{2}\right) + 2 = - \frac{3}{2} + \frac{4}{2} = \frac{1}{2}$

Interesting! We have $\left(\frac{1}{2} , \frac{1}{2}\right)$:

And we can connect the points to graph the second equation, also cutting it off at $x = \frac{2}{3}$:

Ah, they both actually shared $\left(\frac{2}{3} , 0\right)$, so you could use that fact next time you graph these kinds of equations. Making things neater, here's what our final graph looks like: