# Area of Square From 3 External Distances

Problem Definition



	Point $E$ lies outside the square $ABCD$. Its distances to three of the vertices are
	$EA = 6$, $EB = 3$ and $EC = 5$. What is the area of the square?




  
  
  
  
  
  A
  D
  B
  C
  E
  6
  3
  5

Solution



	The distances are given from a single external point, but the side of the square is unknown.
	The key is to place the figure on a coordinate grid, so that each given distance becomes a
	Pythagorean relation, and then to eliminate the unknown offsets of the square.



Setting Up Coordinates



	Put $E$ at the origin, and let $x$ be the side length of the square. Let $B$ lie $a$ units to the
	right of and $b$ units above $E$. Since the sides of the square are parallel to the axes,
	the other vertices follow immediately:




	$B = (a,\, b)$


	$C = (a + x,\, b)$


	$A = (a,\, b + x)$


	$D = (a + x,\, b + x)$




  
  
  
  
  
  
  
  
  
  
  
  E
  A
  D
  B
  C
  3
  6
  5
  x
  x
  a
  x
  x
  b
  b
  a2 + b2 = 32
  (a + x)2 + b2 = 52
  a2 + (b + x)2 = 62


	Dropping perpendiculars from $A$, $B$ and $C$ to the horizontal line through $E$ creates three right
	triangles whose hypotenuses are the given distances $EA$, $EB$ and $EC$.




  
  
  
  E
  a
  b  +  x
  6
  
  
  
  E
  a
  b
  3
  
  
  
  E
  a  +  x
  b
  5

Three Pythagorean Equations



	Applying the Pythagorean theorem to the three triangles gives:




$$a^2 + b^2 = 3^2 = 9 \qquad (1)$$

$$(a + x)^2 + b^2 = 5^2 = 25 \qquad (2)$$

$$a^2 + (b + x)^2 = 6^2 = 36 \qquad (3)$$

Eliminating $a$ and $b$



	Subtracting equation $(1)$ from equation $(2)$ cancels $b^2$ and the $a^2$ term:




$$2ax + x^2 = 16 \quad\Longrightarrow\quad a = \frac{16 - x^2}{2x}$$


	Subtracting equation $(1)$ from equation $(3)$ cancels $a^2$ and the $b^2$ term:




$$2bx + x^2 = 27 \quad\Longrightarrow\quad b = \frac{27 - x^2}{2x}$$


	Now substitute both expressions into equation $(1)$:




$$\left(\frac{16 - x^2}{2x}\right)^2 + \left(\frac{27 - x^2}{2x}\right)^2 = 9$$


	Multiplying through by $4x^2$, and writing $t = x^2$ for the area we are after:




$$(16 - t)^2 + (27 - t)^2 = 36t$$

$$256 - 32t + t^2 + 729 - 54t + t^2 = 36t$$

$$2t^2 - 122t + 985 = 0$$

Solving for the Area



	This is a quadratic equation in $t$. Its discriminant is
	$122^2 - 4 \cdot 2 \cdot 985 = 7004 = 4 \cdot 1751$, so




$$t = \frac{122 \pm 2\sqrt{1751}}{4} = \frac{61 \pm \sqrt{1751}}{2}$$


	Two roots appear, but only one corresponds to an exterior point. For $E$ to sit below and to the left of
	the square, both $a$ and $b$ must be positive, which requires $x^2 < 16$. The larger root
	$t \approx 51.4$ gives negative values of $a$ and $b$ and places $E$ inside the square, so it is rejected.




The Result



$$\boxed{A_{ABCD} = x^2 = \frac{61 - \sqrt{1751}}{2} \approx 9.58}$$


	As a check, the side is $x \approx 3.095$, which gives $a \approx 1.038$ and $b \approx 2.815$. Then
	$a^2 + b^2 \approx 9$, $(a + x)^2 + b^2 \approx 25$ and $a^2 + (b + x)^2 \approx 36$, exactly as required.
	The answer is not a whole number, but it is exact: the three distances determine the square completely, and the
	whole problem collapses to one quadratic once the offsets $a$ and $b$ are eliminated.
