For a straight line parallel to y-axis, using the formula $x = \frac{y-c}{m}$ gives $x = 0$

coordinate systems

The general equation of a straight line is $y= mx + c$ but when a line is parallel to y-axis this equation doesn't work because the value of the slope is $1 \over 0$(taking 1 unit for rise and 0 for run), so I tried to solve it with respect to x so that the value of m gets inversed that is $0 \over 1$ which can be used to solve it.
$$\implies x=\frac{y-c}{m}$$
for a line parallel to y-axis the slope is $m={1\over0}$, substituting m in the above equation we get
\begin{align}x=(y-c)\div m \\ \implies x = (y-c) \div {1\over0}\\ \implies x=(y-c)\times{0\over1} \\ \implies x=0\end{align}
But $x = 0$ means that the line is overlapping y-axis and the correct answer should be $x = c$ where c is x-intercept. Where did I went wrong? and why can't we use this equation for this condition?

Best Answer

$m=\frac10$ is a nonsensical expression. As such, you should come as no surprise that anything you write after that expression will also not make any sense.


When the line is vertical, it's quite inaccurate to speak of it's slope as being equal to $\frac10$. It helps to be accurate when talking about mathematical terms, and to keep in mind what the definitions of what you are talking about are.

The definition of the slope of a line is that it is the value $k$ for which the equation $$y=kx + n$$ describes the line. In more detail, it's the value for which the set $$\{(x, y)| y=kx + n\}$$ is equal to the line.

If the line is vertical, it is relatively easy to show that no such value $k$ exists, and therefore, by the definition of the slope, the line does not have a slope. The slope is not equal to $\frac10$.

Related Question