I don't memorise that formula, but I'll show you a way to easily obtain it, to make the solution easier. I won't solve the whole thing for you, just the layout so you can try it and then learn it much more effectively (BTW, I'm really tired so there's a good chance I made a typo/wrong...