The Square Root of a Perfect Square with Domain Restrictions