Query about Question 4 from "PrepSwift: Two Nasty Exponent Mistakes" [4015]

Link: https://www.gregmat.com/quizzes/quiz/prepswift-two-nasty-exponent-mistakes (Question 4)

write your question here…y=root of *x^*2​ is equivalent to y=∣x∣. why does this need a absolute sign? Isn’t y = always positive, even when x is negative…?

\sqrt{({\color{red}-3})^2} = \color{green}3

The red and green have to match for the expressions to be equivalent. You can imagine multiplying the green value by -1 to make them match. Generalizing this for all negative numbers, you get the following:

\sqrt{({\color{red}-x})^2} = -\color{green}x

For non-negative inputs, you can see that no adjustments are needed.

\sqrt{({\color{red}5})^2} = \color{green}5

Generalizing this for all non-negative numbers yields the following:

\sqrt{({\color{red}x})^2} = \color{green}x

In other words:

\sqrt{x^2} = \begin{cases} -x & \text{if } x < 0 \\ x & \text{if } x \geq 0 \end{cases}

As you can see, this matches what you know about f(x) = |x|, so it’s fair to say these two are equivalent for all real x.

Does this also apply to root of (a+b)^2?

Yes, you can just define x = a + b.

\sqrt{(a + b)^2} = | a + b | = \begin{cases} -(a + b) & \text{if } a + b < 0\\ a + b & \text{if } a + b \geq 0 \end{cases}

Thanks!