I am trying to work out how to get from the integral below to the answer just below it.

with limits of pie and x

The answer is

After using the following intergrals

and

I get

however

1. I cannot rearange it to get the correct answer

2. If i substitute a value such as x = 180, my answer and the book's answer do not match?

Thanks in advance

Calypso