Normal vector of a line
The normal vector of a line p is a vector that is perpendicular to the line p, and its coordinates come from the general equation of the line.
Motivation
We have a line p that passes through the points A(0, 1), B(2, 5). The line is the graph of the function y = 2x + 1, so the general equation of the line is −2x + y − 1 = 0. The picture:
The general equation has the form ax + by + c = 0, so for the equation −2x + y − 1 = 0 we have a = −2, b = 1, c = −1. What is the geometric meaning of the parameters a, b? Just for fun, let’s draw the vector
It is quite clear that this vector is perpendicular to the line p. This is no coincidence: for any general equation of a line ax + by + c = 0, the vector (a, b) is perpendicular to the line. We call such a vector a normal vector of the line p.
Properties of the normal vector
From the properties of the scalar product (dot product) of vectors we know that the scalar product of two vectors is zero exactly when the vectors are perpendicular. The direction vector of the line p is parallel to p, so any direction vector of p is perpendicular to the normal vector. If we work out the direction vector from the line segment
Drawn in the picture:
If we play with the scalar product of two vectors a little, which as a reminder is defined as
we find that for real numbers a, b, the scalar product of the vectors (a, b) and (−b, a), and of the vectors (a, b) and (b, −a), always comes out as zero:
Now let’s return to the line p given by the general equation ax + by + c = 0 and to the normal vector (a, b), which is perpendicular to the line. But wait! By the property above, the vectors (−b, a) and (b, −a) have zero scalar product with the normal vector, so the vectors (−b, a) and (b, −a) must be perpendicular to the normal vector! And because the normal vector is perpendicular to the line, a vector perpendicular to the normal vector must be parallel to the original line p! Brilliant!
We can draw the vectors
Finding the general equation of a line from a normal vector and a point
We already know that we can find the general equation of a line fairly easily from the parametric equations. If we know a normal vector
We still have to work out the coefficient c. This equation of the line p must hold for all the points on p. This means that if we substitute the coordinates of a point on p for x, y, the equation must be true. It is enough to substitute the point A, which the line p certainly passes through. The point A has coordinates A(5, 13), so we substitute x = 5, y = 13 into the equation 4x − 6y + c = 0:
The complete general equation of the line p is therefore
Two direction vectors of the line p are
Chapters: Parametric equations of a line, General equation of a line, Normal vector of a line, Slope-intercept form of a line, Equation of a line in 3D