This question was asked in Example 11
Sir your solution have some minor mistake in exampe 11 chapter 6 of class 12th maths . Thank you 
sachin baliyan's image