Prove the following identities: (sin x + sin 2x)/(1 + cos x + cos 2x) = tan x