Line (geometry)

From testwiki
Jump to navigation Jump to search

Line (Geometry)



The word "line" is open to many different interpretations, as in:

"That horse is descended from a great line of thoroughbreds." or

"Toe the line, or else!"


The concept of "line" in geometry is so basic that a definition may not be necessary. It might be better to say that a definition may not be possible (or adequate.)

Here are some possible definitions:


A line has length but no breadth. This "line" could not be seen under the most powerful microscope.

A line is the shortest possible distance between two fixed points. In astronomy the shortest possible distance between two fixed points might be curved. Some wit might argue that there is no such thing as a fixed point. After all every point on the surface of the earth is always moving.

A line is the locus of a point that moves from one fixed point to a second fixed point so that the distance traveled is the minimum possible. With current technology the minimum possible distance between New York City and Rome follows the curvature of the earth.

The word "point" has been mentioned but not defined. Can we define a point?

If you draw a "line" on a piece of paper and then crumple the paper, what does this do to the line?


In this page the "line" is described in the context of Cartesian geometry in exactly two dimensions.


Line in Cartesian Geometry

Figure 1. Cartesian plane illustrating many different lines.


How many lines do you see in Figure 1? The answer takes us into a mixture of philosophy and geometry.


One answer might be: "None. I see many images, each with the appearance of a rectangle and each containing a line such as y=2x+1 or x=2."


"You can't see the whole line x=2. At best all you can see is a segment of the line between y=5, y=5."


"Are the limits 5,5 included or excluded?"


"Do you see the red line?"


"I see a red image with the appearance of a rectangle (or trapezoid, I can't be sure), probably representing the line y=12x+1, but it could represent the line y=0.49999999999x+1.000000000001."


A second answer might be: "Too many for the current discussion. After all, the character 4 contains 5 lines."


Let's go back to the original question: "How many lines do you see in Figure 1?"


While I see many more than 3, it seems that there are 3 of interest to this discussion and I answer: "Three."


"Describe them."


"A red line with equation y=0.5x+1, a blue line with equation y=0.5x1 and a green line with equation y=2x+1."


Despite the possibility of endless limitations and diversions such as those mentioned above, we accept this answer as satisfactory for the current discussion.


The line defined.



In figure 1, the blue line may be defined as just that: "the blue line." However, if we are to answer profound questions about the blue line, such as "How far is the blue line from the red?" or "Where do the blue and green lines intersect?" we need to define the blue line in algebraic terms.


The blue line is the line that passes through points (2,2),(0,1),(2,0) and it has equation y=f(x)=Ax2+Bx+C.

Calculate the values of A,B,C:

2=A(2)2+B(2)+C; 4A2B+C=2

1=A(0)2+B(0)+C; C=1

0=A(2)2+B(2)+C; 4A+2B+C=0


4A2B+(1)=2; 4A2B=1  (1)

4A+2B+(1)=0; 4A+2B=1  (2)


(1)+(2), A=0.

(2)(1), 4B=2; B=12

and the equation of the blue line becomes: y=(0)x2+(12)x+(1)=12x1. This equation has the form y=mx+g where:

m= slope of blue line =12 and g=the y intercept=1, the value of y at the point (0,1) where the line and the y axis intersect.


The red and green lines both intersect the y axis (x=0) at the point (0,1). The y intercept is 1.

The red line has equation y=m1x+1. The green line has equation y=m2x+1.


Slope of line


Figure 2. Slope of line illustrated.
When x increases by 2 units, y increases by 3 units.
Slope of oblique line =m=32.
When x decreases by 4 units, y decreases by 6 units.
Slope of oblique line =m=64=32.


See Figure 2. The oblique line passes through points (x1,y1)=(2,4), (x2,y2)=(0,1).


m=y2y1x2x1=1(4)0(2)=32. The oblique line has equation y=32x+g and it passes through the point (2,4). g=y32x=432(2)=4+3=1. The y intercept is 1 and:

Oblique line has equation y=32x1.


Back to Figure 1. By inspection, m1=12 and the red line has equation y=12x+1, m2=2 and the green line has equation y=2x+1.






Parallel lines


Figure 3. Parallel lines in the Cartesian plane.
The 3 colored lines all have slope 12.
Each colored line has equation: y=12x+g.
The 3 colored lines are parallel.


See Figure 3. The three colored lines are parallel because they all have the same slope (12).


Remember that the lines x=4; x=3;  x=4 are all parallel, as are the lines y=4; y=3;  y=4.























Lines with same y intercept


Figure 4. Lines with same y intercept.
The 3 colored lines all pass through point (0,1).
They have the same y intercept.
Each colored line has equation: y=mx+1.


See Figure 4. The colored lines represent the family of lines that pass through the point (0,1). There is one exception. The line x=0 passes through the point (0,1) but it cannot be represented by the equation y=mx+1.

Note the red line. As x increases, y decreases, and the line goes down from left to right. Slope of the line is 15 and line has equation y=15x+1.






















Go to top of section "Line in Cartesian Geometry."

Go to top of page ["Line (Geometry)."]

Line as locus of point



File:20170615 Line as locus of point 00.png
Figure 1. Line as locus of point equidistant from 2 fixed points.
Any point on line JP is equidistant from points G,H.
PG=PH. JG=JH.

In this section the line is defined as the locus of a point that is always equidistant from two fixed points. In Figure 1 the two fixed points are G,H and the length GH is non-zero. By definition length PG = length PH.


Let points P,G,H have coordinates (x,y),(s,t),(u,v).


Length PG=(xs)2+(yt)2


Length PH=(xu)2+(yv)2


PG=PH. Therefore:


(xs)2+(yt)2=(xu)2+(yv)2

(xs)2+(yt)2=(xu)2+(yv)2

(xs)2+(yt)2( (xu)2+(yv)2 )=0


Expand and the result is:

2(us)x+2(vt)y+ss+ttuuvv=0


This equation has the form:Ax+By+C=0 where:

A=2(us); B=2(vt); C=s2+t2u2v2.


In Figure 1 the line through points JP has equation 5x12y+15=0.


If defined as the locus of a point equidistant from points (s,t)=(2,12), (u,v)=(8,12), the calculation of A,B,C produces the equation 20x+48y60=0.


If defined as the locus of a point equidistant from points (s,t)=(1,29), (u,v)=(19,19), the calculation of A,B,C produces the equation 40x96y+120=0.


Distance from point to line



Length GH=(us)2+(vt)2=(A2)2+(B2)2=12A2+B2.


Length GH is non-zero. Therefore, at least one of A,B must be non-zero.


Length GJ=14A2+B2= distance from point G to line.


Consider the expression Ax+By+C and substitute (u,v) for (x,y).


We show that Au+Bv+C=A2+B24 or 4(Au+Bv+C)=A2+B2.


If you make the substitutions and expand, you will see that the equality is valid.


Therefore Au+Bv+CA2+B2=A2+B24= distance from point H to line.


Similarly we can show that As+Bt+CA2+B2=14A2+B2= distance from point G to line.


If the equation of the line has form: Ax+By+CA2+B2=0 then


AA2+B2x+BA2+B2y+CA2+B2=0


( coefficient of x)2+( coefficient of y)2 =A2A2+B2+B2A2+B2=A2+B2A2+B2=1.


If the equation of the line Ax+By+C=0 has A2+B2=1,

the distance from point (s,t) to the line is As+Bt+C,

the distance from point (u,v) to the line is Au+Bv+C, and As+Bt+C=(Au+Bv+C).

Length GJ and length HJ have the same absolute value with opposite signs.



Use of multiplier K



Consider the equation Au+Bv+CA2+B2=A2+B24. If (A2+B2==1), this doesn't make sense.


To make sense of the relationship introduce a multiplier K. A,B,C become KA,KB,KC and the relationship is:


KAu+KBv+KC(KA)2+(KB)2=(KA)2+(KB)24


K(Au+Bv+C)K(A)2+(B)2=K(A)2+(B)24


If (A2+B2==1), Au+Bv+C=K4.


Consider the line 35x+45y+4=0 and the point (7,4).


35(7)+45(4)+4=5=K4. K=20.


If the equation of the line is expressed as 20(35x+45y+4)=12x+16y+80=0,

the equation makes sense, but the LHS doesn't change.


LHS=12(7)+16(4)+80122+162=8464+8020=10020=5; RHS=204=5.


 LHS=RHS=5, the distance from point (7,4) to the line as calculated above with equation 35x+45y+4=0.


Calculation of the equation of the line equidistant from points (7,4),(1,12) initially produces: 12x+16y+80=0. Calculation of the equation of the line equidistant from points (10,0),(2,16) initially produces: 24x+32y+160=0.


Go to top of this section "Line as locus of point."

Go to top of first section "Line in Cartesian Geometry."

Go to top of page ["Line (Geometry)."]

Normal form of line



File:20170616 Normal form of line 00.png
Figure 1. Graph illustrating normal form of straight line.
XON= ω.
x cos ω + y sin ω  p=0.
At point N: 12(35)+16(45)=20=p.

See Figure 1. The green line through point N has equation y=34x+25 or 35x+45y20=0.


The normal ON to the line from the origin has length p=20.


Let XON= ω. cos ω =35. sin ω =45.


The normal ON to the line is in the quadrant where cosine (35) is negative and sine (45) is positive.


The normal form of the equation is x cos ω + y sin ω  p=0 or x(35)+y(45)20=0.

This puts the origin on the negative side of the line.


Directed distance from line to origin =NO=p=20. Directed distance from origin to line =ON=p=20.


Components of the normal form


File:20170618 point on line 00.png
Figure 2. Composition of normal form with point P on line.
OD=x cos ω; DN=y sin ω.
OD+DN=ON=p.


See Figure 2. This example shows line 35x+45y20=0 with point P on the line.


The normal to the line is in the quadrant where cosine (0.6) is positive and sine (0.8) is positive.


XON= ω = EXP.


cos ω =35; sin ω =45. ON is the normal with length p=20. Point P has coordinates (20,10).


OX=x=20. ODOX=cos ω =ODx; OD=x cos ω =20(35)=12.


XP=y=10. EPXP=sin ω =EPy; EP=y sin ω =10(45)=8.


DN=EP=8.


OD+DN=12+8=20=p. The point P is on the line.


File:20170618 point not on line 02.png
Figure 3. Composition of normal form with point P not on line.
OD=x cos ω; DP1=y sin ω.
OP1=OD+DP1=10.5.
Points P,P1 are 9.5 from green line through N.

See Figure 3. This example shows line 35x45y20=0 with point P not on the line.


The normal to the line is in the quadrant where cosine (0.6) is positive and sine (0.8) is negative.

XON= ω.

cos ω =35; sin ω =45. ON is the normal with length p=20. Point P has coordinates (27.5,7.5).

OX=x=27.5. ODOX=cos ω =ODx; OD=x cos ω =27.5(35)=16.5.


DP1=XE=y sin ω =(7.5)(45)=6. The negative value for DP1 establishes direction towards the origin.


OP1=OD+DP1=16.5+(6)=10.5. The points P,P1 are 10.520=9.5 from the line indicating 9.5 units toward the origin.


Normal form in practice




File:20170617 Lines in normal form 00.png
Figure 4. Three lines in normal form.

See Figure 4. The green line has equation 35x+45y20=0 and point C (20,10) is on the line.

The brown line has equation 35x+45y10=0 and point D (6,17) is on the line.

The brown and green lines are in the quadrant where cosine (35) is negative and sine (45) is positive.


Distance from brown line to origin =35(0)+45(0)10=10.

Distance from green line to origin =20.


Distance from green line to point D (6,17) =35(6)+45(17)20=185+68520=50520=10, toward the origin.

Distance from brown line to point C (20,10)=35(20)+45(10)10=12+810=10, away from the origin.


Distance from green line to brown line =20(10)=10, toward the origin.

Distance from brown line to green line =10(20)=10, away from the origin.


The purple line has equation 35x45y10=0 and point E (6,8) is on the line. The purple line is in the quadrant where cosine (35) is positive and sine (45) is negative. The purple and brown lines are parallel, but in opposite quadrants.

Distance from brown line to point E (6,8)=35(6)+45(8)10=18532510=50510=20, toward the origin.

Distance from purple line to point D (6,17)=35(6)45(17)10=18568510=50510=20, toward the origin.

When calculating distance between brown and purple lines, it is important to see that they are in opposite quadrants. If direction is not important, you can say that the brown line has equation 35x45y+10=0, and the distance between them is 10(10)=20.


Go to top of this section "Normal form of line."

Go to top of first section "Line in Cartesian Geometry."

Go to top of page ["Line (Geometry)."]

Direction Numbers

File:20170704 direction numbers in 2 dimensions 00.png
Figure 1. Direction numbers.
[A1,B1]=[15,9].
[A2,B2]=[45,27].
Both sets of direction numbers are equivalent to [5,3].


See Figure 1.


The red line has x intercept (15,0) and y intercept (0,9). Slope of red line =900(15)=915=35.


Red line has equation y=35x+9. When x increases by 1, y increases by 35. The line has direction numbers [A,B]=[1,35] where A represents a change in x and B represents a corresponding change in y.


This section shows that the line may be defined using known points and direction numbers.


Consider the points Q:(5,12), R:(20,21). The value of x at R is the value of x at Q + (205=15). The change in x between Q,R is represented by arrow A1 with length 15. The value of y at R is the value of y at Q + (2112=9). The change in y between Q,R is represented by arrow B1 with length 9.


A1,B1 are the direction numbers of the red line at point Q.

The red line passes through point Q with direction numbers [A1,B1]=[15,9].


Consider the points R:(20,21), P:(25,6). A2=xPxR=2520=45; B2=yPyR=621=27.

The red line passes through point R with direction numbers [A2,B2]=[45,27].


The direction numbers [15,9],[45,27] for the red line are consistent because they represent a ratio, the slope of the line.


Given the point Q:(5,12) and direction numbers [A1,B1]=[15,9], the red line can be defined as (5,12),[15,9] and the equation of the red line is

y12x5=915=35; 5(y12)=3(x5); 5y60=3x15; 3x5y+45=0.


Given the point P:(25,6) and direction numbers [A2,B2]=[45,27], the red line can be defined as (25,6),[45,27] and the equation of the red line is

y(6)x(25)=2745=35; 5(y+6)=3(x+25); 5y+30=3x+75; 3x5y+45=0, the same as that calculated above.


For convenience, both sets of direction numbers [15,9],[45,27] can be expressed as [5,3].


The equation of the red line is given as: y=35x+9, hence direction numbers [A3,B3]=[1,35]=[5,3].


Direction numbers are valid only if the distance between the two points of reference is non-zero. Therefore, at least one of [A,B] must be non-zero.


Using direction numbers



1. Format of any point.

Given a line defined as (x1,y1),[A1,B1] any point on the line has format: (x1+KA1, y1+KB1). For example, if the red line in Figure 1 is defined as (5,12),[5,3], any point on the line is (5+5K,12+3K). If (K==6), the point is (25,6) or point P.


2. Normal to the line.

Refer to the section "Line as locus of a point" above. If the line has equation Ax+By+C=0, the normal to the line has direction numbers [A,B].


3. Point at specified distance.

Given a line defined as (x1,y1),[A1,B1] calculate the two points on the line at distance d from (x1,y1).

Let one point at distance d from (x1,y1) have coordinates (x1+KA1,y1+KB1).

Then d=(x1+KA1x1)2+(y1+KB1y1)2=(KA1)2+(KB1)2=±KA12+B12

K=±dA12+B12.

For example, given a line defined as (15,0),[5,3] calculate the two points on the line at distance d=334 from (15,0).

K=±33452+32=±33434=±3.


The points are: (15+3(5),0+3(3)), (153(5),03(3)) or (0,9), (30,9).


4. Point at intersection of two lines.

Let one line have equation Ax+By+C=0 and let the other be defined as (x1,y1),[A1,B1].

Any point on the second line has format (x1+KA1, y1+KB1). The point (x1+KA1, y1+KB1) satisfies the first equation. Therefore:

A(x1+KA1)+B(y1+KB1)+C=0

 Ax1+AKA1+By1+BKB1+C=0

 K(AA1+BB1)=(Ax1+By1+C)

K=(Ax1+By1+C)AA1+BB1.

If (AA1+BB1==0), the lines are parallel.


5. Angle between two lines.

File:20170707 angle between lines using direction numbers 00.png
Figure 2. Angle of intersection using direction numbers.
Line OP has direction numbers [A1,B1].
Line OQ has direction numbers [A2,B2].

See Figure 2.

Line OP has direction numbers [A1,B1].

Line OQ has direction numbers [A2,B2].

The aim is to calculate the angle between the two lines, α=POQ.


OP=A12+B12

OQ=A22+B22

PQ=(A1A2)2+(B1B2)2


Using the cosine rule a2=b2+c22bccosA,

PQ2=OP2+OQ22(OP)(OQ)cosα

2(OP)(OQ)cosα=OP2+OQ2PQ2=A12+B12+A22+B22(A122A1A2+A12+B122B1B2+B22)

cosα=2(A1A2+B1B2)2(OP)(OQ)=A1A2+B1B2A12+B12A22+B22


If A1A2+B1B2==0, cosα=0 and the lines are perpendicular.


if (B1A2==A1B2) B1=A1B2A2,

cosα=A1A2+(A1B2A2)B2A12+(A1B2A2)2A22+B22 =A1A2A2+A1B2B2A2A12A22+A12B22A22A22+B22 =A1A2A2+A1B2B2A12(A22+B22)A22+B22 =A1(A22+B22)±A1A22+B22A22+B22 =±A1(A22+B22)A1(A22+B22) =±1, α=0° or α=180° and the lines are parallel.


Go to top of this section "Direction Numbers."

Go to top of first section "Line in Cartesian Geometry."

Go to top of page ["Line (Geometry)."]

Direction Cosines

Let the line OQ have direction numbers [A,B]=[A2A22+B22,B2A22+B22].


The value A=A2A22+B22=A2OQ=cosQOX.

The value B=B2A22+B22=B2OQ=cosQOY.

A2+B2=1.


File:20170708 angle between lines using direction cosines 00.png
Figure 1. Angle of intersection using direction cosines.
OP=OQ=1. A12+B12=A22+B22=1.
All values [A1,B1], [A2,B2] are direction cosines.
cosα=A1A2+B1B2.

When a set of direction numbers [A,B] has A2+B2=1, the direction numbers are direction cosines. In Figure 1 OP=OQ=1. α=POQ. All values A1,B1,A2,B2 are direction cosines. From 5 above, cosα=A1A2+B1B2. This statement is equivalent to:


cos(POXQOX) =cosPOXcosQOX +sinPOXsinQOX or

cos(βδ)=cosβcosδ+sinβsinδ.


For example, two lines have direction numbers [1,1], [3,1]. Calculate the angle between them.

Convert to direction cosines: [22,22], [32,12].

cosα=A1A2+B1B2=64+24=cos15°.


If |cosα|==1, α=0° or 180°, and the lines are parallel.


If cosα==0, α=90° or 270°, and the lines are perpendicular.








1. cos(2α) using direction cosines


File:20170707 cos(half A) using direction cosines 01.png
Figure 2. Cos(2α) using direction cosines.
POX=QOX=α.
POQ=2POX=2α.
cosPOQ=cos(2α)=2A21.


In Figure 2 line OP has direction numbers [A,B], line OQ has direction numbers [A,B] and OP=OQ=1. The values A,B are direction cosines.


POX=QOX; POQ=2POX.


cosPOQ =AA+B(B) =AABB =AA(1AA) =2AA1.


This statement is equivalent to:

cos(2α)=2cos2(α)1 or cos(α2)=±cos(α)+12.












2. cos(3α) using direction cosines


File:20170710 cos(3A) using direction cosines 00.png
Figure 3. cos(3α) using direction cosines.
OP=OQ=OR=1.
All values [A1,B1], [A,B] are direction cosines
cos(3α)=4A33A.


See Figure 3.


Lines OP,OQ,OR are defined as (0,0),[A1,B1]; (0,0),[A,B]; (0,0),[A,B] respectively.

OP=OQ=OR=1.


POX=2QOX, therefore: A1=2AA1


sin(2α)=B1 =1A12 =1(2AA1)2 =1(4AAAA4AA+1) =4AA4AAAA =2A1AA=2AB

sin(2α)=2sinαcosα.


cos(3α)=cosPOR =A1A+B1(B) =(2AA1)A+2AB(B) =2AAAA2A(BB) =2AAAA2A(1AA) =2AAAA2A+2AAA =4A33A.


cos(3α)=4cos3α3cosα.


3. sin(αβ) using direction cosines


File:20170711 sin(a-b) using direction cosines 00.png
Figure 4. sin(α-β) using direction cosines.
OP=OQ=1.
All values [A1,B1], [A2,B2] are direction cosines
sin(αβ)=PR=A2B1B2A1.


See Figure 4.


Lines OP,OQ are defined as (0,0),[A1,B1]; (0,0),[A2,B2] respectively.

OP=OQ=1.


POX=α; QOX=β; POQ=αβ.


Line OQ has equation A2yB2x=0.


Point P has coordinates (A1,B1).


Length PR=A2B1B2A1 =sin(αβ) =sinαcosβcosαsinβ.




4. Bisect angle between lines using direction cosines


File:20170712 bisect angle between lines 00.png
Figure 5. Bisect an angle using direction cosines.
Line OQ bisects POR.
Line OQ has direction numbers [B2B1,A1A2].


See Figure 5. The aim is to produce line OQ, the bisector of POR.


Lines OP,OR are defined as (0,0),[A1,B1] and (0,0),[A2,B2] respectively.


Ensure that all values A1,B1,A2,B2 are direction cosines. At least one of A1,B1 and one of A2,B2 are non-zero.

Let line OQ have direction numbers [A,B].


POQ=QOR.

A1A+B1B=A2A+B2B.

B1BB2B=A2AA1A.

B(B1B2)=A(A2A1).

Slope of line OQ=BA=A2A1B1B2.

Let line OQ have direction numbers [A,B]=[B1B2, A2A1].


if A == 0 :  # B1 equals B2.

        if B == 0 :  # A1 equals A2.

                # Both lines are parallel and in same direction.

                # Three lines OP, OQ, OR are colinear.

                [A, B] = [A1, B1]

        else :  # A1 equals A2.

                [A, B] = [0, 1] # The Y axis.

elif B == 0 :  # A1 equals A2. B1 equals B2.

        [A, B] = [1, 0] # The X axis.

elif B2 == B1 :  # A2 equals A1.

        # The lines are parallel and in opposite directions.

       # [A, B] = [B1(B1), A1A1] = [2B1, 2A1]

        [A, B] = [B1, A1] # The normal to line OP or line OR.

else :

        root = A2+B2

        A = Aroot; B = Broot


cosQOX=A; sinQOX=B.


5. sin(α+β) using direction cosines.


File:20170713 sin(a+b) using direction cosines 00.png
Figure 6. sin(α+β) using direction cosines.
OP=OR=1.
cosα=A1; sinα=B1.
cosβ=A2; sinβ=B2.
cos(α+β)=A1A2B1B2.
sin(α+β)=B1A2+A1B2.


See Figure 6.


OP=OR=1.

Point Q has coordinates (A1A2,B1A2).

Line QP is defined as (A1A2,B1A2),[B1,A1]. Length QP=B2.

Point P has coordinates (x=A1A2+B2(B1),y=B1A2+B2A1).

cos(α+β)=x=cosαcosβsinαsinβ.

sin(α+β)=y=sinαcosβ+cosαsinβ.





Go to top of this section "Direction Cosines."

Go to top of first section "Line in Cartesian Geometry."

Go to top of page ["Line (Geometry)."]

Intercept form of Line



File:20170623 Line in intercept form 00.png
Figure 1. Intercept form of line.
Intercepts are (24,0), (0,16).
Green line has equation x24+y16=1.

The general equation of the straight line is: Ax+By+C=0 where at least one of A,B is non-zero.

The intercept form of the line requires that all of A,B,C be non-zero.


Ax+By+C=0

Ax+By=C

ACx+BCy=1

xC/A+yC/B=1


Ax+By+C=0

If (y==0) x=CA.

If (x==0) y=CB.


Let a=CA, b=CB. The line passes through the points (a,0),(0,b) where a is the x intercept and b is the y intercept.


The equation xC/A+yC/B=1 becomes xa+yb=1, the intercept form of the equation.


See Figure 1. In this example a=24, b=16.

The green line has equation x24+y16=1.


Go to top of this section "Intercept form of Line."

Go to top of first section "Line in Cartesian Geometry."

Go to top of page ["Line (Geometry)."]

Angle of Intersection

File:20170615 Intersection of 2 lines 00.png
Figure 1. Intersection of two Lines.
Given lines OJ,OK calculate JOK=JOXKOX.


See Figure 1.


Given line OJ with equation Ax+By+C=0 in which at least 1 of A,B is non-zero and line OK with equation Dx+Ey+F=0 in which at least 1 of D,E is non-zero, the aim is to calculate JOK.


Let line OJ have slope m1=AB and

Let line OK have slope m2=DE.


Using tan(AB)=tan(A)tan(B)1+tan(A)tan(B),


tan(JOK)=m1m21+m1m2=BDAEBE+AD which can never have the value 00.


If (BDAE==0), tan(JOK)=0, JOK=0 and the two lines are parallel. Also:

          BD=AE; DE=AB; m1=m2.


If (BE+AD==0), JOK=90° and the two lines are perpendicular. Also:

          If (BE==AD), BE=AD=0 and each line is parallel to an axis, else:

          AD=BE; ADBE=1; m1m2=ADBE. If BE is non-zero and m1m2==1, the lines are perpendicular.


Go to top of this section "Angle of Intersection."

Go to top of first section "Line in Cartesian Geometry."

Go to top of page ["Line (Geometry)."]

See also