Using SU(2)-representation of fundamental groups of rational links we obtain a recursive formula for computation polynomial invariants of rational links and twist knots.