Sir, this is Bernoulli's formula for integration by parts ... This is in our Xl school book ..
you can use it, but jee mains is based on syllabus of ncert. still, it is fine to use this formula, because jee doesn't ask you steps of the question.