Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store
seo-qna
SearchIcon
banner

What is the slope and y- intercept of the line $x=2$?

Answer
VerifiedVerified
521.7k+ views
Hint: The general equation of slope-intercept form of a line is given as $y=mx+c$ where, m is the slope of line and c is the y-intercept of the line. Then by comparing the values we get the desired answer.

Complete step-by-step answer:
We have been given an equation $x=2$.
We have to find the slope and y- intercept of the given equation.
We know that the slope-intercept form of a line is given by the equation $y=mx+c$ where, m is the slope of line and c is the y-intercept of the line. Y-intercept of the line is the point where a line crosses the Y-axis.
Now, we have given the equation $x=2$ it means the line is a vertical straight line and the value of y coordinate is zero.
Now, for a vertical straight line the value of slope of a line is also zero.
Now, comparing the given equation with the general equation we will get
$\Rightarrow m=0$
As the line is vertical straight it means it does not cross the Y-axis. So the y-intercept of a line is also zero.
Hence we get the values of slope as 0 and value of y-intercept of the given line as 0.

Note: Alternatively we can find the slope and intercept of the given equation by using the graphing method. For this we need to draw the graph of the given equation which is a straight line and then we can find the slope and intercept of the obtained line.