Angle DAB+ Angle CBA= Angle GAB+ Angle GBA=90 degrees. If the triangle GAB is an isosceles right triangle, then the triangle AEG is also an isosceles right triangle, and the similarity ratio in the second question is GA:GE=AD:EF= root number 2.
Answer by mobile phone, hope to adopt.