A square root of a number #x# is a number #y# such that #y^2 = x#.
Any non-zero number #x# has two square roots, which we write as #sqrt(x)# and #-sqrt(x)#. The principal square root is #sqrt(x)#.
If #x# is positive then #sqrt(x)# is the positive square root and #-sqrt(x)# the negative one.
If #x = t^2# for some number #t# then the square roots of #x# are #t# and #-t#.
Hence we find that the square roots of #(a+2)^2# are #(a+2)# and #-(a+2)#.
Which of #(a+2)# and #-(a+2)# is the principal, non-negative one? Whichever is positive, or if zero, then they are both the same.
We can automatically choose between the two using the absolute value and write:
#sqrt((a+2)^2) = abs(a+2)#