Solution:
Concept: When the same bracket appears more than once, call it by one letter, p. The expression becomes a simple quadratic in p; we factorise that and then put the bracket back in place of p.
Sum and difference of two cubes: A3+B3=(A+B)(A2−AB+B2) and A3−B3=(A−B)(A2+AB+B2). The sign in the short bracket is the sign between the cubes, and the middle term AB of the long bracket has the opposite sign.
Step 1 — Write it as a quadratic in p.
Here a6 is (a3)2. Let p stand for a3.
a6−7a3−8=p2−7p−8
Step 2 — Factorise the quadratic.
We need two numbers whose product is −8 and whose sum is −7. They are −8 and 1, because their product is −8 and their sum is −7. So we write −7p as −8p+p.
p2−7p−8=p2−8p+p−8=p(p−8)+1(p−8)=(p−8)(p+1)
Step 3 — Put a3 back and use the cube identities.
The factors are a3−23 (difference of cubes) and a3+13 (sum of cubes).
a6−7a3−8=(a3−8)(a3+1)=(a−2)(a2+2a+4)(a+1)(a2−a+1)
Watch out: Note that a3+1 is a sum of cubes, so its long bracket is a2−a+1.
Therefore, a6−7a3−8=(a−2)(a+1)(a2+2a+4)(a2−a+1).