Section 2 Lines
Theorem 2.2. Pythagoras’ theorem.
The square of the hypotenuse of a right‑angled triangle is equal to the sum of the squares of the lengths of the other two sides. In symbols
Proof.

Subsection 2.1 Equations of lines
This part is about the equations of straight lines. These equations can take different forms depending on the facts one knows about the lines.
Subsubsection 2.1.1 General equation of a straight line
The equation given by
defines a straight line. There are some special cases to deal with
- if \(a=0,b\neq 0,\) then we have a horizontal line \(y=\frac{-c}{b},\)
- if \(a\neq 0,b=0,\) then we have a vertical line \(x=\frac{-c}{a}.\)
Subsubsection 2.1.2 Equation of a line with given gradient, passing through a given point
Given a line by a general equation
and \(b\neq 0.\) In this case we obtain that
The ratio
is called the gradient (or slope) of the line. If two points are given on the line \((x_1,y_1)\) and \((x_2,y_2)\) the gradient \(m\) can be determined as follows:
For example, the gradient of the line \(y=5x-3\) is
Let us take a general line with gradient \(m,\) passing through the point \(A=(x_1 , y_1).\) We now use the fact that the line \(y=mx+n\) passes through \(A=(x_1 , y_1 ).\) Substituting these values we get that
So the equation of the line is
Subsubsection 2.1.3 Equation of a line through two given points
Suppose the general line passes through two points \(A=(x_1 , y_1)\) and \(B=(x_2 , y_2 ).\) Take an arbitrary but fixed point on the line different from \(A,B\) denote it by \(P=(x,y).\) The gradient of \(AP\) must be the same as the gradient of \(AB,\) hence we obtain
It may be written as
Subsubsection 2.1.4 Intercept form of a line
Two points determine a line as we saw. Consider a line given by the general equation
We get the so-called \(y\)-intercept by setting \(x= 0\) and solving for \(y:\)
That is the \(y\)-intercept \((0,-c/b)\) is on the line. Similarly, we get the \(x\)-intercept by setting \(y= 0\) and solving for \(x:\)
So the \(x\)-intercept \((-c/a,0)\) is on the line. The equation of the line making intercepts \(I_x\) and \(I_y\) on \(x\)- and \(y\)-axis respectively is given by
Subsubsection 2.1.5 Parametric equations
Lines can be given in a so-called parametric form, that is
for some \(a,b,c,d\in\mathbb{R}.\) If we have a line in parametric form we can determine other representations as follows (for simplicity assume that \(a\neq 0, c\neq 0\)). We have that
Hence we obtain that
Therefore we get a general equation of a line. The other direction is as simple as the previous one as well. Given a line in general form, say \(ax+by+c=0,\) our goal is provide a parametric form. We take \(x=t\) to obtain \(y=\frac{-at-c}{b}.\) Of course we may get different parametric forms too by setting \(x=ut+v\) for some \(u,v\in\mathbb{R}.\)
As an example consider the line given in parametric form \(x=3t-1,y=2t+5.\) It follows that
Let us see the other direction, suppose the line is given by \(3x+5y-12=0\) and we would like to have a parametric form. Take \(x=5t-1.\) It follows that
Subsubsection 2.1.6 Parametric form of the line through two points
Suppose the parametric line passes through two points \(A=(x_1 , y_1)\) and \(B=(x_2 , y_2 ).\) The form can be determined by the equation
to make it more transparent rewrite the formula as
Thus we have
Consider an example, let \(A=(2,3),B=(7,13).\) Let us compute the parametric form of the line using the above formula:
That is we obtain
Subsection 2.2 Exercises
Subsection 2.3 Parallel and perpendicular lines
In this part we investigate intersection of two lines and we deal with properties of parallel and perpendicular lines.
Subsubsection 2.3.1 Intersection of two given lines
Our goal is to determine the common points \((x,y)\) of two lines given in general forms
We eliminate one of the variables, let say \(y.\) To do so, we multiply the first equation by \(b_2\) and the second one by \(b_1:\)
Now we subtract the second equation from the first one to get rid of \(y:\)
From here we conclude the following
- there are infinitely many solutions, that is the two lines are coincident if \(a_1b_2-a_2b_1=c_1b_2-c_2b_1=0,\)
- there are no solution, that is the two lines are parallel and distinct if \(a_1b_2-a_2b_1=0, c_1b_2-c_2b_1\neq 0,\)
- there is a solution, that is the two lines intersect if \(a_1b_2-a_2b_1\neq 0.\)
Let us give some concrete examples.
-
\begin{align*} x+2y+3 \amp =0,\\ 3x+6y+9 \amp =0. \end{align*}Here we have \(a_1b_2-a_2b_1=1\cdot 6-3\cdot 2=0, c_1b_2-c_2b_1=3\cdot 6-9\cdot 2=0.\)
-
\begin{align*} x+2y+3 \amp =0,\\ 2x+4y+5 \amp =0. \end{align*}In this case we obtain that \(a_1b_2-a_2b_1=1\cdot 4-2\cdot 2=0, c_1b_2-c_2b_1=3\cdot 4-5\cdot 2\neq 0.\)
-
\begin{align*} x+2y+3 \amp =0,\\ 2x+3y+1 \amp =0. \end{align*}We get that \(a_1b_2-a_2b_1=1\cdot 3-2\cdot 2\neq 0.\)
Subsubsection 2.3.2 Parallel and perpendicular lines
In the previous part we saw that two lines defined by
are parallel (and distinct), than \(a_1b_2-a_2b_1=0, c_1b_2-c_2b_1\neq 0.\) In practice many times we have lines given in the gradient/slope form \(y=mx+n.\) We can easily modify the above classification to obtain some condition that can be used in such cases. Take \(b_1=b_2=-1\) in the definition of the general form, that is we consider the system
Now the condition \(a_1b_2-a_2b_1=0\) simplifies as
The slopes has to equal to get parallel lines. Now it is clear that the following lines are parallel lines:
Parallel lines are special ones as we saw. It is also a natural question how can we provide two lines intersecting like (such lines are called perpendicular) the \(x\)-axis (horizontal line) and \(y\)-axis (vertical line). Obviously, if we take an arbitrary horizontal line and an arbitrary vertical line, then those will do the job. What about other possibilities? We will see that this concept is related to the angle between the two lines, here we only deal with this special case. We have the following characterization of perpendicular lines. In a coordinate plane, two lines are perpendicular if and only if one is vertical and the other is horizontal or the slopes of the lines are negative reciprocals of each other. Some examples are given below:
