When you do consult a manual, don't just copy. Close the book and try to reproduce the entire derivation from memory.