This is typically the type of subject where understanding can replace learning pretty easily.
I would suggest to be at ease with the rationale for each of them, best way to be safe.
Learning the formulas could actually lead to mistakes that understanding could avoid