Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say I have points $A(a,a)$ and $B(a,0)$. What is the equation of the line $AB$? If I'm correct the slope is infinite, but it never has a y-intercept. This would give $y=\infty x$, but there are infinitely many lines which should have this formula but are different (they have a different $y$). Is this a flaw in the $y=mx+b$ system? How do we handle this?

share|cite|improve this question
Thanks, I thought it'd be \inf :P – JohnPhteven Oct 23 '12 at 13:57
up vote 2 down vote accepted

The equation of the line $AB$ is $x=a$. $x=0$ corresponds to the $y$-axis itself. We do not speak of the slope of a vertical line, so $y=mx+b$ does not apply here.

share|cite|improve this answer

Let the equation of the line be $Ax+By+C=0$

As it passes through $(a,a),(a,o)$ so, $Aa+Ba+C=0$ and $Aa+C=0\implies C=-Aa$

$Aa+Ba+C=0$ becomes $Ba=0\implies B=0$ as $a\ne 0$

So, the equation becomes $Ax+0y-Aa=0\implies x=a$ as $A=0$ would imply $C=0$.

Any line with $x$ co-ordinate same, can not be expressed as $y=mx+b$ as $\frac 1m$ becomes $\frac{a-a}{a-0}=\frac 0 a=0$ as $a\ne 0$

share|cite|improve this answer
I personally don't think it is appropriate to write $a/0=\infty$. Maybe you can say that the slope is not defined. Also, $(a-a)/(a-0)=0/a=0$ so you probably meant something else. – Pedro Tamaroff Oct 23 '12 at 22:56
@PeterTamaroff, what is the gradient of Y-axis? – lab bhattacharjee Oct 24 '12 at 4:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.