document.write( "Question 1209347: We cut a regular octagon ABCDEFGH out of a piece of cardboard. If $AB = 1$, then what is the area of the octagon?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #848577 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Draw a segment from the center to each vertex of the octagon.
\n" ); document.write( "It will produce 8 pizza slices so to speak.\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "Each pizza slice is an isosceles triangle with an apex angle of 360/8 = 45 degrees\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's zoom in on one of the pizza slices.
\n" ); document.write( "I'll draw a line to split this slice into two mirror halves.
\n" ); document.write( "This splits the 45 degree angle into 45/2 = 22.5 degrees.
\n" ); document.write( "
\n" ); document.write( "h = unknown height of this pizza slice
\n" ); document.write( "h = apothem of the octagon
\n" ); document.write( "The side length of the octagon has been split in half to 1/2 = 0.5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "tan(angle) = opposite/adjacent
\n" ); document.write( "tan(22.5) = 0.5/h
\n" ); document.write( "h*tan(22.5) = 0.5
\n" ); document.write( "h = 0.5/tan(22.5)
\n" ); document.write( "h = 1.207106781187 approximately
\n" ); document.write( "Please make sure that your calculator is set to degrees mode.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The area of each of the original slices would be
\n" ); document.write( "area = 0.5*base*height
\n" ); document.write( "area = 0.5*1*1.207106781187
\n" ); document.write( "area = 0.603553390593
\n" ); document.write( "8 times of which leads to a total area of 8*0.603553390593 = 4.828427125 which is approximate.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Another approach would be to use this formula
\n" ); document.write( "Area = 0.25*s^2*n*cot(180/n)
\n" ); document.write( "where \"cot\" represents \"cotangent\". Recall that cot = 1/tan
\n" ); document.write( "s = side length
\n" ); document.write( "n = number of sides\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If we use this formula then we'll have s = 1 and n = 8
\n" ); document.write( "Area = 0.25*s^2*n*cot(180/n)
\n" ); document.write( "Area = 0.25*1^2*8*cot(180/8)
\n" ); document.write( "Area = 2*cot(22.5)
\n" ); document.write( "Area = 2*1/tan(22.5)
\n" ); document.write( "Area = 4.828427125\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Edit: after greenestamps made his post I realize that tan(22.5) can be determined exactly in terms of radicals.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Use the identity \"tan%28theta%2F2%29+=+%22%22%2B-sqrt%28+%281-cos%28theta%29%29%2F%281%2Bcos%28theta%29%29%29\" to determine that \"tan%2845%2F2%29+=+sqrt%28+%281-cos%2845%29%29%2F%281%2Bcos%2845%29%29%29\"
\n" ); document.write( "Note that tan(22.5) is positive so we ignore the minus outside the root.
\n" ); document.write( "After simplification you should get \"tan%2822.5%29+=+-1%2Bsqrt%282%29\" which leads to \"cot%2822.5%29+=+1%2Bsqrt%282%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So, area = 2*cot(22.5) = 2*(1+sqrt(2)) = 1+2*sqrt(2)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Exact Answer: 2+2*sqrt(2) square units
\n" ); document.write( "Approximate Answer: 4.828427125 square units
\n" ); document.write( "
\n" ); document.write( "
\n" );