Your substitutions seem to be the way to go for the first one. I hope you know those expressions for sin and cos actually come about from t= tan(x/2)?
Therefore by the chain rule, [itex]dt=\frac{1}{2} \sec^2 (x/2) dx[/itex].
Then we use the Pythatgorean Identities to reduce sec^2 to tan^2 +1.
[tex]dt = \frac{1}{2} (\tan^2 (x/2) +1 ) dx = \frac{1}{2} (t^2 +1) dx[/tex]
Getting dx alone yields [tex]\frac{2 dt}{t^2+1} = dx[/tex] which unfortunately is not what you had. So try it with that correction.
For the second one, in partial fractions the numerator always has to be 1 degree less than the denominator. I sure you knew that because for the first partial fraction you put Ax+b over 1+x^2. The second partial fraction has degree 4, so instead of putting cx+d, try cx^3+dx^2+e^x+f .