# Area of Square in 3-4-5 Triangle

Problem Definition



	A right triangle $ABC$ has sides $AC = 3$, $BC = 4$ and $AB = 5$. A square $DEFG$ is inscribed in the
	triangle so that its side $DE$ lies along the hypotenuse $AB$, while the vertices $F$ and $G$ touch the legs
	$BC$ and $AC$. What is the area of the square?




  
  
  
  A
  B
  C
  D
  E
  F
  G
  3
  4
  5

Solution



	Unlike the more familiar square with a corner at the right angle, this square rests on the hypotenuse.
	The triangle is cut into three pieces: the square, and two small right triangles that are both similar to the
	original $3$-$4$-$5$ triangle. That similarity is all we need, and there are two neat ways to use it.



Method 1: Two Small Triangles on the Hypotenuse



	Let $s$ be the side of the square, and let $\alpha = \angle A$ and $\beta = \angle B$. In the original triangle,
	$\tan\alpha = \frac{BC}{AC} = \frac{4}{3}$ and $\tan\beta = \frac{AC}{BC} = \frac{3}{4}$,
	with $\alpha + \beta = 90^\circ$.




  
  
  
  
  
  
  
  
  A
  B
  C
  D
  E
  F
  G
  α
  α
  α
  β
  β
  β
  s
  s
  s
  s
  3s/4
  4s/3
  3
  4
  5


	The triangle $ADG$ has a right angle at $D$, the angle $\alpha$ at $A$, and the leg $DG = s$. Therefore




$$AD = \frac{DG}{\tan\alpha} = \frac{s}{4/3} = \frac{3s}{4}$$


	In the same way the triangle $BEF$ has a right angle at $E$, the angle $\beta$ at $B$, and the leg $EF = s$:




$$EB = \frac{EF}{\tan\beta} = \frac{s}{3/4} = \frac{4s}{3}$$


	The hypotenuse is made up of the three segments $AD$, $DE$ and $EB$:




$$\frac{3s}{4} + s + \frac{4s}{3} = 5$$

$$\frac{9s + 12s + 16s}{12} = 5 \quad\Longrightarrow\quad \frac{37s}{12} = 5 \quad\Longrightarrow\quad s = \frac{60}{37}$$

Method 2: The Altitude



	A second route uses the altitude $CH$ from the right angle to the hypotenuse. Computing the area of the
	triangle in two ways, $\frac{1}{2} \cdot 3 \cdot 4 = \frac{1}{2} \cdot 5 \cdot h$, gives




$$h = \frac{12}{5}$$


	The side $GF$ of the square is parallel to $AB$, so the small triangle $CGF$ is similar to $CAB$, and their
	altitudes from $C$ are $h - s$ and $h$. Comparing corresponding lengths:




  
  
  
  
  
  
  
  A
  B
  C
  H
  K
  3
  4
  5
  h
  s
  h − s


$$\frac{GF}{AB} = \frac{h - s}{h} \quad\Longrightarrow\quad \frac{s}{5} = \frac{h - s}{h}$$


	Solving for $s$ gives the well-known formula




$$s = \frac{5h}{5 + h} = \frac{5 \cdot \frac{12}{5}}{5 + \frac{12}{5}} = \frac{12}{\frac{37}{5}} = \frac{60}{37}$$


	Both methods give the same side length.




The Result



	The area of the inscribed square is the square of its side:




$$\boxed{A = s^2 = \left(\frac{60}{37}\right)^2 = \frac{3600}{1369} \approx 2.63}$$


	For comparison, the square that sits in the right-angle corner of the same triangle has side
	$\frac{12}{7}$ and area $\frac{144}{49} \approx 2.94$, so resting the square on the hypotenuse gives
	a noticeably smaller one.
