The short answer is that youYou should use as many dice as possible while defending (so always 2, unless you have one army). This
This problem has no doubt been tackled by hundreds of probability students over the years, and it is not hard to Google and find a complete calculation. A likely best source for your buck for this, and related questions, will be Ivars Peterson's MathTrek article here: