(tan²(<em>θ</em>) cos²(<em>θ</em>) - 1) / (1 + cos(2<em>θ</em>))
Recall that
tan(<em>θ</em>) = sin(<em>θ</em>) / cos(<em>θ</em>)
so cos²(<em>θ</em>) cancels with the cos²(<em>θ</em>) in the tan²(<em>θ</em>) term:
(sin²(<em>θ</em>) - 1) / (1 + cos(2<em>θ</em>))
Recall the double angle identity for cosine,
cos(2<em>θ</em>) = 2 cos²(<em>θ</em>) - 1
so the 1 in the denominator also vanishes:
(sin²(<em>θ</em>) - 1) / (2 cos²(<em>θ</em>))
Recall the Pythagorean identity,
cos²(<em>θ</em>) + sin²(<em>θ</em>) = 1
which means
sin²(<em>θ</em>) - 1 = -cos²(<em>θ</em>):
-cos²(<em>θ</em>) / (2 cos²(<em>θ</em>))
Cancel the cos²(<em>θ</em>) terms to end up with
(tan²(<em>θ</em>) cos²(<em>θ</em>) - 1) / (1 + cos(2<em>θ</em>)) = -1/2
Check the picture below.
so... you can pretty much see how long RS and QT are, you can just count the units off the grid.
now, let's find QR's length

and let's also find the length for ST

so, add the lengths of all sides, and that's the perimeter of the trapezoid.
Side a is 13 when using the pythagorean theorem
a^2 + b^2 = c^2
5^2 + 12^2 = c^2
25 + 144 = c^2
c^2 = 169
c = 13