\r\n" );
document.write( "This is the graph of f(x):\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "We translate the endpoints of the line segments in f(x) to line segments\r\n" );
document.write( "in g(x), using the given point transformation (a,b) ---> (3a-1, b/2)\r\n" );
document.write( "\r\n" );
document.write( "(-4,4) in f(x) corresponds to (-13,2) in g(x).\r\n" );
document.write( "(-1,0) in f(x) corresponds to (-4,0) in g(x).\r\n" );
document.write( " (0,2) in f(x) corresponds to (-1,1) in g(x)\r\n" );
document.write( "(4,-4) in f(x) corresponds to (11,-2) in g(x)\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "f(x) is in black, g(x) is in green.\r\n" );
document.write( "\r\n" );
document.write( "We observe what happens when point (a,b) on f(x) becomes (3a-1,b/2) on g(x)\r\n" );
document.write( "\r\n" );
document.write( "Each x-coordinate \"a\" becomes \"3a\", and then becomes \"3a-1\"\r\n" );
document.write( "\r\n" );
document.write( "When \"a\" becomes \"3a\", that indicated a horizontal stretch by a factor of 3.\r\n" );
document.write( "That is accomplished by replacing x in f(x) by 1/3x,\r\n" );
document.write( "\r\n" );
document.write( "So that gives us \r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "for \"a\" becoming \"3a\".\r\n" );
document.write( "\r\n" );
document.write( "Then when \"3a\" becomes \"3a-1\", that indicates a horizontal shift by 1 unit\r\n" );
document.write( "left. That is accomplished by replacing x by x+1.\r\n" );
document.write( "\r\n" );
document.write( "So that gives us\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "for \"3a\" becoming \"3a-1\".\r\n" );
document.write( "\r\n" );
document.write( "Now each y-coordinate \"b\" becomes \"b/2\".\r\n" );
document.write( "\r\n" );
document.write( "When each y-coordinate \"b\" becomes \"b/2\", the graph is shrunk vertically\r\n" );
document.write( "by a factor of 1/2. That is accomplished by multiplying the entire function\r\n" );
document.write( "by 1/2,\r\n" );
document.write( "\r\n" );
document.write( "So that gives us\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "for b becoming b/2.\r\n" );
document.write( "\r\n" );
document.write( "So that now completes g(x) in terms of f(x), so we have:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "You will notice that the green graph is the black graph stretched\r\n" );
document.write( "horizontally by a factor of 3, then shrunk vertically by a factor of 1/2 and\r\n" );
document.write( "shifted left by 1 unit.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( " \n" );
document.write( "