Solveeit Logo

Question

Question: How do you graph the function \(f\left( x \right)=2x\) ?...

How do you graph the function f(x)=2xf\left( x \right)=2x ?

Explanation

Solution

Problems of this type can be easily solved by converting the function into a simple coordinate geometrical equation first, as y=2xy=2x . After that we select two xx values, and plug them into the equation to find the corresponding yy values. Now, we plot the two points on graph paper and connect them using a line, which will be the graph of the given function.

Complete step by step answer:
The given function we have is
f(x)=2xf\left( x \right)=2x
We rewrite this function in the form of an equation,
y=2x\Rightarrow y=2x
As, this is an equation of a straight line and we know that any line can be graphed connecting two points. We have to select two xx values, and plug them into the equation to find the corresponding yy values.
We now choose 00 to substitute in for in for xx to find the ordered pair. Replacing the variable xx with 00 in the expression, we get
f(0)=20\Rightarrow f\left( 0 \right)=2\cdot 0
f(0)=0\Rightarrow f\left( 0 \right)=0
y=0\Rightarrow y=0
Hence, for x=0x=0 we get 00 as the yy value.
Again, we replace the variable xx with 55 in the expression, as
f(5)=25\Rightarrow f\left( 5 \right)=2\cdot 5
f(5)=10\Rightarrow f\left( 5 \right)=10
y=10\Rightarrow y=10
Hence, for x=5x=5 we get 1010 as the yy value.
We get the coordinates of the two points (0,0)\left( 0,0 \right) and (5,10)\left( 5,10 \right)
Now, connecting the two points we get the graph of the line, y=2xy=2x
Therefore, we graph the line by connecting the points (0,0)\left( 0,0 \right) and (5,10)\left( 5,10 \right) .

Note:
Instead of connecting two points to get the line we can also graph the function by comparing the equation with the general straight-line equation, y=mx+cy=mx+c . Hence, the slope we get is 22 and the yy intercept is 00 . As the line has zero yy intercept using a protractor at the origin to draw the angle of the corresponding slope, we will be able to plot the function f(x)=2xf\left( x \right)=2x on graph paper.