Analysis of the Straight line and the Area of a Triangle

You're viewing an older version of this page (#3671). View the current version.

View versions (3)

Definition

The notion of line or straight line was introduced by the ancient mathematicians (Euclidean geometry) to represent straight objects with negligible width and depth.
Euclid (ancient greek mathematician) described a line as "breadthless length".

22109/sl_1.gif

By using Pythagoras, the distance between the points A and B can be found from: \sqrt{(x_1 - x_2)^2 + (y_1 - y_2)^2}

And the gradient of the line (AB) is given by: m=\frac{(y_2 - y_1)}{(x_2 - x_1)}

Coordinates of a Point Dividing a Line AB

Suppose the coordinates of the required point P are (X,Y) that divide a line AB in the ratio of (\lambda:\mu).

Then by parallels:
\displaystyle\frac{x_2 - X}{X - x_1} = \frac{\mu }{\lambda } and so X(\lambda  + \mu ) = \lambda \;x_2 + \mu \;x_1

Similarly for the y coordinate and so the coordinates of P are:
\displaystyle\frac{\lambda \;x_2 + \mu \;x_1}{\lambda  + \mu } and \displaystyle\frac{\lambda \;y_2 + \mu \;y_1}{\lambda  + \mu }

Note If P is not between A and B, the ratio AP/PB is negative and the same formula holds good, provided that \mu is taken to be negative. As a particular example. Putting the ratio as 1 gives the coordinates of the mid point of the line as: \frac{1}{2}(x_1 + x_2) and \frac{1}{2}(y_1 + y_2)

Centre of Gravity for a Triangle A B C

22109/sl_2.gif

If A' is the mid point of BC

A'\;\equiv \;\left[\frac{1}{2}(x_3 - x_2)\;and\;\frac{1}{2}(y_3 - y_2) \right] But G divides AA' in the ratio of 2 : 1. The coordinates of G are therefore : \left( 2\left(\frac{x_3 + x_2}{2} \right) + x_1 \right)\div 3 = \frac{1}{3}\left(x_1 + x_2 + x_1 \right)

The y coordinates follow in a similar manner and so
- Each coordinate of the centre of gravity of a triangle is one third of the sum of the coordinates of the vertices.

The Area of the Triangle A B C

22109/sl_3.gif

From the diagram it can be seen that: ABC\; = \;Trapezium \;APRC  +  Trapezium\; CRQB\; -  Trapezium\; APQB = \frac{1}{2}(y_3 + y_1)(x_3 - x_1) + \frac{1}{2}(y_2 + y_3)(x_2 - x_3) - \frac{1}{2}(y_1\;+y_2)(x_2 - x_1) = \frac{1}{2}\left(x_1y_2 - x_2y_1 + x_2y_3 - x_3y_2 + x_3y_1 - x_1y_3 \right)

Note It often helps to use the particular form of this equation when C becomes the Origin.
The area of this triangle is then given by: = \frac{1}{2}\left(x_1y_2 - x_2y_1 \right)\;\;\;\;\;\;\;\;i.e.\;(x_3 = y_3 = 0)

The Equation of a Straight Line

If (x,y) is a point on the line joining (x_1 \,y_1) and (x_2\,y_2), the area of the triangle formed by the three points is zero.
Therefore x_1y_2\;-x_2y_1 + x_2y - xy_2 + xy_1 - x_1y = 0

Hence \displaystyle\frac{y - y_1}{x - x_1} = \frac{y_2 - y_1}{x_2 - x_1}

This is therefore the equation of a straight line joining the points A and B and since it is of the first degree in x and y, it also shows that any straight line must be represented by an equation in the first degree.

Since \displaystyle\frac{y_2 - y_1}{x_2 - x_1} is the gradient of the line , it's equation may be written as:

\frac{y - y_1}{x - x_1} = m

\theta  = \beta  - \alpha

Where m is the gradient of the line.

Intercept Form

To find the equation of the line which makes intercepts a and b on the axes. We want the line joining (a,0) to (b,0). So the equation is:

\frac{y - 0}{x - a} = \frac{b - 0}{0 - a} i.e. -a\,y = b\,x - b\,a

therefore \displaystyle\frac{x}{a} + \frac{y}{b} = 1

Gradient Intersect Form

To find the equation of a straight line of gradient m which makes an intercept c on the y axis.

The intercepts are obviously c and -c/m and so the equation is given by: - \frac{x}{c/m} + \frac{y}{c} = 1 therefore y = m\,x + c

The Polar Form

To find the equation of a straight line such that the from the origin is of length p and makes an angle \alpha with the x-axis.

22109/sl_4.gif

If (x,y) are the coordinates of any point on the line. From the diagram we can see that :

ON = OS + PR therefore p = x\;cos\,\alpha  + y\;sin\,\alpha

This then is the equation required.

The Angle Between Two Lines.

To find the angle between to lines of gradient m and t.

22109/3.gif

From the diagram it can be seen that:

\theta  = \beta  - \alpha therefore \displaystyle tan\,\theta  = tan\,(\beta  - \alpha)= \frac{tan\;\beta  - tan\;\alpha }{1 - tan\;\beta \;tan\;\alpha }

But since tan\;\beta  = m and tan\;\alpha  = t tan\;\theta  = \frac{m - t}{1 + mt}

If the lines are parallel, since tan\;0 is zero, m = t

and if the lines are perpendicular,
since tan\;90 is infinite, mt = - 1
i.e. The product of the gradients of perpendicular lines is -1.

Example 1
Problem

Write down the equation of the line through (1,2) which are parallel and perpendicular to 3x\; -  4y\; =  7

Workings

For the parallel line keep the x and y terms unaltered. The equation required is 3x - 4y - c = 0 and since the line passes through (1,2) , the value of c can be found by substituting x = 1 and y = 2 in the equation.
The parallel line is thus : 3x - 4y\;= - 5

For the perpendicular line, interchange the coefficients of x and y and alter the sign between them. The line becomes 4x + 3y = K and as before the value of the constant is found by
substituting x = 1 and y = 2 .
The equation of the perpendicular line is therefore:

4x + 3y = 10

The Length of the Perpendicular

To find the length of the perpendicular from (x',y') to the line ax + by + c = 0

22109/sl_6.gif

Suppose that the perpendicular makes an angle \alpha with the x axis. If the length of the perpendicular is p then the coordinates of it's foot are:

\displaystyle x' + p\,cos\,\alpha and \displaystyle y'\;+p\,sin\,\alpha

This point lies on the line ax + by + c = 0 and therefore:

a(x' + p\,cos\,\alpha)  + b(y' + p\,sin\,\alpha ) + c = 0 or p(a\;cos\,\alpha  + b\;sin\,\alpha )\;= - (ax' + by' + c)

But since the product of perpendicular lines is - 1

\displaystyle tan\;\alpha \left(- \frac{a}{b} \right)\;= - 1 and therefore tan\;\alpha  = \frac{b}{a}

22109/sl_7.gif

therefore a\;cos\,\alpha  + b\;sin\,\alpha  = a\times \frac{a}{\sqrt{a^2 + b^2}} + b\times \frac{b}{\sqrt{a^2 + b^2}} = \sqrt{a^2 + b^2}

p\;= - \frac{ax' + by' + c}{\sqrt{a^2 + b^2}} Note
The minus sign is of no great significance in itself ( Since we have a square root in the denominator) but the comparison between the signs of the perpendicular is of the utmost importance. If these perpendiculars are of the same sign, the points are on the same side of the line. If they are of different signs the points are on opposite sides. The square root of the denominator is assumed to have it's positive value throughout and so will not affect the comparison. Hence all we need to do is to substitute the points in the lines themselves.

Example 1
Problem

Are the points (1,2) and (3,1) on the same side or on opposite sides of the line 3x - 4y - 1 = 0.

Workings

If x = 1, y = 2 then the value of 3x - 4y - 1 is 3 - 8 - 1 i.e. -6

If x = 3, y = 1 then the value of 3x - 4y - 1 is 9 - 4 - 1 i.e. +5

Solution

So the points are on either side of the line.

Angle Bisectors.

An angle bisector is a straight line which cuts the angle into two equal angles.

To find the equation of the angle bisectors between the lines ax + by + c = 0 and Ax + By + C = 0

Use the geometrical property that the perpendiculars from any point on either angle bisector to the two lines are equal.
therefore \frac{ax + by + c}{\sqrt{a^2 + b^2}} = \pm \;\frac{Ax + By + C}{\sqrt{A^2 + B^2}}

These are the required pair of lines.

It is sometimes necessary to distinguish which of these is the internal and which is the external bisector and a method of doing this is shown in the following example.

Example 1
Problem

Find the incentre of the triangle formed by the following three lines: x + 2y - 10 = 0 2x + y - 9 = 0 and x - 2y - 2 = 0

Workings
22109/sl_8.gif

It is helpful to draw a diagram showing the relative positions of the lines. If (x,y) is the incentre the length of the perpendicular from (x,y) to the line 2x + y - 9 = 0 is given by:

\frac{2x + y\;-9}{\sqrt{5}}

If the coordinates of the origin are substituted into this , the result is a negative quantity but (x,) and the origin are on opposite sides of the line and so:-

\frac{2x + y\;-9}{\sqrt{5}}>0

The perpendicular from (x,y) to the line x - 2y - 2 = 0 is given by:

\frac{x - 2y - 2}{\sqrt{5}}

The origin substituted in this will give a negative expression and as (x,y) and the origin are on the same side.

\frac{x - 2y - 2}{\sqrt{5}}<0

The perpendicular from (x,y) to the line x + 2y - 10 = 0 is given by: \frac{x + 2y - 10}{\sqrt{5}}

The origin substituted in this expression gives a negative quantity and since (x,y) and the origin are on the same side : \frac{x + 2y - 10}{\sqrt{5}}<0 therefore \frac{2x + y - 9}{\sqrt{5}}  = \frac{x - 2y - 2}{\sqrt{5}} =\frac{x + 2y - 10}{\sqrt{5}}

Solution

From which 3x - y = 11 and 3x + 3y = 19
Solving these two equations gives the coordinates of the incentre as (4.5, 2)
Taking the alternative signs in the equations will give the ex-centres

A line Through the Intersection of Two given lines

If l = 0 and l' = 0 are the equations of any two straight lines , then l + \lambda l' = 0 will represent e line passing through their point of intersection for all values of \lambda.

Since l and l' are expressions of the first degree so must be l + \lambda l' and therefore l + \lambda l' = 0 must be a straight line. The coordinates of the point of intersection of l and l' will make both l and l' equal zero and this will make l + l' = 0. Therefore the line l = l' = 0 passes through the point of intersection of l and l'.

This is of particular use in finding the equation of the line which joins the point of intersection of two given lines to the origin.

Example 1
Problem

Write down the equation of the line which passes through (1,-1) and has a gradient of 2

Workings

Using the general equation for a straight line i e. y = mx + c
Substituting in the coordinates and m = -3

Solution

The equation becomes y = 2x - 3