Moving cosφ across gives sinφ as a multiple of cosφ; multiplying by (2+1) turns it round to give cosφ as a multiple of sinφ, which is what we need.
Given:
cosφ+sinφ=2cosφ
Step 1 — Make sinφ the subject.
sinφ=2cosφ−cosφ=(2−1)cosφ
Step 2 — Multiply both sides by (2+1).
(2+1)sinφ=(2+1)(2−1)cosφ=(2−1)cosφ=cosφ
Step 3 — Expand the left-hand side.
cosφ=2sinφ+sinφ
Step 4 — Move sinφ to the left.
cosφ−sinφ=2sinφ
Hence proved.
Note: squaring both sides instead leads to (cosφ−sinφ)2=2sin2φ, which only gives cosφ−sinφ=±2sinφ; you would still have to argue which sign is right. The method above gives the result directly.