In the book Mastering Bitcoin there is a chapter about private keys, public keys and addresses