document.write( "Question 941811: Juan is driving on the highway. He begins the trip with
\n" ); document.write( "18
\n" ); document.write( " gallons of gas in his car. The car uses up one gallon of gas every
\n" ); document.write( "20
\n" ); document.write( " miles.
\n" ); document.write( "Let
\n" ); document.write( "G
\n" ); document.write( " represent the number of gallons of gas he has left in his tank, and let
\n" ); document.write( "D
\n" ); document.write( " represent the total distance (in miles) he has traveled. Write an equation relating
\n" ); document.write( "G
\n" ); document.write( " to
\n" ); document.write( "D
\n" ); document.write( " , and then graph your equation using the axes below.
\n" ); document.write( "

Algebra.Com's Answer #574131 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
[( 1 gallon ) / ( 20 mi )] x D = ( gallons used )
\n" ); document.write( "\"+%28+1%2F20+%29%2AD+\" = gallons used
\n" ); document.write( "for instance, if he travels \"+D+=+40+\" mi, then
\n" ); document.write( "( gallons used ) = \"+2+\"
\n" ); document.write( "---------------------------
\n" ); document.write( "( gallons left in tank ) = ( 18 gallons ) - ( gallons used )
\n" ); document.write( "\"+G+=+18+-+%28+1%2F20+%29%2AD+\"
\n" ); document.write( "-----------------------
\n" ); document.write( "This is the equation to use, but if you have to graph it,
\n" ); document.write( "you need to decide which variable is dependent and
\n" ); document.write( "which variable is independent.
\n" ); document.write( "You have to choose between:
\n" ); document.write( "(1) G depends on D
\n" ); document.write( "OR
\n" ); document.write( "(2) D depends on G
\n" ); document.write( "----------------------
\n" ); document.write( "(1) is correct, because the gallons I have left in my tank
\n" ); document.write( "DEPENDS on how far I have driven
\n" ); document.write( "----------------------
\n" ); document.write( "So, G is the DEPENDENT variable, and that makes
\n" ); document.write( "D the INDEPENDENT variable
\n" ); document.write( "----------------------
\n" ); document.write( "The independent variable is always plotted on the
\n" ); document.write( "horizontal axis
\n" ); document.write( "The dependent variable is always plotted on the
\n" ); document.write( "vertical axis
\n" ); document.write( "-----------------------
\n" ); document.write( "So, I want my equation to look like:
\n" ); document.write( "\"+G+=+f%28+D+%29+\", so it is correct as shown:
\n" ); document.write( "\"+G+=+18+-+%28+1%2F20+%29%2AD+\"
\n" ); document.write( "Here's the plot:
\n" ); document.write( "\"+graph%28+400%2C+400%2C+-50%2C+500%2C+-10%2C+22%2C+18+-+%28+1%2F20+%29%2Ax+%29+\"
\n" ); document.write( "The graph looks OK
\n" ); document.write( "If \"+D+=+0+\", \"+G+=+18+\"
\n" ); document.write( "If \"+D+=+360+\", \"+g+=+0+\"\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );