This is a really basic question and to be honest I feel ashamed to be asking this when I'm in precalculus and trigonometry right now.
When I was younger, I was taught that $\sqrt{x^2}$ was equal to $\pm x$. However, during this course I've inputted the negative before but was told that it was wrong, and that instead it was only the positive solution, not the negative as well. I tried contacting the professor numerous times but they haven't responded in weeks so I figured I'd come to here. Any help would be greatly appreciated.