The general equation of a straight line is: General equation of a line

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.

Lesson from the series “Geometric algorithms”

Hello dear reader!

Today we will start learning algorithms related to geometry. The fact is that there are quite a lot of Olympiad problems in computer science related to computational geometry, and solving such problems often causes difficulties.

Over the course of several lessons, we will consider a number of elementary subtasks on which the solution of most problems in computational geometry is based.

In this lesson we will create a program for finding the equation of a line, passing through given two points. To solve geometric problems, we need some knowledge of computational geometry. We will devote part of the lesson to getting to know them.

Insights from Computational Geometry

Computational geometry is a branch of computer science that studies algorithms for solving geometric problems.

The initial data for such problems can be a set of points on a plane, a set of segments, a polygon (specified, for example, by a list of its vertices in clockwise order), etc.

The result can be either an answer to some question (such as does a point belong to a segment, do two segments intersect, ...), or some geometric object (for example, the smallest convex polygon connecting given points, the area of ​​a polygon, etc.) .

We will consider problems of computational geometry only on the plane and only in the Cartesian coordinate system.

Vectors and coordinates

To apply the methods of computational geometry, it is necessary to translate geometric images into the language of numbers. We will assume that the plane is given a Cartesian coordinate system, in which the direction of rotation counterclockwise is called positive.

Now geometric objects receive an analytical expression. So, to specify a point, it is enough to indicate its coordinates: a pair of numbers (x; y). A segment can be specified by specifying the coordinates of its ends; a straight line can be specified by specifying the coordinates of a pair of its points.

But our main tool for solving problems will be vectors. Let me therefore recall some information about them.

Line segment AB, which has a point A is considered the beginning (point of application), and the point IN– end, called a vector AB and is denoted by either or by a bold lowercase letter, for example A .

To denote the length of a vector (that is, the length of the corresponding segment), we will use the modulus symbol (for example, ).

An arbitrary vector will have coordinates equal to the difference between the corresponding coordinates of its end and beginning:

,

here are the points A And B have coordinates respectively.

For calculations we will use the concept oriented angle, that is, an angle that takes into account the relative position of the vectors.

Oriented angle between vectors a And b positive if the rotation is from the vector a to vector b is performed in a positive direction (counterclockwise) and negative in the other case. See Fig.1a, Fig.1b. It is also said that a pair of vectors a And b positively (negatively) oriented.

Thus, the value of the oriented angle depends on the order in which the vectors are listed and can take values ​​in the interval.

Many problems in computational geometry use the concept of vector (skew or pseudoscalar) products of vectors.

The vector product of vectors a and b is the product of the lengths of these vectors and the sine of the angle between them:

.

Cross product of vectors in coordinates:

The expression on the right is a second-order determinant:

Unlike the definition given in analytical geometry, it is a scalar.

The sign of the vector product determines the position of the vectors relative to each other:

a And b positively oriented.

If the value is , then a pair of vectors a And b negatively oriented.

The cross product of nonzero vectors is zero if and only if they are collinear ( ). This means that they lie on the same line or on parallel lines.

Let's look at a few simple problems that are necessary when solving more complex ones.

Let's determine the equation of a straight line from the coordinates of two points.

Equation of a line passing through two different points specified by their coordinates.

Let two non-coinciding points be given on a straight line: with coordinates (x1; y1) and with coordinates (x2; y2). Accordingly, a vector with a start at a point and an end at a point has coordinates (x2-x1, y2-y1). If P(x, y) is an arbitrary point on our line, then the coordinates of the vector are equal to (x-x1, y – y1).

Using the vector product, the condition for collinearity of vectors and can be written as follows:

Those. (x-x1)(y2-y1)-(y-y1)(x2-x1)=0

(y2-y1)x + (x1-x2)y + x1(y1-y2) + y1(x2-x1) = 0

We rewrite the last equation as follows:

ax + by + c = 0, (1)

c = x1(y1-y2) + y1(x2-x1)

So, the straight line can be specified by an equation of the form (1).

Problem 1. The coordinates of two points are given. Find its representation in the form ax + by + c = 0.

In this lesson we learned some information about computational geometry. We solved the problem of finding the equation of a line from the coordinates of two points.

In the next lesson, we will create a program to find the intersection point of two lines given by our equations.

General equation of a straight line:

Special cases of the general equation of a straight line:

and if C= 0, equation (2) will have the form

Ax + By = 0,

and the straight line defined by this equation passes through the origin, since the coordinates of the origin are x = 0, y= 0 satisfy this equation.

b) If in the general equation of the straight line (2) B= 0, then the equation takes the form

Ax + WITH= 0, or .

The equation does not contain a variable y, and the straight line defined by this equation is parallel to the axis Oy.

c) If in the general equation of the straight line (2) A= 0, then this equation will take the form

By + WITH= 0, or ;

the equation does not contain a variable x, and the straight line it defines is parallel to the axis Ox.

It should be remembered: if a straight line is parallel to some coordinate axis, then in its equation there is no term containing a coordinate of the same name as this axis.

d) When C= 0 and A= 0 equation (2) takes the form By= 0, or y = 0.

This is the equation of the axis Ox.

d) When C= 0 and B= 0 equation (2) will be written in the form Ax= 0 or x = 0.

This is the equation of the axis Oy.

The relative position of lines on a plane. The angle between straight lines on a plane. Condition for parallel lines. The condition of perpendicularity of lines.

l 1 l 2 l 1: A 1 x + B 1 y + C 1 = 0
l 2: A 2 x + B 2 y + C 2 = 0

S 2 S 1 Vectors S 1 and S 2 are called guides for their lines.

The angle between straight lines l 1 and l 2 is determined by the angle between the direction vectors.
Theorem 1: cos of the angle between l 1 and l 2 = cos(l 1 ; l 2) =

Theorem 2: In order for 2 lines to be equal it is necessary and sufficient:

Theorem 3: For 2 straight lines to be perpendicular it is necessary and sufficient:

L 1 l 2 ó A 1 A 2 + B 1 B 2 = 0


General plane equation and its special cases. Equation of a plane in segments.

General plane equation:

Ax + By + Cz + D = 0

Special cases:

1. D=0 Ax+By+Cz = 0 – the plane passes through the origin

2. С=0 Ax+By+D = 0 – plane || OZ

3. B=0 Ax+Cz+d = 0 – plane || OY

4. A=0 By+Cz+D = 0 – plane || OX

5. A=0 and D=0 By+Cz = 0 – the plane passes through OX

6. B=0 and D=0 Ax+Cz = 0 – the plane passes through OY

7. C=0 and D=0 Ax+By = 0 – the plane passes through OZ

The relative position of planes and straight lines in space:

1. The angle between straight lines in space is the angle between their direction vectors.

Cos (l 1 ; l 2) = cos(S 1 ; S 2) = =

2. The angle between the planes is determined through the angle between their normal vectors.

Cos (l 1 ; l 2) = cos(N 1 ; N 2) = =

3. The cosine of the angle between the line and the plane can be found through the sin of the angle between the direction vector of the line and the normal vector of the plane.

4. 2 straight || in space when their || vector guides

5. 2 planes || when || normal vectors

6. The concepts of perpendicularity of lines and planes are introduced similarly.


Question No. 14

Various types of equation of a straight line on a plane (equation of a straight line in segments, with an angle coefficient, etc.)

Equation of a straight line in segments:
Let us assume that in the general equation of the straight line:

1. C = 0 Ах + Ву = 0 – the straight line passes through the origin.

2. a = 0 Vu + C = 0 y =

3. b = 0 Ax + C = 0 x =

4. b=C=0 Ax = 0 x = 0

5. a=C=0 Ву = 0 у = 0

Equation of a straight line with a slope:

Any straight line that is not equal to the op-amp axis (B not = 0) can be written down in the next line. form:

k = tanα α – angle between straight line and positively directed line OX

b – point of intersection of the straight line with the axis of the op-amp

Document:

Ax+By+C = 0

Wu= -Ah-S |:B

Equation of a straight line based on two points:


Question No. 16

Finite limit of a function at a point and for x→∞

End limit at x0:

The number A is called the limit of the function y = f(x) for x→x 0 if for any E > 0 there exists b > 0 such that for x ≠x 0 satisfying the inequality |x – x 0 |< б, выполняется условие |f(x) - A| < Е

The limit is indicated by: = A

End limit at point +∞:

The number A is called the limit of the function y = f(x) at x → + ∞ , if for any E > 0 there exists C > 0 such that for x > C the inequality |f(x) - A|< Е

The limit is indicated by: = A

End limit at point -∞:

The number A is called the limit of the function y = f(x) for x→-∞, if for any E< 0 существует С < 0 такое, что при х < -С выполняется неравенство |f(x) - A| < Е

Equation of a line passing through two points. In the article" " I promised you to look at the second way to solve 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 via 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.

Equation of a straight line on a plane.
The direction vector is straight. Normal vector

A straight line on a plane is one of the simplest geometric figures, familiar to you from elementary school, and today we will learn how to deal with it using the methods of analytical geometry. To master the material, you must be able to build a straight line; know what equation defines a straight line, in particular, a straight line passing through the origin of coordinates and straight lines parallel to the coordinate axes. This information can be found in the manual Graphs and properties of elementary functions, I created it for Mathan, but the section about the linear function turned out to be very successful and detailed. Therefore, dear teapots, warm up there first. In addition, you need to have basic knowledge about vectors, otherwise the understanding of the material will be incomplete.

In this lesson we will look at ways in which you can create an equation of a straight line on a plane. I recommend not to neglect practical examples (even if it seems very simple), since I will provide them with elementary and important facts, technical techniques that will be required in the future, including in other sections of higher mathematics.

  • How to write an equation of a straight line with an angle coefficient?
  • How ?
  • How to find a direction vector using the general equation of a straight line?
  • How to write an equation of a straight line given a point and a normal vector?

and we begin:

Equation of a straight line with slope

The well-known “school” form of a straight line equation is called equation of a straight line with slope. For example, if a straight line is given by the equation, then its slope is: . Let's consider the geometric meaning of this coefficient and how its value affects the location of the line:

In a geometry course it is proven that the slope of the straight line is equal to tangent of the angle between positive axis directionand this line: , and the angle “unscrews” counterclockwise.

In order not to clutter the drawing, I drew angles only for two straight lines. Let's consider the “red” line and its slope. According to the above: (the “alpha” angle is indicated by a green arc). For the “blue” straight line with the angle coefficient, the equality is true (the “beta” angle is indicated by a brown arc). And if the tangent of the angle is known, then if necessary it is easy to find and the corner itself using the inverse function - arctangent. As they say, a trigonometric table or a microcalculator in your hands. Thus, the angular coefficient characterizes the degree of inclination of the straight line to the abscissa axis.

The following cases are possible:

1) If the slope is negative: then the line, roughly speaking, goes from top to bottom. Examples are the “blue” and “raspberry” straight lines in the drawing.

2) If the slope is positive: then the line goes from bottom to top. Examples - “black” and “red” straight lines in the drawing.

3) If the slope is zero: , then the equation takes the form , and the corresponding straight line is parallel to the axis. An example is the “yellow” straight line.

4) For a family of lines parallel to an axis (there is no example in the drawing, except for the axis itself), the angular coefficient does not exist (tangent of 90 degrees is not defined).

The greater the slope coefficient in absolute value, the steeper the straight line graph goes..

For example, consider two straight lines. Here, therefore, the straight line has a steeper slope. Let me remind you that the module allows you to ignore the sign, we are only interested in absolute values angular coefficients.

In turn, a straight line is steeper than straight lines .

Conversely: the smaller the slope coefficient in absolute value, the flatter the straight line.

For straight lines the inequality is true, thus the straight line is flatter. Children's slide, so as not to give yourself bruises and bumps.

Why is this necessary?

Prolong your torment Knowledge of the above facts allows you to immediately see your mistakes, in particular, errors when constructing graphs - if the drawing turns out to be “obviously something wrong.” It is advisable that you straightaway it was clear that, for example, the straight line is very steep and goes from bottom to top, and the straight line is very flat, pressed close to the axis and goes from top to bottom.

In geometric problems, several straight lines often appear, so it is convenient to designate them somehow.

Designations: straight lines are designated in small Latin letters: . A popular option is to designate them using the same letter with natural subscripts. For example, the five lines we just looked at can be denoted by .

Since any straight line is uniquely determined by two points, it can be denoted by these points: etc. The designation clearly implies that the points belong to the line.

It's time to warm up a little:

How to write an equation of a straight line with an angle coefficient?

If a point belonging to a certain line and the angular coefficient of this line are known, then the equation of this line is expressed by the formula:

Example 1

Write an equation for a line with slope if it is known that the point belongs to the given line.

Solution: Let's compose the equation of the straight line using the formula . In this case:

Answer:

Examination is done simply. First, we look at the resulting equation and make sure that our slope is in place. Secondly, the coordinates of the point must satisfy this equation. Let's plug them into the equation:

The correct equality is obtained, which means that the point satisfies the resulting equation.

Conclusion: The equation was found correctly.

A more tricky example to solve on your own:

Example 2

Write an equation for a straight line if it is known that its angle of inclination to the positive direction of the axis is , and the point belongs to this straight line.

If you have any difficulties, re-read the theoretical material. More precisely, more practical, I skip a lot of evidence.

The last bell has rung, the graduation ceremony has ended, and outside the gates of our native school, analytical geometry itself awaits us. The jokes are over... Or maybe they are just beginning =)

We nostalgically wave our pen to the familiar and get acquainted with the general equation of a straight line. Because in analytical geometry this is exactly what is used:

The general equation of a straight line has the form: , where are some numbers. At the same time, the coefficients simultaneously are not equal to zero, since the equation loses its meaning.

Let's dress in a suit and tie the equation with the slope coefficient. First, let's move all the terms to the left side:

The term with “X” must be put in first place:

In principle, the equation already has the form , but according to the rules of mathematical etiquette, the coefficient of the first term (in this case) must be positive. Changing signs:

Remember this technical feature! We make the first coefficient (most often) positive!

In analytical geometry, the equation of a straight line will almost always be given in general form. Well, if necessary, it can be easily reduced to the “school” form with an angular coefficient (with the exception of straight lines parallel to the ordinate axis).

Let's ask ourselves what enough know to construct a straight line? Two points. But more about this childhood incident, now sticks with arrows rule. Each straight line has a very specific slope, which is easy to “adapt” to. vector.

A vector that is parallel to a line is called the direction vector of that line. It is obvious that any straight line has an infinite number of direction vectors, and all of them will be collinear (co-directional or not - it doesn’t matter).

I will denote the direction vector as follows: .

But one vector is not enough to construct a straight line; the vector is free and not tied to any point on the plane. Therefore, it is additionally necessary to know some point that belongs to the line.

How to write an equation of a straight line using a point and a direction vector?

If a certain point belonging to a line and the direction vector of this line are known, then the equation of this line can be compiled using the formula:

Sometimes it is called canonical equation of the line .

What to do when one of the coordinates is equal to zero, we will understand in practical examples below. By the way, please note - both at once coordinates cannot be equal to zero, since the zero vector does not specify a specific direction.

Example 3

Write an equation for a straight line using a point and a direction vector

Solution: Let's compose the equation of a straight line using the formula. In this case:

Using the properties of proportion we get rid of fractions:

And we bring the equation to its general form:

Answer:

As a rule, there is no need to make a drawing in such examples, but for the sake of understanding:

In the drawing we see the starting point, the original direction vector (it can be plotted from any point on the plane) and the constructed straight line. By the way, in many cases it is most convenient to construct a straight line using an equation with an angular coefficient. It’s easy to transform our equation into form and easily select another point to construct a straight line.

As noted at the beginning of the paragraph, a straight line has infinitely many direction vectors, and all of them are collinear. For example, I drew three such vectors: . Whatever direction vector we choose, the result will always be the same straight line equation.

Let's create an equation of a straight line using a point and a direction vector:

Resolving the proportion:

Divide both sides by –2 and get the familiar equation:

Those interested can test vectors in the same way or any other collinear vector.

Now let's solve the inverse problem:

How to find a direction vector using the general equation of a straight line?

Very simple:

If a line is given by a general equation in a rectangular coordinate system, then the vector is the direction vector of this line.

Examples of finding direction vectors of straight lines:

The statement allows us to find only one direction vector out of an infinite number, but we don’t need more. Although in some cases it is advisable to reduce the coordinates of the direction vectors:

Thus, the equation specifies a straight line that is parallel to the axis and the coordinates of the resulting direction vector are conveniently divided by –2, obtaining exactly the basis vector as the direction vector. Logical.

Similarly, the equation specifies a straight line parallel to the axis, and by dividing the coordinates of the vector by 5, we obtain the unit vector as the direction vector.

Now let's do it checking Example 3. The example went up, so I remind you that in it we compiled the equation of a straight line using a point and a direction vector

Firstly, using the equation of the straight line we reconstruct its direction vector: – everything is fine, we have received the original vector (in some cases the result may be a collinear vector to the original one, and this is usually easy to notice by the proportionality of the corresponding coordinates).

Secondly, the coordinates of the point must satisfy the equation. We substitute them into the equation:

The correct equality was obtained, which we are very happy about.

Conclusion: The task was completed correctly.

Example 4

Write an equation for a straight line using a point and a direction vector

This is an example for you to solve on your own. The solution and answer are at the end of the lesson. It is highly advisable to check using the algorithm just discussed. Try to always (if possible) check on a draft. It’s stupid to make mistakes where they can be 100% avoided.

In the event that one of the coordinates of the direction vector is zero, proceed very simply:

Example 5

Solution: The formula is not suitable since the denominator on the right side is zero. There is an exit! Using the properties of proportion, we rewrite the formula in the form, and the rest rolled along a deep rut:

Answer:

Examination:

1) Restore the directing vector of the line:
– the resulting vector is collinear to the original direction vector.

2) Substitute the coordinates of the point into the equation:

The correct equality is obtained

Conclusion: task completed correctly

The question arises, why bother with the formula if there is a universal version that will work in any case? There are two reasons. First, the formula is in the form of a fraction much better remembered. And secondly, the disadvantage of the universal formula is that the risk of getting confused increases significantly when substituting coordinates.

Example 6

Write an equation for a straight line using a point and a direction vector.

This is an example for you to solve on your own.

Let's return to the ubiquitous two points:

How to write an equation of a straight line using two points?

If two points are known, then the equation of a straight line passing through these points can be compiled using the formula:

In fact, this is a type of formula and here's why: if two points are known, then the vector will be the direction vector of the given line. At the lesson Vectors for dummies we considered the simplest problem - how to find the coordinates of a vector from two points. According to this problem, the coordinates of the direction vector are:

Note : the points can be “swapped” and the formula can be used . Such a solution will be equivalent.

Example 7

Write an equation of a straight line using two points .

Solution: We use the formula:

Combing the denominators:

And shuffle the deck:

Now is the time to get rid of fractional numbers. In this case, you need to multiply both sides by 6:

Open the brackets and bring the equation to mind:

Answer:

Examination is obvious - the coordinates of the initial points must satisfy the resulting equation:

1) Substitute the coordinates of the point:

True equality.

2) Substitute the coordinates of the point:

True equality.

Conclusion: The equation of the line is written correctly.

If at least one of the points does not satisfy the equation, look for an error.

It is worth noting that graphical verification in this case is difficult, since construct a straight line and see whether the points belong to it , not so simple.

I’ll note a couple more technical aspects of the solution. Perhaps in this problem it is more profitable to use the mirror formula and, at the same points make an equation:

Fewer fractions. If you want, you can carry out the solution to the end, the result should be the same equation.

The second point is to look at the final answer and figure out whether it can be simplified further? For example, if you get the equation , then it is advisable to reduce it by two: – the equation will define the same straight line. However, this is already a topic of conversation about relative position of lines.

Having received the answer in Example 7, just in case, I checked whether ALL coefficients of the equation are divisible by 2, 3 or 7. Although, most often such reductions are made during the solution.

Example 8

Write an equation for a line passing through the points .

This is an example for an independent solution, which will allow you to better understand and practice calculation techniques.

Similar to the previous paragraph: if in the formula one of the denominators (the coordinate of the direction vector) becomes zero, then we rewrite it in the form . Again, notice how awkward and confused she looks. I don’t see much point in giving practical examples, since we have already actually solved this problem (see No. 5, 6).

Direct normal vector (normal vector)

What is normal? In simple words, a normal is a perpendicular. That is, the normal vector of a line is perpendicular to a given line. Obviously, any straight line has an infinite number of them (as well as direction vectors), and all the normal vectors of the straight line will be collinear (codirectional or not, it makes no difference).

Dealing with them will be even easier than with guide vectors:

If a line is given by a general equation in a rectangular coordinate system, then the vector is the normal vector of this line.

If the coordinates of the direction vector have to be carefully “pulled out” from the equation, then the coordinates of the normal vector can be simply “removed”.

The normal vector is always orthogonal to the direction vector of the line. Let us verify the orthogonality of these vectors using dot product:

I will give examples with the same equations as for the direction vector:

Is it possible to construct an equation of a straight line given one point and a normal vector? I feel it in my gut, it’s possible. If the normal vector is known, then the direction of the straight line itself is clearly defined - this is a “rigid structure” with an angle of 90 degrees.

How to write an equation of a straight line given a point and a normal vector?

If a certain point belonging to a line and the normal vector of this line are known, then the equation of this line is expressed by the formula:

Here everything worked out without fractions and other surprises. This is our normal vector. Love him. And respect =)

Example 9

Write an equation of a straight line given a point and a normal vector. Find the direction vector of the line.

Solution: We use the formula:

The general equation of the straight line has been obtained, let’s check:

1) “Remove” the coordinates of the normal vector from the equation: – yes, indeed, the original vector was obtained from the condition (or a collinear vector should be obtained).

2) Let's check whether the point satisfies the equation:

True equality.

After we are convinced that the equation is composed correctly, we will complete the second, easier part of the task. We take out the directing vector of the straight line:

Answer:

In the drawing the situation looks like this:

For training purposes, a similar task for solving independently:

Example 10

Write an equation of a straight line given a point and a normal vector. Find the direction vector of the line.

The final section of the lesson will be devoted to less common, but also important types of equations of a line on a plane

Equation of a straight line in segments.
Equation of a line in parametric form

The equation of a straight line in segments has the form , where are nonzero constants. Some types of equations cannot be represented in this form, for example, direct proportionality (since the free term is equal to zero and there is no way to get one on the right side).

This is, figuratively speaking, a “technical” type of equation. A common task is to represent the general equation of a line as an equation of a line in segments. How is it convenient? The equation of a line in segments allows you to quickly find the points of intersection of a line with coordinate axes, which can be very important in some problems of higher mathematics.

Let's find the point of intersection of the line with the axis. We reset the “y” to zero, and the equation takes the form . The desired point is obtained automatically: .

Same with the axis – the point at which the straight line intersects the ordinate axis.