mathschallenge.net logo

Inscribed Square

Problem

A square is inscribed in a right angled triangle with the given dimensions.

Find the side length of the square in terms of a and b.

Because JavaScript has been disabled in your browser the solutions will show by default.

Solution

Consider the following diagram.

As the two marked angles are corresponding we can deduce that the two triangles are similar.

$$\begin{eqnarray}\begin{eqnarray}\dfrac{a}{b} & = & \dfrac{x}{b-x}\\\therefore a(b-x) & = & bx\\ab - ax & = & bx\\ab & = & ab + bx\\& = & x(a + b)\\\therefore x & = & \dfrac{ab}{a+b}\end{eqnarray} && \textstyle{     OR     } &\begin{eqnarray}\dfrac{a-x}{x} & = & \dfrac{x}{b-x}\\\therefore (a-x)(b-x) & = & x^2\\ab - (a + b)x + x^2 & = & x^2\\(a + b)x & = & ab\\\therefore x & = & \dfrac{ab}{a+b}\end{eqnarray}\\\end{eqnarray}$$
Problem ID: 368 (30 Nov 2009)     Difficulty: 2 Star