Consider a square KLMN is which octagon ABCDEFGH is inscribed CD is hypothenses of ΔCLD=a side of octagon.
CL=LD=x
CC2HCD2=CD2
dx2=a2 or x=a√2
∴ Side of square = 2x + a
=√2a√2+a=a(1+√2)
Area of square =a2(1+√2)2
Area of octagon = Area of square −4×Area ofΔCLD
=a2(1+√2)2−4×12×x2=a2(1+√2)2−2a22=a2{(1+√2)2}=√2(d+√2)a2