The general form of the equation of the angle bisector of two lines : $$ \begin{align}L_1 &=a_1x+b_1y+ c_1=0 \\L_2 &= a_2x+b_2y+ c_2=0 \end{align}$$ Given as: $$\dfrac{a_1x+b_1y+c_1}{\sqrt{a_1^2+b_1^2}}= \pm\dfrac{a_2x+b_2y+c_2}{\sqrt{a_2^2+b_2^2}}$$
Now, we have a point $(\alpha, \beta)$ lying in one of the angles between these two.
I have been instructed to do as follows:
- Find the sign of the expression of $L_1$ and $L_2$.
- If they are opposite then, choose the negative sign from the general form otherwise choose the positive
but I want to know this method's proof for better understanding. Or, if there's an alternate/ better method to deal with it, please let me know (with proof).
I'd use other method (for lines $y+ax+b=0$).
$L: y+ax+b=0$ creates with ox axis the angle $\alpha$, then $$\sin\alpha=\frac{a}{\sqrt{1+a^2}}\\ \cos\alpha=\frac{1}{\sqrt{1+a^2}}$$
If two lines $L_1, L_2$ are not paralel ($a_1\neq a_2$), we can compute their intersection point $(x_0, y_0)$
The angle between $L_1$ and $L_2$ is $\beta=\frac{\alpha_1+\alpha_2}{2}$
Thus:
Now all we need is to insert our intersection point into adequate form of $L_3$ to compute $b_3$.
Edit: In case when one of the lines is in form $L=ax+b$:
We have $\sin\alpha=0$, $\cos\alpha=1$ and $\alpha=0$
Lines are paralel, if both are in this form.
If not, computation of $\tan\beta$ gives us different value (for $L_1:a_1x+b$): $$\tan\beta=\frac{a_2}{\sqrt{1+a_2^2}-1}$$