[Math] Condition for a point to lie inside a triangle

analytic geometrycoordinate systems

Given three lines $L_{1}\equiv a_1x+b_1y+c_1=0$ ,
$L_{2}\equiv a_2x+b_2y+c_2=0$, $L_{3}\equiv a_3x+b_3y+c_3=0$ where $c_1,c_2$ and $c_3$ are all positive.

Find the condition that the point $P\equiv(x_0,y_0)$ may lie inside the triangle formed by three given lines.

The answer given was $(a_1x_0+b_1y_0+c_1)(a_2x_0+b_0y+c_2)(a_3x_0+b_3y_0+c_3)<0$.

But I am not able to justify.

Best Answer

Hint: Observe that intersection point of 2 lines say $L_1,L_2$ lie on the same side of $L_3$ as point $P$ lies.
Repeating this for all combinations of lines gives the above result.