Solution:
Concept: A sum or difference of two cubes always has the sum or difference of the two numbers as a factor. The three Pythagorean identities hold for every angle A where the ratios exist: sin2A+cos2A=1, 1+tan2A=sec2A and 1+cot2A=cosec2A. Each can be rearranged, for example sec2A−tan2A=1 or 1−sin2A=cos2A.
Step 1 — Recall the cube formulas.
A sum and a difference of two cubes factorise as follows:
a3+b3=(a+b)(a2−ab+b2)
a3−b3=(a−b)(a2+ab+b2)
Step 2 — Simplify the first fraction.
With cosA as a and sinA as b, the numerator cos3A+sin3A has the factor cosA+sinA, which cancels with the denominator:
cosA+sinAcos3A+sin3A=cosA+sinA(cosA+sinA)(cos2A−cosAsinA+sin2A)=1−cosAsinA
In the last line we used cos2A+sin2A=1.
Step 3 — Simplify the second fraction.
In the same way, cos3A−sin3A has the factor cosA−sinA:
cosA−sinAcos3A−sin3A=cosA−sinA(cosA−sinA)(cos2A+cosAsinA+sin2A)=1+cosAsinA
Step 4 — Add the two results.
The LHS is the sum of the two fractions, and the terms −cosAsinA and +cosAsinA cancel:
LHS=(1−cosAsinA)+(1+cosAsinA)=2
This is the RHS.
Watch out: In a3+b3 the bracket is a2−ab+b2 (minus), and in a3−b3 it is a2+ab+b2 (plus).
Therefore, LHS = RHS, so cosA+sinAcos3A+sin3A+cosA−sinAcos3A−sin3A=2. Hence proved.