The square of a + 2A + 2, when a = has a minimum I want the process detailed

The square of a + 2A + 2, when a = has a minimum I want the process detailed

a^2+2a+2=(a+1)^2+1
a+1=0,a=-1