g(x)=|x|-2g(x)=|x|−2 vs. f(x)=|x|f(x)=|x|
The -2−2 at the end of g(x)g(x) represents a vertical shift of 2 units down. Take the graph of f(x)f(x) and shift the whole thing down 2 units. This doesn't change the shape of the graph, just the location.
g(x)=|x-4|g(x)=|x−4| vs. f(x)=|x|f(x)=|x|
The -4−4 inside the absolute value of g(x)g(x) represents a shift of 4 units to the right. Take the graph of f(x)f(x) and shift the whole thing 4 units to the right. Again, this doesn't change the shape, just changes the location.