Each exterior angle of the octagon = 360 / 8 = 45°
We can constuct 2 isosceles right triangles....one at the bottom right and one at the bottom left
The one at the bottom right has a hypotenuse of 4
So the legs are 4/sqrt (2)
The one at the bottom left has a hypotenuse of 2
So the legs are 2/sqrt (2)
And by symmetry, we can constuct the same triangles at the top left = the one at the bottom right and at the top right = the one at the bottom left
This forms a rectangle with sides of 1 + 4/sqrt 2 + 2/sqrt/ 2 = 1 + 6/sqrt 2
And 3 + 4sqrt (2) + 2/sqrt 2 = 3 + 6/sqrt 2
The area of this rectangle = (1 + 6/sqrt 2) ( 3 + 6/sqrt 2) = 3 + 24/sqrt 2 + 18 = 21 + 24/sqrt 2 = 21 + 12sqrt (2)
From this we must subtract the areas of the 4 isosceles triangles
These are equal to (4/sqrt2)^2 + (2/sqrt 2)^2 = 8 + 2 = 10
So....the total area of the octagon = 21 + 12sqrt (2) - 10 = 11 + 12sqrt (2)