To learn, in general, how to work with partial fractions, tryhere. Then, since you haven't been able to start either of these, I'll give you the beginning:

The denominators are (x^2 + 1), (x + 2), and (x + 2)^2. So:

. . . . .

Multiplying through gives:

. . . . .

Letting x = -2 gives:

. . . . .

Use this to find the value of D. Then pick three other values for x to solve for the values of A, B, and C.

The factors in the denominators will be x, (x + 1), and (x + 1)^2. So use the standard set-up:

. . . . .

Multiplying through gives:

. . . . .

Obvious values for x include x = 0 (which will give you the value of A) and x = -1 (which will give you the value of C).

If you get stuck, please reply showing how far you have gotten. Thank you!