Useful mathematics (various notes)