$$\eqalign{\mbox{Area of Square}&= (a+b)^2 \cr &= a^2+2ab+b^2}$$
$$\eqalign{\mbox{Area of Trapezium}&= \frac{1}{2}\times \mbox{Area of Square} \cr &=\frac{1}{2}\times(a^2+2ab+b^2) \cr &= \frac{a^2}{2} + ab + \frac{b^2}{2}}$$
I can also work out the area of the trapezium using the three right angled triangles:
$$\eqalign{\mbox{Area of three right angled triangles} &= \frac{ab}{2}+\frac{ab}{2}+\frac{c^2}{2} \cr &= ab + \frac{c^2}{2}} $$
I can equate the two expressions for the area of the trapezium and simplify:
$$\eqalign{\frac{a^2}{2} + ab + \frac{b^2}{2}&=ab + \frac{c^2}{2}\cr \Rightarrow \frac{a^2}{2}+\frac{b^2}{2} &= \frac{c^2}{2}}$$
Then multiplying both sides of the equation by $2$ gives $$a^2+b^2=c^2$$