The potion minigame follows the book recipe. General steps:
If stuck, search "Harry Potter Half-Blood Prince Wii Felix Felicis walkthrough" — video guides show exact Wiimote motions.