根据已知两点书写方程式

Before this, know求斜率与y截距

Video · + 2 min read

(Video) Writing Equations of Lines

by mathman1024

This video by mathman1024 teachs you how to find and write the equation of a line when given at least 22 points.

Summary\large{\text{Summary}}

The problem he solves is, "Find the equation of a line that passes through the points (3,−4)(3,-4) and (−1,2)(-1,2)." To solve this problem you can either use the slope-intercept equation or the point slope equation.

Remember that the form for slope-intercept is: y=mx+by=mx+b

And point slope is: y−y0=m(x−x0)y-y_0=m(x-x_0)

Finding the equation

Mathman1024 takes the steps to use slope-intercept form in this video. The first step for these problems is to find the slope mm. We can use our points (3,−4)\color{#8925AE}{(3,-4)} and (−1,2)\color{#29A603}{(-1,2)} to find it. m=riserun=y2−y1x2−x1m=2−(−4)−1−3m=6−4m=−32m=\frac{\text{rise}}{\text{run}}=\frac{y_2-y_1}{x_2-x_1}\\ \begin{align} m&=\frac{{\color{#29A603}{2}}-{\color{#8925AE}{(-4)}}}{{\color{#29A603}{-1}}-{\color{#8925AE}{3}}}\\ m&=\frac{6}{-4}\\ m&=-\frac32 \end{align}

Now using slope and either of the points, we can find the yy-intercept with the slope intercept equation. y=mx+b2=−32(−1)+b2=32+b2 − 32=32 − 32+b12=b\begin{align} y&=mx+b\\ 2&=-\frac32(-1)+b\\ 2&=\frac32+b\\ 2\,{\color{#8925AE}{-\,\frac32}}&=\frac32\,{\color{#8925AE}{-\,\frac32}}+b\\ \frac12&=b \end{align}

So now that we have the slope and the yy-intercept we can find the equation of the line. y=mx+by=−32x+12y = mx + b \\ \\ y=-\frac32x+\frac12

Test Yourself

Find the equation of a line through the points (1,5)(1,5) and (6,0)(6,0).

Choose one answer

Illustrated · 1 min

Writing Equations

Here are the steps:

  1. Find the slope (mm).
  2. Find the yy-intercept (bb).
  3. Replace mm and bb with the slope and yy-intercept (respectively) in y=mx+by = mx + b

In this explanation, we're going to be working with the points (4,5)(4, 5) and (−1,4)(-1, 4).

Graph of the points (4,5) and (-1,4).

Made using Desmos

So, first we find the slope. We can do that by using rise over run. If possible, you can graph the points and count like in the graph above.

We can count starting at the point (−1,4)(-1,4). Going up one unit, and over 55 units, we are at the point (4,5)(4,5). So the slope is 15\frac{1}{5}. Now, we find the yy-intercept. Let's use the equation y=mx+by=mx+b and plug in xx, yy, and mm. We see, 5=15(4)+b5=\frac{1}{5}(4)+b

This simplifies to b=215b=\frac{21}{5}. We can also draw the line through the points on the graph to see where the line hits the yy-axis. This of course is not as accurate.

Graph of y = 1/5x + 21/5.

Made using Desmos

Now, we see we have the line: y=15x+215y=\frac{1}{5}x+\frac{21}{5}

Interactive · 3 questions

Write a Slope-Intercept Equation from Two Known Points

To write an equation in slope intercept form from two points that you already know, you'll have to take a couple of steps:

  1. Find the slope (mm).
  2. Find the yy-intercept (bb).
  3. Replace mm and bb with the slope and yy-intercept (respectively) in y=mx+by = mx + b
Writing a Slope-Intercept Equation (if you know two points, (x1, y1) and (x2, y2)). Step One: Find the slope, m. m=(y2-y1)/(x2-x1). Step Two: Substitute m and the coordinates of either point into y=mx+b to solve for the y-intercept, b. y1=mx1+b --> b=y1-mx1 OR y2=mx2+b --> b=y2-mx2. Step Three: Plug m and b into slope-intercept equation. y=mx+b.

Image source: By Caroline Kulczycky

In this explanation, we're going to be working with the points (1,5)(1, 5) and (−2,−4)(-2, -4).

What is the slope of the line that crosses through (1,5)(1, 5) and (−2,−4)(-2, -4)? Simplify your answer all the way.

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems