limit(x to pie/2) -(x - pie/2) tanx

the limit is +1 but I don't get the answer. I applied product rule once but can't reach the answer.