Find the intervals of increase and decrease for the given function:

f(x)=x^2 - 4x + 5

the book has the answer:

f(x) is increasing for x>2;f(x) is decreasing for -1<x<1

I would just like to know how the got the answer step by step because the book does not give a great example. Thanks!