See attached for the first answer.
For the second one, apply u-substitution as shown step by step at:
There was a discrepancy in class as to the correct indefinate integral of secant between these 2 below. My teacher actually thinks both them are correct, but i honestly have no idea how. Could anyone help point out how they are both can be right?