document.write( "Question 1196402: find the domain and range of function f(x)=3x-2 and sketch a graph for this
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #829234 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Domain = All real numbers
\n" ); document.write( "Range = All real numbers\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "As an inequality we can say
\n" ); document.write( "Domain is \"-infinity+%3C+x+%3C+infinity\"
\n" ); document.write( "Range is \"-infinity+%3C+y+%3C+infinity\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The interval notation for each is to represent going from negative infinity to positive infinity. Use curved parenthesis for both types of infinity. This is because we cannot reach these endpoints. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The domain represents the set of possible inputs.
\n" ); document.write( "The range represents the set of possible outputs.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To graph this, we need two points to draw a straight line\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Compare the equation y = 3x-2 to the form y = mx+b
\n" ); document.write( "m = 3 = 3/1 = slope
\n" ); document.write( "b = -2 = y intercept\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The y intercept b = -2 tells us that (0,-2) is one point on the line
\n" ); document.write( "Then move up 3 and to the right 1 (based on what the slope says) to arrive at the point (1,1)
\n" ); document.write( "Therefore, you can draw a straight line through (0,-2) and (1,1) to graph out y = 3x-2
\n" ); document.write( "You don't have to start at the anchor point of (0,-2) as you can start anywhere you like. But you have to be on the line. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Another way to graph:
\n" ); document.write( "Plug in x = 0 to find that...
\n" ); document.write( "y = 3x-2
\n" ); document.write( "y = 3(0)-2
\n" ); document.write( "y = 0-2
\n" ); document.write( "y = -2
\n" ); document.write( "Therefore, the ordered pair (x,y) = (0,-2) is on the line\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Repeat for x = 1
\n" ); document.write( "y = 3x-2
\n" ); document.write( "y = 3(1)-2
\n" ); document.write( "y = 3-2
\n" ); document.write( "y = 1
\n" ); document.write( "So (x,y) = (1,1) is another ordered pair point.
\n" ); document.write( "We get (0,-2) and (1,1) like we found earlier. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "There's nothing particularly special about x = 0 and x = 1. You can pick any two x values you want. After all the domain is the set of all real numbers.
\n" ); document.write( "I went with those values because they're small and easy to work with. Also, most standard xy grids are centered around the origin.
\n" ); document.write( "Feel free to choose your favorite two numbers to use for x.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You can use graphing software to verify your work. I recommend it to check your work rather than do it entirely for you.
\n" ); document.write( "Desmos and GeoGebra are two free options, among many others.
\n" ); document.write( "Here's the link to the Desmos graph so you can interact with it.
\n" ); document.write( "https://www.desmos.com/calculator/bawhrkdr7a\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Take note how the graph stretches forever left and right. This visually confirms why the domain is the set of all real numbers.
\n" ); document.write( "Any number can replace x. Hence we have infinitely many (x,y) points to work with.
\n" ); document.write( "All points on this line are of the form (x, 3x-2) meaning that the y coordinate depends on what you picked for x.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Similarly, the graph stretches up and down forever. This means any output (y) is possible and it visually confirms why the range is the set of all real numbers. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The domain and range being \"all real numbers\" applies to any diagonal linear equation (i.e. when the slope is nonzero, and is defined).
\n" ); document.write( "
\n" ); document.write( "
\n" );