Skip to content
Gioi Toan
Start learning
Two vectors joined head to tail on a grid, and their sum

Notes on Lesson 2: Straight lines in the coordinate plane (Maths 10 Chan troi sang tao, Chapter IX)

Lesson summary

A vector n⃗\vec{n} different from 0⃗\vec{0} is called a normal vector of the straight line Δ\Delta if the line of action of n⃗\vec{n} is perpendicular to Δ\Delta.

The straight line Δ\Delta passes through the point M0(x0;y0)M_0(x_0; y_0) and has normal vector n⃗(a;b)\vec{n}(a; b): the point M(x;y)M(x; y) belongs to Δ\Delta if and only if a(x−x0)+b(y−y0)=0a(x - x_0) + b(y - y_0) = 0.

Think of a straight line as a road, the direction vector is an arrow pointing along the road, and the normal vector is an arrow pointing straight into the road, perpendicular to it.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Mô tả được phương trình tổng quát, tham số của đường thẳng
  • Xác định được vị trí tương đối, góc giữa hai đường thẳng, khoảng cách từ điểm đến đường thẳng

On the digital map, you want to draw a straight line through two places whose coordinates are known. Just two numbers are enough to build the whole line, that is the power of the coordinate method. This lesson helps you describe a straight line with a general equation and a parametric equation, then set up that equation when you know a point together with a normal vector, a direction vector, or two points that the straight line passes through. Not only writing equations, you also learn how to examine the relative position of two straight lines, calculate the angle between them and the distance from a point to a straight line, the tools needed to solve many geometry and real-life problems.

Practise similar problems

Key ideas: what do you need to know?

Normal vector and direction vector of a straight line

  • A vector n⃗\vec{n} different from 0⃗\vec{0} is called a normal vector of the straight line Δ\Delta if the line of action of n⃗\vec{n} is perpendicular to Δ\Delta.
  • A vector u⃗\vec{u} different from 0⃗\vec{0} is called a direction vector of the straight line Δ\Delta if the line of action of u⃗\vec{u} is parallel or coincident with Δ\Delta.
  • If n⃗=(a;b)\vec{n} = (a; b) is a normal vector then u⃗=(b;−a)\vec{u} = (b; -a) and u⃗=(−b;a)\vec{u} = (-b; a) are direction vectors; conversely, if u⃗=(u1;u2)\vec{u} = (u_1; u_2) is a direction vector then n⃗=(u2;−u1)\vec{n} = (u_2; -u_1) is a normal vector.
  • Remark. If n⃗\vec{n} is a normal vector of Δ\Delta then kn⃗k\vec{n} (k≠0)(k \ne 0) is also a normal vector of Δ\Delta; if u⃗\vec{u} is a direction vector then ku⃗k\vec{u} (k≠0)(k \ne 0) is also a direction vector. So a straight line has infinitely many normal vectors and infinitely many direction vectors.
  • A straight line is completely determined if we know one point and one normal vector of it, or one point and one direction vector of it.

In plain words: Think of a straight line as a road, the direction vector is an arrow pointing along the road, and the normal vector is an arrow pointing straight into the road, perpendicular to it. Why can we switch between them? Because two perpendicular arrows have dot product equal to 0: (a;b)⋅(b;−a)=ab−ab=0(a; b) \cdot (b; -a) = ab - ab = 0. A way to remember the switch: swap the two coordinates and change the sign of one of them, like turning the arrow by an angle of 90∘90^\circ.

Phrase by phrase
normal vector
A vector different from 0⃗\vec{0} whose line of action is perpendicular to the straight line.Example: A horizontal straight line takes n⃗=(0;1)\vec{n} = (0; 1) as a normal vector.
direction vector
A vector different from 0⃗\vec{0} whose line of action is parallel or coincident with the straight line.Example: A horizontal straight line takes u⃗=(1;0)\vec{u} = (1; 0) as a direction vector.
u⃗=(b;−a)\vec{u} = (b; -a)
How to turn the normal vector n⃗=(a;b)\vec{n} = (a; b) into a direction vector.Example: n⃗=(2;3)\vec{n} = (2; 3) then u⃗=(3;−2)\vec{u} = (3; -2).
infinitely many normal vectors
Every vector parallel to a normal vector is a normal vector.Example: Both n⃗=(1;2)\vec{n} = (1; 2) and 2n⃗=(2;4)2\vec{n} = (2; 4) are normal vectors.

General equation of a straight line

  • The straight line Δ\Delta passes through the point M0(x0;y0)M_0(x_0; y_0) and has normal vector n⃗(a;b)\vec{n}(a; b): the point M(x;y)M(x; y) belongs to Δ\Delta if and only if a(x−x0)+b(y−y0)=0a(x - x_0) + b(y - y_0) = 0. Setting c=−ax0−by0c = -ax_0 - by_0, the equation can be written in the form ax+by+c=0ax + by + c = 0, called the general equation of Δ\Delta. The point M(x;y)M(x; y) belongs to Δ\Delta if and only if its coordinates satisfy the general equation of Δ\Delta.
  • In the coordinate plane, every straight line has a general equation of the form ax+by+c=0ax + by + c = 0, with aa and bb not both equal to 0. Conversely, every equation of the form ax+by+c=0ax + by + c = 0, with aa and bb not both equal to 0, is the equation of a straight line, taking n⃗(a;b)\vec{n}(a; b) as a normal vector.
  • Example: the straight line through M0(1;2)M_0(1; 2) with n⃗=(3;−1)\vec{n} = (3; -1) has the equation 3(x−1)−(y−2)=03(x - 1) - (y - 2) = 0, that is 3x−y−1=03x - y - 1 = 0.

In plain words: The general equation gives the normal vector directly: the coefficient of xx and the coefficient of yy are exactly the coordinates of n⃗\vec{n}. Why is that formula correct? Take any point M(x;y)M(x; y) on the straight line, then M0M→=(x−x0;y−y0)\overrightarrow{M_0M} = (x - x_0; y - y_0) is perpendicular to n⃗\vec{n}, so the dot product equals 0, and expanding it gives exactly the equation above. Remember well: the coefficient in front of xx is the x-coordinate of n⃗\vec{n}, the one in front of yy is the y-coordinate of n⃗\vec{n}.

Phrase by phrase
general equation
An equation of the form ax+by+c=0ax + by + c = 0 with a,ba, b not both equal to 0.Example: 2x−5y+3=02x - 5y + 3 = 0.
not both equal to 0
At least one of the two numbers aa, bb must be different from 0, if both are 0 it is no longer a straight line.Example: 0x+3y−6=00x + 3y - 6 = 0 is still a straight line, namely y=2y = 2.
a(x−x0)+b(y−y0)=0a(x - x_0) + b(y - y_0) = 0
Equation of the straight line through M0(x0;y0)M_0(x_0; y_0) with normal vector n⃗=(a;b)\vec{n} = (a; b).Example: Through (2;1)(2; 1) with n⃗=(1;4)\vec{n} = (1; 4): (x−2)+4(y−1)=0(x - 2) + 4(y - 1) = 0.

Parametric equation of a straight line

  • Given the straight line Δ\Delta passing through the point A(x0;y0)A(x_0; y_0) and having direction vector u⃗(a;b)\vec{u}(a; b). Then the point M(x;y)M(x; y) belongs to Δ\Delta if and only if there exists a real number tt such that AM→=tu⃗\overrightarrow{AM} = t\vec{u}, or {x=x0+aty=y0+bt.\begin{cases} x = x_0 + at \\ y = y_0 + bt. \end{cases}. This system is called the parametric equation of the straight line Δ\Delta (tt is the parameter).
  • For each value of tt, we get a point on Δ\Delta; as tt changes, the point runs along the whole line.
  • Example: through M0(1;−2)M_0(1; -2) with u⃗=(3;4)\vec{u} = (3; 4): {x=1+3ty=−2+4t\begin{cases} x = 1 + 3t \\ y = -2 + 4t \end{cases}. With t=1t = 1 we get the point (4;2)(4; 2).

In plain words: A parametric equation is like a set of directions: start from AA, and at each step go one more segment in the direction u⃗\vec{u}. The parameter tt is exactly the number of steps. t=0t = 0 stays still at AA, t=1t = 1 takes exactly one step of u⃗\vec{u}, t=−1t = -1 steps backwards. Why do we need this form? Because it tells us both the point and the direction of travel, which is very handy when we need to find a specific point on the line or describe uniform straight motion.

Phrase by phrase
parametric equation
The system of two equations of xx and yy in terms of a parameter tt.Example: {x=2−ty=5+3t\begin{cases} x = 2 - t \\ y = 5 + 3t \end{cases}.
parameter
The letter tt takes any real value, and each value gives one point.Example: With t=2t = 2 in the example above we get the point (0;11)(0; 11).
u⃗(a;b)\vec{u}(a; b)
The two numbers added to x0x_0, y0y_0, are exactly the coordinates of the direction vector.Example: {x=1+2ty=3−7t\begin{cases} x = 1 + 2t \\ y = 3 - 7t \end{cases} has u⃗=(2;−7)\vec{u} = (2; -7).

Equation of the line through two points and intercept equation

  • The straight line passing through two distinct points A(xA;yA)A(x_A; y_A) and B(xB;yB)B(x_B; y_B) has AB→=(xB−xA;yB−yA)\overrightarrow{AB} = (x_B - x_A; y_B - y_A) as its direction vector.
  • From that we can write the parametric equation {x=xA+(xB−xA)ty=yA+(yB−yA)t\begin{cases} x = x_A + (x_B - x_A)t \\ y = y_A + (y_B - y_A)t \end{cases}, or switch to the general equation by taking n⃗=(yB−yA;−(xB−xA))\vec{n} = (y_B - y_A; -(x_B - x_A)).
  • If xB−xA≠0x_B - x_A \ne 0 and yB−yA≠0y_B - y_A \ne 0, the line can also be written in the form x−xAxB−xA=y−yAyB−yA\frac{x - x_A}{x_B - x_A} = \frac{y - y_A}{y_B - y_A}.
  • The straight line cutting the OxOx axis and the OyOy axis at A(a;0)A(a; 0) and B(0;b)B(0; b) respectively, with ab≠0ab \ne 0, has the intercept equation xa+yb=1\frac{x}{a} + \frac{y}{b} = 1.
  • Example: through A(1;2)A(1; 2) and B(4;3)B(4; 3) we have AB→=(3;1)\overrightarrow{AB} = (3; 1), the parametric equation {x=1+3ty=2+t\begin{cases} x = 1 + 3t \\ y = 2 + t \end{cases}, the general equation x−3y+5=0x - 3y + 5 = 0.

In plain words: Two points give us an arrow joining them, and that arrow lies along the road, so it is a direction vector. Why must they be two distinct points? If AA coincides with BB then AB→=0⃗\overrightarrow{AB} = \vec{0}, we cannot find any direction, and through one point there are infinitely many straight lines. Once we have a direction vector, turn it through a right angle to get a normal vector for writing the general equation. The intercept equation is just a special case when the line cuts the two axes at two points different from the origin.

Phrase by phrase
AB→=(xB−xA;yB−yA)\overrightarrow{AB} = (x_B - x_A; y_B - y_A)
The vector from AA to BB, take the coordinates of BB minus the coordinates of AA in that order.Example: A(1;2)A(1; 2), B(4;3)B(4; 3): AB→=(3;1)\overrightarrow{AB} = (3; 1).
two distinct points
Two points that do not coincide, so that AB→≠0⃗\overrightarrow{AB} \ne \vec{0}.Example: A(2;5)A(2; 5) and B(2;5)B(2; 5) do not determine a single straight line.
intercept equation
The equation xa+yb=1\frac{x}{a} + \frac{y}{b} = 1 of the straight line cutting OxOx at (a;0)(a; 0) and OyOy at (0;b)(0; b), with ab≠0ab \ne 0.Example: The straight line cutting OxOx at (2;0)(2; 0) and OyOy at (0;3)(0; 3) has the equation x2+y3=1\frac{x}{2} + \frac{y}{3} = 1.

Common mistakesMixing up the two kinds of vectors: taking n⃗=(3;4)\vec{n} = (3; 4) and then writing the parametric equation with u⃗=(3;4)\vec{u} = (3; 4). You must turn by a right angle: u⃗=(4;−3)\vec{u} = (4; -3) or (−4;3)(-4; 3).

The graph of a linear function is a straight line

  • The linear function y=kx+my = kx + m (with k≠0k \ne 0) has a straight line as its graph.
  • Rewrite kx−y+m=0kx - y + m = 0, which is exactly the general equation with a=ka = k, b=−1b = -1, c=mc = m. So the graph of a linear function is a straight line with normal vector n⃗=(k;−1)\vec{n} = (k; -1) and direction vector u⃗=(1;k)\vec{u} = (1; k).
  • Conversely, the straight line ax+by+c=0ax + by + c = 0 with a≠0a \ne 0 and b≠0b \ne 0 can be written as y=−abx−cby = -\frac{a}{b}x - \frac{c}{b}, which is the graph of a linear function; if b≠0b \ne 0 and a=0a = 0 then y=−cby = -\frac{c}{b} is a constant function, and its graph is a straight line parallel to or coinciding with the OxOx axis.
  • Remark: given Δ:ax+by+c=0\Delta: ax + by + c = 0. If b=0b = 0 then the equation can be brought to the form x=mx = m (with m=−cam = -\frac{c}{a}) and Δ\Delta is perpendicular to OxOx; if b≠0b \ne 0 then it can be brought to the form y=nx+py = nx + p (with n=−abn = -\frac{a}{b}, p=−cbp = -\frac{c}{b}).
  • The equation of the x-axis OxOx is y=0y = 0, the equation of the y-axis OyOy is x=0x = 0.
  • The slope of the straight line ax+by+c=0ax + by + c = 0 (with b≠0b \ne 0) is k=−abk = -\frac{a}{b}; if the line has direction vector u⃗=(u1;u2)\vec{u} = (u_1; u_2) with u1≠0u_1 \ne 0 then the slope is k=u2u1k = \frac{u_2}{u_1}.
  • The coefficient kk tells us how steep the line is; mm is the y-coordinate of the point of intersection of the line y=kx+my = kx + m with the OyOy axis.
  • Example: y=2x−3y = 2x - 3 is the straight line 2x−y−3=02x - y - 3 = 0, with slope 22, cutting the OyOy axis at (0;−3)(0; -3).

In plain words: You drew the graph of y=ax+by = ax + b back in grade 9 by taking two points and joining them. Now look with coordinate eyes: every point (x;y)(x; y) satisfying y=kx+my = kx + m lies on a straight line, and conversely, every straight line not parallel to the y-axis can be written as y=kx+my = kx + m (when k≠0k \ne 0, it really is the graph of a linear function). Why is the direction vector (1;k)(1; k)? Because each time xx increases by 1, yy increases by kk, so the step (1;k)(1; k) always lies along the line. The slope kk is exactly the "steepness" of that road: k>0k > 0 the road goes up, k<0k < 0 the road goes down.

Phrase by phrase
linear function
A function of the form y=kx+my = kx + m with k≠0k \ne 0.Example: y=−3x+1y = -3x + 1.
slope
The number kk in y=kx+my = kx + m, which tells the steepness of the straight line; for the straight line ax+by+c=0ax + by + c = 0 (b≠0b \ne 0) we have k=−abk = -\frac{a}{b}.Example: 2x−y−3=02x - y - 3 = 0 has slope k=−2−1=2k = -\frac{2}{-1} = 2.
u⃗=(1;k)\vec{u} = (1; k)
A direction vector of the graph of y=kx+my = kx + m.Example: y=2x−3y = 2x - 3 has u⃗=(1;2)\vec{u} = (1; 2).

Relative position of two straight lines

  • In the plane OxyOxy, given two straight lines Δ1:a1x+b1y+c1=0\Delta_1: a_1x + b_1y + c_1 = 0 (a12+b12>0)(a_1^2 + b_1^2 > 0) with normal vector n⃗1=(a1;b1)\vec{n}_1 = (a_1; b_1) and Δ2:a2x+b2y+c2=0\Delta_2: a_2x + b_2y + c_2 = 0 (a22+b22>0)(a_2^2 + b_2^2 > 0) with normal vector n⃗2=(a2;b2)\vec{n}_2 = (a_2; b_2).
  • If n⃗1\vec{n}_1 and n⃗2\vec{n}_2 are parallel, then Δ1\Delta_1 and Δ2\Delta_2 are parallel or coincident lines. Take any point PP on Δ1\Delta_1:

+ If P∈Δ2P \in \Delta_2 then Δ1≡Δ2\Delta_1 \equiv \Delta_2.
+ If P∉Δ2P \notin \Delta_2 then Δ1∥Δ2\Delta_1 \parallel \Delta_2.

  • If n⃗1\vec{n}_1 and n⃗2\vec{n}_2 are not parallel, then Δ1\Delta_1 and Δ2\Delta_2 intersect at a point M(x0;y0)M(x_0; y_0) that is the solution of the system {a1x+b1y+c1=0a2x+b2y+c2=0\begin{cases} a_1x + b_1y + c_1 = 0 \\ a_2x + b_2y + c_2 = 0 \end{cases}.
  • Note:

+ If n⃗1⋅n⃗2=0\vec{n}_1 \cdot \vec{n}_2 = 0 then Δ1⊥Δ2\Delta_1 \perp \Delta_2.
+ To check whether n⃗1=(a1;b1)\vec{n}_1 = (a_1; b_1) and n⃗2=(a2;b2)\vec{n}_2 = (a_2; b_2) are parallel, consider a1b2−a2b1a_1b_2 - a_2b_1: if it equals 0 they are parallel, if it is different from 0 they are not parallel.
+ If a1,a2,b1,b2a_1, a_2, b_1, b_2 are all different from 0, you can consider the ratio: a1a2=b1b2\frac{a_1}{a_2} = \frac{b_1}{b_2} then they are parallel; a1a2≠b1b2\frac{a_1}{a_2} \ne \frac{b_1}{b_2} then they are not parallel.

In plain words: Two straight lines are like two roads. If the two normal vectors are parallel, then the two roads are either parallel or one and the same. To tell them apart, just take a point on the first line and see whether it lies on the second line. If the two normal vectors are not parallel, the two roads must intersect. The sign a1b2−a2b1a_1b_2 - a_2b_1 is like checking whether two arrows point the same way, avoiding division by 0.

Phrase by phrase
relative position
Relations between two straight lines: intersect, parallel, coincident lines (or perpendicular).Example: Δ1:x+y−1=0\Delta_1: x+y-1=0 and Δ2:x+y+2=0\Delta_2: x+y+2=0 are parallel.
a1b2−a2b1a_1b_2 - a_2b_1
A quantity used to check whether two normal vectors (a1;b1)(a_1;b_1) and (a2;b2)(a_2;b_2) are parallel.Example: (2;−3)(2;-3) and (4;−6)(4;-6): 2⋅(−6)−4⋅(−3)=02\cdot(-6)-4\cdot(-3)=0, parallel.
Δ1≡Δ2\Delta_1 \equiv \Delta_2
Coincident lines, that is, every point of one line belongs to the other.Example: x+y−1=0x+y-1=0 and 2x+2y−2=02x+2y-2=0 are coincident lines.

Common mistakesSeeing two parallel normal vectors and concluding right away that the two lines are coincident lines, while they may be parallel; you must test a point to tell them apart.

Angle between two straight lines

  • Two straight lines Δ1\Delta_1 and Δ2\Delta_2 intersect and form four angles:

+ If Δ1\Delta_1 and Δ2\Delta_2 are not perpendicular to each other, the acute angle among the four angles formed is called the angle between two straight lines Δ1\Delta_1 and Δ2\Delta_2.
+ If Δ1\Delta_1 and Δ2\Delta_2 are perpendicular to each other, the angle between them equals 90∘90^\circ.

  • Convention:

+ When Δ1\Delta_1 is parallel or coincident with Δ2\Delta_2, the angle between the two straight lines equals 0∘0^\circ.
+ The angle between two straight lines is always less than or equal to 90∘90^\circ, that is, (Δ1,Δ2)≤90∘(\Delta_1, \Delta_2) \le 90^\circ.
+ The angle between two straight lines Δ1\Delta_1, Δ2\Delta_2 is denoted by (Δ1,Δ2)(\Delta_1, \Delta_2) or (Δ1,Δ2^)(\widehat{\Delta_1,\Delta_2}).

  • In the coordinate plane, given Δ1\Delta_1, Δ2\Delta_2 with normal vectors n⃗1=(a1;b1)\vec{n}_1 = (a_1; b_1), n⃗2=(a2;b2)\vec{n}_2 = (a_2; b_2) respectively. We have:

cos⁡(Δ1,Δ2)=∣cos⁡(n⃗1,n⃗2)∣=∣n⃗1⋅n⃗2∣∣n⃗1∣∣n⃗2∣=∣a1a2+b1b2∣a12+b12a22+b22.\cos(\Delta_1, \Delta_2) = \left|\cos(\vec{n}_1, \vec{n}_2)\right| = \frac{|\vec{n}_1 \cdot \vec{n}_2|}{|\vec{n}_1| |\vec{n}_2|} = \frac{|a_1a_2 + b_1b_2|}{\sqrt{a_1^2+b_1^2}\sqrt{a_2^2+b_2^2}}.

  • Remark: If Δ1\Delta_1, Δ2\Delta_2 have direction vectors u⃗1\vec{u}_1, u⃗2\vec{u}_2 then cos⁡(Δ1,Δ2)=∣cos⁡(u⃗1,u⃗2)∣\cos(\Delta_1, \Delta_2) = \left|\cos(\vec{u}_1, \vec{u}_2)\right|.
  • Note:

+ If Δ1:a1x+b1y+c1=0\Delta_1: a_1x+b_1y+c_1=0 and Δ2:a2x+b2y+c2=0\Delta_2: a_2x+b_2y+c_2=0 then (Δ1,Δ2)=90∘⇔a1a2+b1b2=0(\Delta_1, \Delta_2) = 90^\circ \Leftrightarrow a_1a_2 + b_1b_2 = 0.
+ If Δ1:y=k1x+m1\Delta_1: y = k_1x + m_1 and Δ2:y=k2x+m2\Delta_2: y = k_2x + m_2 then (Δ1,Δ2)=90∘⇔k1k2=−1(\Delta_1, \Delta_2) = 90^\circ \Leftrightarrow k_1k_2 = -1. two straight lines whose product of slopes equals −1-1 are perpendicular to each other.

In plain words: The angle between two straight lines is the smallest of the angles they form, so it always goes from 0∘0^\circ to 90∘90^\circ. Since a normal vector can point to either side, the dot product can be negative, so you must take the absolute value to get a non-negative cosine. The formula really means computing the angle between the two normal vectors and then taking the corresponding acute angle.

Phrase by phrase
angle between two straight lines
An acute angle (or 90∘90^\circ) formed by two straight lines never exceeds 90∘90^\circ.Example: Δ1:x+y−1=0\Delta_1: x+y-1=0, Δ2:x−3y+2=0\Delta_2: x-3y+2=0 have cos⁡φ=15\cos\varphi = \frac{1}{\sqrt{5}}, φ≈63∘26′\varphi \approx 63^\circ 26'.
cos⁡(Δ1,Δ2)\cos(\Delta_1, \Delta_2)
The cosine of the angle between two straight lines, computed using normal vectors and taking the absolute value.Example: n⃗1=(1;1)\vec{n}_1=(1;1), n⃗2=(1;−3)\vec{n}_2=(1;-3): cos⁡φ=∣1−3∣210=15\cos\varphi = \frac{|1-3|}{\sqrt{2}\sqrt{10}} = \frac{1}{\sqrt{5}}.
k1k2=−1k_1k_2 = -1
The perpendicular condition for two straight lines with slopes k1k_1, k2k_2.Example: y=2x+1y=2x+1 and y=−12x+3y=-\frac{1}{2}x+3 are perpendicular.

Distance from a point to a straight line

  • In the plane OxyOxy, given the straight line Δ:ax+by+c=0\Delta: ax + by + c = 0 (a2+b2>0)(a^2 + b^2 > 0) and the point M0(x0;y0)M_0(x_0; y_0).
  • The distance from the point M0M_0 to the straight line Δ\Delta, denoted d(M0,Δ)d(M_0, \Delta), is given by the formula:

d(M0,Δ)=∣ax0+by0+c∣a2+b2.d(M_0, \Delta) = \frac{|a x_0 + b y_0 + c|}{\sqrt{a^2 + b^2}}.

  • This distance is exactly the length of the perpendicular segment drawn from M0M_0 to Δ\Delta, so it is the shortest distance from M0M_0 to Δ\Delta.

In plain words: To measure the distance from a point to a straight road, draw the perpendicular from that point down to the road. The formula is just 'plug the coordinates of the point into the equation of the line, take the absolute value, then divide by the length of the normal vector'. Divide by a2+b2\sqrt{a^2+b^2} to normalise, because (a;b)(a;b) can be longer or shorter and still describe the same straight line.

Phrase by phrase
d(M0,Δ)d(M_0, \Delta)
The distance from the point M0M_0 to the straight line Δ\Delta.Example: M0(1;1)M_0(1;1), Δ:4x+3y−12=0\Delta: 4x+3y-12=0: d=∣4+3−12∣5=1d = \frac{|4+3-12|}{5} = 1.
a2+b2\sqrt{a^2+b^2}
The length of the normal vector n⃗=(a;b)\vec{n}=(a;b) of the straight line.Example: Δ:4x+3y−12=0\Delta: 4x+3y-12=0 has 42+32=5\sqrt{4^2+3^2}=5.
the shortest distance
The perpendicular segment from a point to a straight line is the shortest segment joining that point to a point on the straight line.Example: From A(1;1)A(1;1) to 4x+3y−12=04x+3y-12=0, going perpendicular for 11 km.

Common mistakesComputing the distance but forgetting to divide by a2+b2\sqrt{a^2 + b^2}, only taking ∣ax0+by0+c∣|ax_0 + by_0 + c|.

TipRemember the distance with a rhythm: "substitute the coordinates, take the absolute value, divide by the length of the normal vector", that is ∣ax0+by0+c∣a2+b2\frac{|ax_0 + by_0 + c|}{\sqrt{a^2 + b^2}}.

Worked examples

Example 1

Give a normal vector and a direction vector of each of the following straight lines: a) Δ1:2x−3y+5=0\Delta_1: 2x - 3y + 5 = 0; b) Δ2:{x=4−ty=1+2t\Delta_2: \begin{cases} x = 4 - t \\ y = 1 + 2t \end{cases}.

Show the solution to example 1

Step 1: a) The general equation has the form ax+by+c=0ax + by + c = 0 with a=2a = 2, b=−3b = -3, so n⃗1=(2;−3)\vec{n}_1 = (2; -3).
Why: The coefficients in front of xx and yy are exactly the coordinates of the normal vector.
Step 2: Rotate n⃗1\vec{n}_1 by a right angle by swapping the two coordinates and then changing the sign of one of them: take u⃗1=(−b;a)=(3;2)\vec{u}_1 = (-b; a) = (3; 2).
Step 3: b) The parametric equation has the numbers added to xx and yy equal to −1-1 and 22, so u⃗2=(−1;2)\vec{u}_2 = (-1; 2).
Step 4: Rotate u⃗2\vec{u}_2: take n⃗2=(u2;−u1)=(2;1)\vec{n}_2 = (u_2; -u_1) = (2; 1).
Result: a) n⃗1=(2;−3)\vec{n}_1 = (2; -3), u⃗1=(3;2)\vec{u}_1 = (3; 2); b) u⃗2=(−1;2)\vec{u}_2 = (-1; 2), n⃗2=(2;1)\vec{n}_2 = (2; 1).

Common mistakesIn the formula a(x−x0)+b(y−y0)=0a(x - x_0) + b(y - y_0) = 0, taking the wrong sign: point M(2;−1)M(2; -1) but writing y−1y - 1 instead of y+1y + 1. You need to subtract the coordinates of the point, in the right order.

TipReading the general equation ax+by+c=0ax + by + c = 0 means reading n⃗=(a;b)\vec{n} = (a; b) right away; to get u⃗\vec{u} you swap the two coordinates and change the sign of one number.

Example 2

Form the general equation of the straight line Δ\Delta passing through M(2;−1)M(2; -1) and having normal vector n⃗=(3;4)\vec{n} = (3; 4). Check whether MM belongs to Δ\Delta.

Show the solution to example 2

Step 1: Use the formula a(x−x0)+b(y−y0)=0a(x - x_0) + b(y - y_0) = 0 with x0=2x_0 = 2, y0=−1y_0 = -1, a=3a = 3, b=4b = 4: 3(x−2)+4(y+1)=03(x - 2) + 4(y + 1) = 0.
Why: This formula is exactly the condition n⃗⋅M0M→=0\vec{n} \cdot \overrightarrow{M_0M} = 0, so the straight line takes exactly n⃗\vec{n} as its normal vector.
Step 2: Expand: 3x−6+4y+4=03x - 6 + 4y + 4 = 0, that is 3x+4y−2=03x + 4y - 2 = 0.
Step 3: Substitute the coordinates of M(2;−1)M(2; -1): 3⋅2+4⋅(−1)−2=6−4−2=03 \cdot 2 + 4 \cdot (-1) - 2 = 6 - 4 - 2 = 0, which holds.
Result: Δ:3x+4y−2=0\Delta: 3x + 4y - 2 = 0.

Example 3

Form the parametric equation of the straight line dd passing through A(1;3)A(1; 3) and having direction vector u⃗=(−2;5)\vec{u} = (-2; 5). Find the point on dd corresponding to t=3t = 3 and the point corresponding to t=−1t = -1.

Show the solution to example 3

Step 1: Apply the formula: {x=1−2ty=3+5t\begin{cases} x = 1 - 2t \\ y = 3 + 5t \end{cases}.
Step 2: With t=3t = 3: x=1−6=−5x = 1 - 6 = -5, y=3+15=18y = 3 + 15 = 18, giving the point (−5;18)(-5; 18).
Step 3: With t=−1t = -1: x=1+2=3x = 1 + 2 = 3, y=3−5=−2y = 3 - 5 = -2, giving the point (3;−2)(3; -2).
Why: Each value of tt is the number of steps taken in the direction u⃗\vec{u} starting from AA; a negative tt means stepping in the opposite sense to the arrow.
Step 4: Check the point (−5;18)(-5; 18) by adding 3 times u⃗\vec{u} to AA: (1;3)+3(−2;5)=(−5;18)(1; 3) + 3(-2; 5) = (-5; 18), which matches.
Result: d:{x=1−2ty=3+5td: \begin{cases} x = 1 - 2t \\ y = 3 + 5t \end{cases}; t=3t = 3 for (−5;18)(-5; 18), t=−1t = -1 for (3;−2)(3; -2).

Example 4

Given two points A(−1;2)A(-1; 2) and B(3;4)B(3; 4). Form the parametric equation and the general equation of the straight line ABAB.

Show the solution to example 4

Step 1: AB→=(3−(−1);4−2)=(4;2)\overrightarrow{AB} = (3 - (-1); 4 - 2) = (4; 2). This is a direction vector.
Why: The straight line ABAB contains the segment ABAB, so the line carrying AB→\overrightarrow{AB} coincides with the straight line.
Step 2: Simplify AB→=2(2;1)\overrightarrow{AB} = 2(2; 1), take u⃗=(2;1)\vec{u} = (2; 1) for simplicity (it is parallel, so it is still a direction vector).
Step 3: Parametric equation through A(−1;2)A(-1; 2): {x=−1+2ty=2+t\begin{cases} x = -1 + 2t \\ y = 2 + t \end{cases}.
Step 4: Normal vector n⃗=(1;−2)\vec{n} = (1; -2). General equation: 1(x+1)−2(y−2)=01(x + 1) - 2(y - 2) = 0, that is x−2y+5=0x - 2y + 5 = 0.
Step 5: Substitute B(3;4)B(3; 4): 3−8+5=03 - 8 + 5 = 0, correct.
Result: AB:{x=−1+2ty=2+tAB: \begin{cases} x = -1 + 2t \\ y = 2 + t \end{cases} and x−2y+5=0x - 2y + 5 = 0.

Example 5

Consider the relative position of the two straight lines Δ1:2x−3y+5=0\Delta_1: 2x - 3y + 5 = 0 and Δ2:4x−6y+7=0\Delta_2: 4x - 6y + 7 = 0.

Show the solution to example 5

Step 1: Read the normal vector: n⃗1=(2;−3)\vec{n}_1 = (2; -3), n⃗2=(4;−6)\vec{n}_2 = (4; -6).
Step 2: Notice that n⃗2=2n⃗1\vec{n}_2 = 2\vec{n}_1 so n⃗1\vec{n}_1, n⃗2\vec{n}_2 are parallel, the two straight lines are parallel or coincident lines.
Why: If they are parallel, the two perpendicular lines point in the same direction, they cannot intersect.
Step 3: Tell parallel from coincident lines by testing a point. Take N(−1;1)N(-1; 1): substitute into Δ1\Delta_1 gives 2⋅(−1)−3⋅1+5=02 \cdot (-1) - 3 \cdot 1 + 5 = 0, so NN belongs to Δ1\Delta_1. Substitute NN into Δ2\Delta_2: 4⋅(−1)−6⋅1+7=−3≠04 \cdot (-1) - 6 \cdot 1 + 7 = -3 \ne 0, so NN does not belong to Δ2\Delta_2.
Step 4: The two lines have parallel normal vectors but no point of intersection, so they are parallel.
Result: Δ1\Delta_1 and Δ2\Delta_2 are parallel lines.

TipLook at the pair of coefficients (a;b)(a; b) of the two lines: if proportional, they are parallel or coincident lines, if not proportional, they intersect; to know whether coincident lines or parallel, substitute a point.

Example 6

Find the angle between the two straight lines Δ1:x+y−1=0\Delta_1: x + y - 1 = 0 and Δ2:x−3y+2=0\Delta_2: x - 3y + 2 = 0.

Show the solution to example 6

Step 1: n⃗1=(1;1)\vec{n}_1 = (1; 1), n⃗2=(1;−3)\vec{n}_2 = (1; -3).
Step 2: n⃗1⋅n⃗2=1⋅1+1⋅(−3)=−2\vec{n}_1 \cdot \vec{n}_2 = 1 \cdot 1 + 1 \cdot (-3) = -2; ∣n⃗1∣=2|\vec{n}_1| = \sqrt{2}, ∣n⃗2∣=1+9=10|\vec{n}_2| = \sqrt{1 + 9} = \sqrt{10}.
Step 3: cos⁡φ=∣−2∣2⋅10=220=225=15\cos\varphi = \frac{|-2|}{\sqrt{2} \cdot \sqrt{10}} = \frac{2}{\sqrt{20}} = \frac{2}{2\sqrt{5}} = \frac{1}{\sqrt{5}}.
Why: A negative dot product means the two normal vectors form an obtuse angle, but the angle between two straight lines is taken as the acute angle, so you must take the absolute value.
Step 4: 15≈0,4472\frac{1}{\sqrt{5}} \approx 0,4472, look it up in a table or press the calculator to get φ≈63∘26′\varphi \approx 63^\circ 26'.
Result: cos⁡φ=15≈0,4472\cos\varphi = \frac{1}{\sqrt{5}} \approx 0,4472, that is φ≈63∘26′\varphi \approx 63^\circ 26'.

Common mistakesForgetting the absolute value in the numerator of the cosine formula, getting a negative cosine and concluding an obtuse angle, while the angle between two straight lines does not exceed 90∘90^\circ.

Example 7

On a coordinate map, a straight road has the equation 4x+3y−12=04x + 3y - 12 = 0 (units on the axes are km). An's house is at point A(1;1)A(1; 1). Find the shortest distance from An's house to the road. If An walks straight out perpendicular to the road, how many km is that?

Show the solution to example 7

Step 1: The shortest distance from a point to a straight line is exactly d(A,Δ)d(A, \Delta) with Δ:4x+3y−12=0\Delta: 4x + 3y - 12 = 0.
Step 2: Substitute A(1;1)A(1; 1): 4⋅1+3⋅1−12=−54 \cdot 1 + 3 \cdot 1 - 12 = -5, take the absolute value to get 5.
Step 3: 42+32=5\sqrt{4^2 + 3^2} = 5, so d(A,Δ)=55=1d(A, \Delta) = \frac{5}{5} = 1 (km).
Why: The shortest path from a point to a straight line is the perpendicular, exactly equal to the distance in the formula, so walking straight out perpendicular to the road is the shortest distance.
Result: The shortest distance is 1 km, which is also the distance if An walks perpendicular to the road.

Terms

Normal vector
A vector different from 0⃗\vec{0} whose line of action is perpendicular to the straight line.Example: n⃗=(2;−1)\vec{n} = (2; -1) is a normal vector of 2x−y+4=02x - y + 4 = 0.
Direction vector
A vector different from 0⃗\vec{0} whose line of action is parallel or coincident with the straight line.Example: u⃗=(1;2)\vec{u} = (1; 2) is a direction vector of 2x−y+4=02x - y + 4 = 0.
General equation
The equation ax+by+c=0ax + by + c = 0 with a,ba, b not both equal to 0.Example: 3x+2y−6=03x + 2y - 6 = 0.
Parametric equation
The system x=x0+atx = x_0 + at, y=y0+bty = y_0 + bt with parameter tt, where u⃗(a;b)\vec{u}(a; b) is a direction vector.Example: {x=1+ty=2−3t\begin{cases} x = 1 + t \\ y = 2 - 3t \end{cases}.
Parameter
The letter tt in the parametric equation, each value gives one point.Example: t=0t = 0 gives point (1;2)(1; 2) in the example above.
Slope
The number kk in y=kx+my = kx + m, measuring the steepness of the straight line.Example: y=−x+5y = -x + 5 has slope −1-1.
Point on a line
A point whose coordinates satisfy the equation of the straight line.Example: (1;1)(1; 1) belongs to x+y−2=0x + y - 2 = 0.
Graph of a linear function
The straight line y=kx+my = kx + m with k≠0k \ne 0.Example: y=3x−1y = 3x - 1 is a straight line.