The one that you've done is perfect. That or we're both wrong.
With the second one, use the identity that ∫ (f'(x)/f(x))dx = ln f(x)
Yours is 3x/(x² + 4), so to get the numerator to be the differential of the denominator, you need to change it into 1.5(2x) and make the 1.5 a constant. 1.5∫ 2x/(x² + 4)dx = 1.5 ln (x² + 4), or ln (x² + 4)^1.5
As the integrating factor is e^f(x), the e and ln cancel out to leave you with (x² + 4)^1.5. I'll leave you to try the rest of it yourself, feel free to come back if you get stuck again.