Triangle bounded by three lines

We find the triangle bounded by the three lines y=xy = x, y=x+4y = -x + 4 and y=0y = 0.

Finding the vertices

Each vertex comes from solving a pair of the lines simultaneously. There are three ways to choose two lines out of three, and those give the three vertices.

Pair of lines solvedVertex
y=xy = x and y=0y = 0(0,0)(0, 0)
y=x+4y = -x + 4 and y=0y = 0(4,0)(4, 0)
y=xy = x and y=x+4y = -x + 4(2,2)(2, 2)

Area

Taking the base along the xx-axis gives length 44, and the height is the yy-coordinate 22 of the vertex (2,2)(2, 2), so the area is 12×4×2=4\dfrac{1}{2} \times 4 \times 2 = 4. The coordinate formula for the area confirms it.

120(02)+4(20)+2(00)=12×8=4\frac{1}{2}|0(0 - 2) + 4(2 - 0) + 2(0 - 0)| = \frac{1}{2} \times 8 = 4

It is a right isosceles triangle

This is no ordinary triangle. The line y=xy = x has slope 11 and y=x+4y = -x + 4 has slope 1-1, and the product is 1-1. The two lines therefore meet at a right angle, and the vertex (2,2)(2, 2) is the right angle.

Moreover the distance from (0,0)(0, 0) to (2,2)(2, 2) and the distance from (4,0)(4, 0) to (2,2)(2, 2) are both 22+22=22\sqrt{2^2 + 2^2} = 2\sqrt{2}, so the triangle is right isosceles. Computing the area as 12×22×22=4\dfrac{1}{2} \times 2\sqrt{2} \times 2\sqrt{2} = 4 gives the same value again.

When no triangle is formed

Three lines do not always bound a triangle.

  • No two of them may be parallel
  • The three must not pass through a single point

Only when both conditions hold is there a triangle. If two lines are parallel, that pair yields no vertex. If all three share one point, the three vertices collapse onto it and the triangle degenerates.

Replacing y=0y = 0 with y=2y = 2, for instance, makes all three lines pass through (2,2)(2, 2), and nothing is enclosed. The large dots on the graph are the three vertices.