I am currently at the subject factorisation and I have the following problem:
Fully factorize: $$ {x^2}-{a^2}+x+a $$
What I did was the following:
Create a common factor: $$ x({1^2}+1)-a(1^2-1) $$ But creating a common factor didn't work.
After a lot of guessing I got the correct answer: $$(x+a)(x-a+1)$$
My question is, is there any way of getting this answer without guessing a lot?
The first two terms are a difference of squares. This can be factored $x^2 - a^2 = (x+a)(x-a)$. Using this fact, we get:
$$\begin{align} {x^2}-{a^2}+x+a & = \color{blue}{(x+a)}(x-a) + \color{blue}{(x +a)} \\ \\ & = \color{blue}{(x+a)}((x-a) + 1)\\ \\ & = (x+a)(x-a+1)\end{align}$$