Solveeit Logo

Question

Question: How do you find the slope and intercept to graph \(y = 2x\)?...

How do you find the slope and intercept to graph y=2xy = 2x?

Explanation

Solution

Slope is the change in the value of yy with respect to xx in the equation. We can find the slope of the line by using the slope-intercept formula wherein we write the given equation in the form y=mx+cy = mx + c, where mm is the slope of the line and cc is the y-intercept.
The intercepts are the points at which the line of an equation cuts the x-axis and y-axis. At the xx intercept on x-axis, y=0y = 0. Similarly at the y-intercept on y-axis, x=0x = 0.

Complete step by step solution:
We have to find the slope of the line given by the equation y=2xy = 2x.
We will use the slope-intercept formula to find the slope of the line.
The slope-intercept formula is given by y=mx+cy = mx + c.
On comparing the equation y=2x+0y = 2x + 0 with the standard form of the slope-intercept formula, we see that
m=2m = 2 and c=0c = 0
Thus, the slope of the given line is 22
Also, the y-intercept is 00. So, the point at which line will cut y-axis is (0,0)(0,{\kern 1pt} {\kern 1pt} 0)
Now, we find the x-intercept by assuming y=0y = 0 in the equation and evaluate the corresponding value of xx. We assume here y=0y = 0 because that the line will touch x-axis at that point.
y=2x 0=2x x=0  y = 2x \\\ \Rightarrow 0 = 2x \\\ \Rightarrow x = 0 \\\
Thus, we get the point as (0,0)(0,{\kern 1pt} {\kern 1pt} 0). This is the x-intercept of the graph of the given equation.
Hence, the slope of the given line is 22, the x-intercept and y-intercept is both (0,0)(0,{\kern 1pt} {\kern 1pt} 0) or the origin.
We can also show this by the graph of y=2xy = 2x.

Note: For a straight line, if two points A(x1,y1)A({x_1},{\kern 1pt} {\kern 1pt} {\kern 1pt} {y_1}) and B(x2,y2)B({x_2},{\kern 1pt} {\kern 1pt} {\kern 1pt} {y_2}) are situated on the line, then by slope formula we can calculate the slope (m) as, m=y2y1x2x1m = \dfrac{{{y_2} - {y_1}}}{{{x_2} - {x_1}}}.
For a linear equation, we can also find the intercepts by writing the equation in the form of xa+yb=1\dfrac{x}{a} + \dfrac{y}{b} = 1, where aa will be the xx intercept and bb will be the yy intercept. For a linear equation in two variables we get at most one xx intercept and at most one yy intercept.