Compose equations of lines given by two points. How to write an equation of a straight line using two points? Equation of a line passing through a given point in a given direction

Properties of a straight line in Euclidean geometry.

An infinite number of straight lines can be drawn through any point.

Through any two non-coinciding points a single straight line can be drawn.

Two divergent lines in a plane either intersect at a single point or are

parallel (follows from the previous one).

In three-dimensional space, there are three options for the relative position of two lines:

  • lines intersect;
  • lines are parallel;
  • straight lines intersect.

Straight line— algebraic curve of the first order: a straight line in the Cartesian coordinate system

is given on the plane by an equation of the first degree (linear equation).

General equation of a straight line.

Definition. Any straight line on the plane can be specified by a first-order equation

Ax + Wu + C = 0,

and constant A, B are not equal to zero at the same time. This first order equation is called general

equation of a straight line. Depending on the values ​​of the constants A, B And WITH The following special cases are possible:

. C = 0, A ≠0, B ≠ 0- a straight line passes through the origin

. A = 0, B ≠0, C ≠0 (By + C = 0)- straight line parallel to the axis Oh

. B = 0, A ≠0, C ≠ 0 (Ax + C = 0)- straight line parallel to the axis OU

. B = C = 0, A ≠0- the straight line coincides with the axis OU

. A = C = 0, B ≠0- the straight line coincides with the axis Oh

The equation of a straight line can be presented in different forms depending on any given

initial conditions.

Equation of a straight line from a point and a normal vector.

Definition. In a Cartesian rectangular coordinate system, a vector with components (A, B)

perpendicular to the line given by the equation

Ax + Wu + C = 0.

Example. Find the equation of a line passing through a point A(1, 2) perpendicular to the vector (3, -1).

Solution. With A = 3 and B = -1, let’s compose the equation of the straight line: 3x - y + C = 0. To find the coefficient C

Let's substitute the coordinates of the given point A into the resulting expression. We get: 3 - 2 + C = 0, therefore

C = -1. Total: the required equation: 3x - y - 1 = 0.

Equation of a line passing through two points.

Let two points be given in space M 1 (x 1 , y 1 , z 1) And M2 (x 2, y 2, z 2), Then equation of a line,

passing through these points:

If any of the denominators is zero, the corresponding numerator should be set equal to zero. On

plane, the equation of the straight line written above is simplified:

If x 1 ≠ x 2 And x = x 1, If x 1 = x 2 .

Fraction = k called slope straight.

Example. Find the equation of the line passing through points A(1, 2) and B(3, 4).

Solution. Applying the formula written above, we get:

Equation of a straight line using a point and slope.

If the general equation of the line Ax + Wu + C = 0 lead to:

and designate , then the resulting equation is called

equation of a straight line with slope k.

Equation of a straight line from a point and a direction vector.

By analogy with the point considering the equation of a straight line through the normal vector, you can enter the task

a straight line through a point and a directing vector of a straight line.

Definition. Every non-zero vector (α 1 , α 2), whose components satisfy the condition

Aα 1 + Bα 2 = 0 called directing vector of a straight line.

Ax + Wu + C = 0.

Example. Find the equation of a straight line with a direction vector (1, -1) and passing through the point A(1, 2).

Solution. We will look for the equation of the desired line in the form: Ax + By + C = 0. According to the definition,

coefficients must satisfy the following conditions:

1 * A + (-1) * B = 0, i.e. A = B.

Then the equation of the straight line has the form: Ax + Ay + C = 0, or x + y + C / A = 0.

at x = 1, y = 2 we get C/A = -3, i.e. required equation:

x + y - 3 = 0

Equation of a straight line in segments.

If in the general equation of the straight line Ах + Ву + С = 0 С≠0, then, dividing by -С, we get:

or where

The geometric meaning of the coefficients is that the coefficient a is the coordinate of the intersection point

straight with axis Oh, A b- coordinate of the point of intersection of the line with the axis OU.

Example. The general equation of a straight line is given x - y + 1 = 0. Find the equation of this line in segments.

C = 1, , a = -1, b = 1.

Normal equation of a line.

If both sides of the equation Ax + Wu + C = 0 divide by number which is called

normalizing factor, then we get

xcosφ + ysinφ - p = 0 -normal equation of a line.

The sign ± of the normalizing factor must be chosen so that μ*C< 0.

R- the length of the perpendicular dropped from the origin to the straight line,

A φ - the angle formed by this perpendicular with the positive direction of the axis Oh.

Example. The general equation of the line is given 12x - 5y - 65 = 0. Required to write different types of equations

this straight line.

The equation of this line in segments:

The equation of this line with the slope: (divide by 5)

Equation of a line:

cos φ = 12/13; sin φ= -5/13; p = 5.

It should be noted that not every straight line can be represented by an equation in segments, for example, straight lines,

parallel to the axes or passing through the origin.

The angle between straight lines on a plane.

Definition. If two lines are given y = k 1 x + b 1 , y = k 2 x + b 2, then the acute angle between these lines

will be defined as

Two lines are parallel if k 1 = k 2. Two lines are perpendicular

If k 1 = -1/ k 2 .

Theorem.

Direct Ax + Wu + C = 0 And A 1 x + B 1 y + C 1 = 0 parallel when the coefficients are proportional

A 1 = λA, B 1 = λB. If also С 1 = λС, then the lines coincide. Coordinates of the point of intersection of two lines

are found as a solution to the system of equations of these lines.

The equation of a line passing through a given point perpendicular to a given line.

Definition. Line passing through a point M 1 (x 1, y 1) and perpendicular to the line y = kx + b

represented by the equation:

Distance from a point to a line.

Theorem. If a point is given M(x 0, y 0), then the distance to the straight line Ax + Wu + C = 0 defined as:

Proof. Let the point M 1 (x 1, y 1)- the base of a perpendicular dropped from a point M for a given

direct. Then the distance between points M And M 1:

(1)

Coordinates x 1 And at 1 can be found as a solution to the system of equations:

The second equation of the system is the equation of a straight line passing through a given point M 0 perpendicularly

given straight line. If we transform the first equation of the system to the form:

A(x - x 0) + B(y - y 0) + Ax 0 + By 0 + C = 0,

then, solving, we get:

Substituting these expressions into equation (1), we find:

The theorem has been proven.

Canonical equations of a line in space are equations that define a line passing through a given point collinear to the direction vector.

Let a point and a direction vector be given. An arbitrary point lies on a line l only if the vectors and are collinear, i.e., the condition is satisfied for them:

.

The above equations are the canonical equations of the straight line.

Numbers m , n And p are projections of the direction vector onto the coordinate axes. Since the vector is non-zero, then all numbers m , n And p cannot simultaneously be equal to zero. But one or two of them may turn out to be zero. In analytical geometry, for example, the following entry is allowed:

,

which means that the projections of the vector on the axis Oy And Oz are equal to zero. Therefore, both the vector and the straight line defined by the canonical equations are perpendicular to the axes Oy And Oz, i.e. planes yOz .

Example 1. Write equations for a line in space perpendicular to a plane and passing through the point of intersection of this plane with the axis Oz .

Solution. Let's find the point of intersection of this plane with the axis Oz. Since any point lying on the axis Oz, has coordinates , then, assuming in the given equation of the plane x = y = 0, we get 4 z- 8 = 0 or z= 2 . Therefore, the point of intersection of this plane with the axis Oz has coordinates (0; 0; 2) . Since the desired line is perpendicular to the plane, it is parallel to its normal vector. Therefore, the directing vector of the straight line can be the normal vector given plane.

Now let’s write down the required equations for a straight line passing through a point A= (0; 0; 2) in the direction of the vector:

Equations of a line passing through two given points

A straight line can be defined by two points lying on it And In this case, the directing vector of the straight line can be the vector . Then the canonical equations of the line take the form

.

The above equations determine a line passing through two given points.

Example 2. Write an equation for a line in space passing through the points and .

Solution. Let us write down the required equations of the straight line in the form given above in the theoretical reference:

.

Since , then the desired straight line is perpendicular to the axis Oy .

Straight as the line of intersection of planes

A straight line in space can be defined as the line of intersection of two non-parallel planes and, i.e., as a set of points satisfying a system of two linear equations

The equations of the system are also called the general equations of a straight line in space.

Example 3. Compose canonical equations of a line in space given by general equations

Solution. To write the canonical equations of a line or, what is the same, the equations of a line passing through two given points, you need to find the coordinates of any two points on the line. They can be the points of intersection of a straight line with any two coordinate planes, for example yOz And xOz .

Point of intersection of a line and a plane yOz has an abscissa x= 0 . Therefore, assuming in this system of equations x= 0, we get a system with two variables:

Her decision y = 2 , z= 6 together with x= 0 defines a point A(0; 2; 6) the desired line. Then assuming in the given system of equations y= 0, we get the system

Her decision x = -2 , z= 0 together with y= 0 defines a point B(-2; 0; 0) intersection of a line with a plane xOz .

Now let's write down the equations of the line passing through the points A(0; 2; 6) and B (-2; 0; 0) :

,

or after dividing the denominators by -2:

,

Let the line pass through the points M 1 (x 1; y 1) and M 2 (x 2; y 2). The equation of a straight line passing through point M 1 has the form y-y 1 = k (x - x 1), (10.6)

Where k - still unknown coefficient.

Since the straight line passes through the point M 2 (x 2 y 2), the coordinates of this point must satisfy equation (10.6): y 2 -y 1 = k (x 2 - x 1).

From here we find Substituting the found value k into equation (10.6), we obtain the equation of a straight line passing through points M 1 and M 2:

It is assumed that in this equation x 1 ≠ x 2, y 1 ≠ y 2

If x 1 = x 2, then the straight line passing through the points M 1 (x 1,y I) and M 2 (x 2,y 2) is parallel to the ordinate axis. Its equation is x = x 1 .

If y 2 = y I, then the equation of the line can be written as y = y 1, the straight line M 1 M 2 is parallel to the abscissa axis.

Equation of a line in segments

Let the straight line intersect the Ox axis at point M 1 (a;0), and the Oy axis at point M 2 (0;b). The equation will take the form:
those.
. This equation is called equation of a straight line in segments, because numbers a and b indicate which segments the line cuts off on the coordinate axes.

Equation of a line passing through a given point perpendicular to a given vector

Let us find the equation of a straight line passing through a given point Mo (x O; y o) perpendicular to a given non-zero vector n = (A; B).

Let's take an arbitrary point M(x; y) on the line and consider the vector M 0 M (x - x 0; y - y o) (see Fig. 1). Since the vectors n and M o M are perpendicular, their scalar product is equal to zero: that is

A(x - xo) + B(y - yo) = 0. (10.8)

Equation (10.8) is called equation of a straight line passing through a given point perpendicular to a given vector .

Vector n= (A; B), perpendicular to the line, is called normal normal vector of this line .

Equation (10.8) can be rewritten as Ah + Wu + C = 0 , (10.9)

where A and B are the coordinates of the normal vector, C = -Ax o - Vu o is the free term. Equation (10.9) is the general equation of the line(see Fig. 2).

Fig.1 Fig.2

Canonical equations of the line

,

Where
- coordinates of the point through which the line passes, and
- direction vector.

Second order curves Circle

A circle is the set of all points of the plane equidistant from a given point, which is called the center.

Canonical equation of a circle of radius R centered at a point
:

In particular, if the center of the stake coincides with the origin of coordinates, then the equation will look like:

Ellipse

An ellipse is a set of points on a plane, the sum of the distances from each of which to two given points And , which are called foci, is a constant quantity
, greater than the distance between foci
.

The canonical equation of an ellipse whose foci lie on the Ox axis, and the origin of coordinates in the middle between the foci has the form
G de
a semi-major axis length; b – length of the semi-minor axis (Fig. 2).

Equation of a line passing through two points. In the article" " I promised you to look at the second method of solving the presented problems of finding the derivative, given a graph of a function and a tangent to this graph. We will discuss this method in , do not miss! Why in the next one?

The fact is that the formula for the equation of a straight line will be used there. Of course, we could simply show this formula and advise you to learn it. But it’s better to explain where it comes from (how it is derived). It's necessary! If you forget it, you can quickly restore itwill not be difficult. Everything is outlined below in detail. So, we have two points A on the coordinate plane(x 1;y 1) and B(x 2;y 2), a straight line is drawn through the indicated points:

Here is the direct formula itself:


*That is, when substituting specific coordinates of points, we get an equation of the form y=kx+b.

**If you simply “memorize” this formula, then there is a high probability of getting confused with the indices when X. In addition, indices can be designated in different ways, for example:

That's why it's important to understand the meaning.

Now the derivation of this formula. Everything is very simple!


Triangles ABE and ACF are similar in acute angle (the first sign of similarity of right triangles). It follows from this that the ratios of the corresponding elements are equal, that is:

Now we simply express these segments through the difference in the coordinates of the points:

Of course, there will be no error if you write the relationships of the elements in a different order (the main thing is to maintain consistency):

The result will be the same equation of the line. This is all!

That is, no matter how the points themselves (and their coordinates) are designated, by understanding this formula you will always find the equation of a straight line.

The formula can be derived using the properties of vectors, but the principle of derivation will be the same, since we will be talking about the proportionality of their coordinates. In this case, the same similarity of right triangles works. In my opinion, the conclusion described above is more clear)).

View output using vector coordinates >>>

Let a straight line be constructed on the coordinate plane passing through two given points A(x 1;y 1) and B(x 2;y 2). Let us mark an arbitrary point C on the line with coordinates ( x; y). We also denote two vectors:


It is known that for vectors lying on parallel lines (or on the same line), their corresponding coordinates are proportional, that is:

— we write down the equality of the ratios of the corresponding coordinates:

Let's look at an example:

Find the equation of a straight line passing through two points with coordinates (2;5) and (7:3).

You don’t even have to build the straight line itself. We apply the formula:

It is important that you grasp the correspondence when drawing up the ratio. You can't go wrong if you write:

Answer: y=-2/5x+29/5 go y=-0.4x+5.8

In order to make sure that the resulting equation is found correctly, be sure to check - substitute the coordinates of the data in the condition of the points into it. The equations should be correct.

That's all. I hope the material was useful to you.

Sincerely, Alexander.

P.S: I would be grateful if you tell me about the site on social networks.



Did you like the article? Share with your friends!