Question 640816
If I was given a graph of y=f(x) and the graph has points: (-4,0), (0,2), (2,-2), (3,0) connected in that order.  How would I sketch the graph of y = f(x-1)?
----------<pre>

If you had, say this graph:

{{{drawing(400,400,-5,6,-3,8,graph(400,400,-5,6,-3,8,.25x^3+(x^2)/12-(19/6)x+2),
locate(-4+.1,.5,"(-4,0)"),locate(0,2,"(0,2)"),locate(2,-2,"(2,-2)"),locate(3+.1,.5,"(3,0)"),circle(-4,0,.1),circle(0,2,.1),circle(2,-2,.1),circle(3,0,.1))

)}}}



f(x-1) means that you are subtracting 1 from the value of the variable,
therefore you must choose x as 1 GREATER to compensate for the 1 that
is subtracted from the variable.  This may seem confusing, but if you
think about it, when you subtract from the variable, you must choose a 
larger value of x that will overcome the subtraction. Therefore you would 
add 1 to each x-coordinate and shift each point to the right by 1 unit and 
the new points would be (-3,0), (1,2), (3,-2), (4,0).  

A larger value of x must be chosen to produce the same value of y that x
would have produce if 1 had not been subtracted from the variable x. 
  
{{{drawing(400,400,-5,6,-3,8,graph(400,400,-5,6,-3,8,.25x^3+(x^2)/12-(19/6)x+2,
.25(x-1)^3+((x-1)^2)/12-(19/6)(x-1)+2),


locate(-3+.1,.5,"(-3,0)"),locate(1,2,"(1,2)"),locate(3,-2,"(3,-2)"),locate(4+.1,.5,"(4,0)"),circle(-3,0,.1),circle(1,2,.1),circle(3,-2,.1),circle(4,0,.1)


 )}}}

-----------

What about y=|f(x)|?

The absolute value never becomes negative, and so any part of the graph 
that drops below the x-axis must be reflected above the x axis.  That
means change any negative y-coordinates to positive.  The points with
positive y-coordinates will not change.  So the points will be 
(-4,0), (0,2), (2,2), (3,0). All the poins above the x-axis will be the
same and in this case only the one point (2,-2) has a negative y value,
and so the others are the same and only (2,-2) changes to (2,2). Notice 
below that the portion of the original graph that contains (2,-2) got 
reflected across the x-axis, and the rest of the graph is the same as
the original.  If the original graph goes down below the x-axis to the
left of (-2,0), as this one does, then that part will be reflected above 
the x-axis.  IOW the part of the graph that falls below the x-axis will
be reflected above the x-axis.   

{{{drawing(400,400,-5,6,-3,8,graph(400,400,-5,6,-3,8,abs(.25x^3+(x^2)/12-(19/6)x+2)),circle(2,2,.1),locate(2,2.5,"(2,2)"),
locate(-4+.1,.5,"(-4,0)"),locate(0,2,"(0,2)"),locate(2,-2,"(2,-2)"),locate(3+.1,.5,"(3,0)"),circle(-4,0,.1),circle(0,2,.1),circle(2,-2,.1),circle(3,0,.1))

)}}}




What about y=f|x|?

This will ignore anything on the left of the y-axis in the original graph,
since all negative values of x become positive, and so it amounts to not 
substituting any negative values of x in the original equation f(x), then
refecting what's on the right of the y-axis into the y-axis.  Note that 
the point(-4,0) is not used or reflected at all because it cannot be a value 
of |x| to produce any value for f(|x|) at all.  Also notice that (2,-2)
reflects across the y-axis into the point (-2,-2). The point that is on
the y-axis (0,2) reflects into itself, just as points on a mirror reflect
into themselves.  

{{{drawing(400,400,-5,6,-3,8,graph(400,400,-5,6,-3,8,.25abs(x)^3+(abs(x)^2)/12-(19/6)abs(x)+2),circle(-3,0,.1),locate(-3-.5,.5,"(-3,0)"),circle(-4,0,.1),
locate(-5,.5,"(-4,0)"),locate(0,2,"(0,2)"),locate(2,-2,"(2,-2)"),locate(3+.1,.5,"(3,0)"),circle(0,2,.1),circle(2,-2,.1),circle(3,0,.1),
locate(-2,2,"(-2,2)"),locate(-2,-2,"(-2,-2)"), circle(-2,-2,.1)

)}}}

Edwin</pre>