I have exams tomorrow. It would be really helpful if someone helps me. Thank You.
edit : i had tried using the UV rule of integration. but that was getting really lengthy and didn't get any definitive answer. I also tried breaking them down and doing the integration. Again, it was lengthy and the attached image had it done in just one line. So, I came here just to clear this up. Also, I forgot about the formula that the accepted answer mentioned.