If you're taking math, physics or chemistry, you have to do it. Here's how to memorize any formula.
Calm down. You'll get this.
Write the formula down several times on a piece of paper.
Close your eyes and try to say the formula out loud.
Make a mental picture of the formula. Most formulas, especially the quadratic equation, have a distinctive shape that you can remember like you'd remember a picture.
Work several practice problems using the formula. Application always helps with memorization.
Group the formulas you've learned into lessons. One group for a particular chapter, and another group for a different one. It's kind of like a filing system for your brain.