Formula use:
a^3-b^3=\left(a-b\right)\left(a^2+ab+b^2\right)
Explanation
Given expression is: a^3-125
Factorize
a^3-125
\rightarrow a^3-5^3
\rightarrow\left(a-5\right)\left(a^2+5a+5^2\right)
\therefore\left(a-5\right)\left(a^2+5a+25\right)
Ans: \left(a-5\right)\left(a^2+5a+25\right)