I totally don't understand factoring, especially this task

factor x^2 - 1

x^{2}-1

Write it in general form:

(a^{2}-b^{2})=(a-b)(a+b)

and you will get

(x^{2}-1)=(x-1)(x+1)

Have a nice day!