Resolve a system of equations

90 Views Asked by At

I'm trying to find the equation of a line starting at $(x_1, y_1)$ to $(x_2, y_2)$. So I took a point on the line $(x_1, y_1)$ and put it into a system of equation. Now what is the method to find the value of $y$ with respect to the other terms?

$\begin{cases} y_2=mx_2+p \\ y_1 = mx_1 + p \end{cases}$

And what I want is $y = ...$

2

There are 2 best solutions below

0
On

You want both $y_1=mx_1+p$ and $y_2=mx_2+p$. Solve these equations to find $m$ and $p$. Subtracting we get $y_1-y_2=m(x_1-x_2)$ so $m =\frac {y_1-y_2} {x_1-x_2}$. I will let you find $p$.

0
On

$$\begin{cases}y_1=mx_1+p,\\y_2=mx_2+p,\end{cases}$$

$$y_2-y_1=m(x_2-x_1),$$

$$m=\frac{y_2-y_1}{x_2-x_1},$$ and $$p=y_1-mx_1=y_2-mx_2.$$