The above poster explained it well, remember the following too:
-Decide which form the partial fraction will take. Write out the constants/form next to the original sum and form a common denominator that matches the original fraction. You can then solve.
-Always factorise the bottom of the fraction first if at all possible.
-If the degree of the denominator is greater than the degree (highest coefficient of x) of the numerator this is an improper fraction and first you need to divide by the numerator, ie polynomial long division. Any remainder stays over the original denominator, the value you get from dividing can be written cleanly and seperately, without any denominator. The remainder may then be simplified into further partial fractions if applicable.
A few examples:
Linear factors in the denominator:
Eg:
(4x^3 + 2x^2 + 3x + 5) / (x+1) (x-2) would take the form A/(x+1), B(x-2)
Thus, A(x-2) + B(x+1) would = (4x^3 + 2x^2 + 3x + 5)
You can first let x = -1 to find A, then let x = 2 to find B.
Quadratic factors in the denominator:
Eg:
(x^2 - 5x + 1)/ (x^2 +1)(x-2) would take the form, (Ax+b)/(x^2 +1) + C(x-2)
Hence, (Ax+b)(x-2) + C(x^2 +1) = (x^2 - 5x + 1)
You could first let x =2, to find the value of C.
You would then substitute in the value of C and multiply out before equating the coefficients. A simultaneous equation may occur but this is easily solved.
Repeated factors in the denominator:
Eg:
2(x^2 - 2x - 1)/ (x+1) (x-1)^2 would take the form A/(x+1) + B/(x-1) + C/(x-1)^2
You can then solve as normal.
Hope this helps.