# Determining the 3rd vertex of an Equilateral and Right angled isoceles triangle.

I am really having problems solving the following problems:

1. If $(x_1,y_1)$ and $(x_2,y_2)$ are the coordinates of the two vertices on the hypotenuse of a right angled isosceles triangle then the coordinates of the 3rd vertex are?
2. Similarly-If $(x_1,y_1)$ and $(x_2,y_2)$ are the coordinates of the two vertices of an Equilateral Triangle then the coordinates of the 3rd vertex are?

The answer to 1 and 2 respectively are-

$$\left(\frac{x_1+x_2 \pm(y_1-y_2)}{2},\frac{y_1+y_2 \pm(x_1-x_2)}{2}\right)$$

And

$$\left(\frac{x_1+x_2 \pm\sqrt 3(y_1-y_2)}{2},\frac{y_1+y_2 \pm\sqrt 3(x_1-x_2)}{2}\right)$$

How do I solve this problem?

I tried attempting it by using the fact that the triangle is isosceles and right angled in the first case. So I applied pythagoras theorem but failed to get this answer it was a complicated equation. Secondly I tried multiplying the slopes of the legs of the triangle to get -1 but even this attempt failed.

It was similar with the equilateral triangle problem.

I guess if I understand how to do even one easily the second should bit be difficult.

• Do the consecutive + and - stand for plus-minus? And are you familiar with complex numbers? – G-man Apr 1 '15 at 20:09
• Yes they do.. Plus or minus.. Yes i am familiar – Jai Mahajan Apr 1 '15 at 20:13
• I suggested an edit. Did I screw up anything? – G-man Apr 1 '15 at 20:25
• Just the brackets now it fine.. The whole thing is divided by 2 – Jai Mahajan Apr 1 '15 at 20:26
• CAN this question be done Without Rotation or complex nos using simple pythogoras theorem or distance formula maybe? – Jai Mahajan Apr 2 '15 at 8:59

Consider the fact that if P(x,y) is the unknown point, then when you apply rotation around that point, the point P1(x1, y1) goes to (gets mapped to) P2(x2,y2). From this you can construct equations and solve them to get the x and y. Just lookup the formulas for rotation in the 2D plane. The rotation angles are nice in both cases: 90 and 60 degrees. If you do this, you should get the answers you have posted here.

Say you rotate the point (x1,y1) around the point (a,b) on an angle of $\theta$.
Then the point (x1,y1) gets mapped to (x2, y2) where:
$x_2 = (x_1-a) * cos(\theta) - (y_1-b) * sin(\theta) + a$
$y_2 = (x_1-a) * sin(\theta) + (y_1-b) * cos(\theta) + b$

In your case you don't know the $a$ and $b$, you want to find them. The $\theta$ is $\pm \pi/2$ and $\pm \pi/3$ respectively. The $x_1, y_1, x_2, y_2$ - these you know.

Here is how one can solve the case: $\pi/3$. You have 3 more cases to solve.