Note that

thus,

for the first integral, use the substitution,

for the second, complete the square of the denominator and simplify so you can get it in the form to get the arctan integral, that is, try to get it in the form of , where is a constant, and is a function of x. (it is easier than you think, try it)