Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

How can one get the formula of a line going through the points $(0,0)$ and $(1,7)$

Also, how to get it in the form $ax+by=c$, I am really used to $y=ax+b$

share|improve this question

5 Answers 5

First we need to find the slope; we get that by using the formula:

$$\displaystyle\large m = \frac{y_2-y_1}{x_2-x_1}$$

Where $m$ is the slope, and $y_n$ and $x_n$ are the corresponding coordinates to $(x_1, y_1), (x_2, y_2)$.

$$\begin{align*}m = \frac{7 - 0}{1-0}\end{align*}=\frac{7}{1}=7$$

Now we input $m$ input the formula $y-y_1=m(x-x_1)$ in order to get the equation of the line [Note: $(x_1, y_1)$ is $(0, 0)]$:

$$y - 0 = 7(x - 0)$$

Which simplifies to:

$$y = 7x$$

We turn into $ax+by=c$ like this:

$$y - 7x = 0$$ or $$-7x + y = 0$$

share|improve this answer

Here is an answer which can be generalised to polynomials through a number of points. Suppose we want a curve (line) which passes through $(x_1, y_1)$ and $(x_2, y_2)$ and we have two functions $f_1$ and $f_2$ with $f_1(x_1)=1$, $f_1(x_2)=0$, $f_2(x_1)=0 $, $f_2(x_2)=1$ and we set $$y=y_1f_1(x) + y_2f_2(x)$$ then we have an equation for a curve which passes through both points. Now we set $$f_1(x) = \frac {x-x_2}{x_1-x_2}, \text { and }f_2(x)= \frac {x-x_1}{x_2-x_1}$$ It is then clear that the equation for $y$ is linear in $x$. A similar idea can be used for three points to give a quadratic (etc). You need functions which vanish at all but one of the points, and add linear combinations of these to get a funtion which passes through each one.

share|improve this answer

Def: The Slope of a line is defined as follows: If $(x_1,y_1)$ and $(x_2,y_2)$ are two points then, SLOPE = $m = \frac{y_2 - y_1}{x_2 -x_1}$.

Now, the equation of a line through points $(x_1,y_1)$ and $(x_2,y_2)$ is given by: $y_2 - y_1 = m(x_2 - x_1)$

share|improve this answer

As all points $(x,y)$ in your line $l$ have to fullfil $ax+by=c$, from $(0,0) \in l$ we can conclude $c = 0$. Now insert $(x=1,y=2)$ in your equation and you get $x+7y = 0$ or otherwise $y = -\frac 1 7 x$.

Getting from form 1 to 2, or the other way around is just subtracting/adding ax, and dividing by b.

share|improve this answer

A line has equation $ax + by = c$ for some real numbers $a$, $b$, and $c$ which are yet to be determined.

As $(0, 0)$ is a point on the line, it satisfies the equation of the line. That is $a(0) + b(0) = c$, so $c = 0$, reducing the equation of the line in question to $ax + by = 0$.

As $(1, 7)$ is on the line, it also satisfies the equation. That is $a(1) + b(7) = 0$, or $a = -7b$. This reduces the equation of the line to $ax -7ay = 0$. If $a = 0$, the equation does not define a line (it is the equation $0 = 0$ which is satisfied by every point in the plane), so $a \neq 0$ and we can therefore divide both sides of our equation by $a$ leaving $x - 7y = 0$.

share|improve this answer

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.