What is the safest way to learn the pattern of a past verb?

Three Past-Tense Patterns: فَعَلَ، فَعِلَ، فَعُلَ