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=2x?
Solution
Slope is the change in the value of y with respect to x 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+c, where m is the slope of the line and c 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 x intercept on x-axis, y=0. Similarly at the y-intercept on y-axis, x=0.
Complete step by step solution:
We have to find the slope of the line given by the equation y=2x.
We will use the slope-intercept formula to find the slope of the line.
The slope-intercept formula is given by y=mx+c.
On comparing the equation y=2x+0 with the standard form of the slope-intercept formula, we see that
m=2 and c=0
Thus, the slope of the given line is 2
Also, the y-intercept is 0. So, the point at which line will cut y-axis is (0,0)
Now, we find the x-intercept by assuming y=0 in the equation and evaluate the corresponding value of x. We assume here y=0 because that the line will touch x-axis at that point.
y=2x ⇒0=2x ⇒x=0
Thus, we get the point as (0,0). This is the x-intercept of the graph of the given equation.
Hence, the slope of the given line is 2, the x-intercept and y-intercept is both (0,0) or the origin.
We can also show this by the graph of y=2x.
Note: For a straight line, if two points A(x1,y1) and B(x2,y2) are situated on the line, then by slope formula we can calculate the slope (m) as, m=x2−x1y2−y1.
For a linear equation, we can also find the intercepts by writing the equation in the form of ax+by=1, where a will be the x intercept and b will be the y intercept. For a linear equation in two variables we get at most one x intercept and at most one y intercept.