I was requested to find the derivative of $f(x)=\frac{x}{\sqrt{1-x^2}}$. When I was working on this, I found an expression of the form $\sqrt{1-x^2}^2$, which I translate to $|1-x^2|$. My calculus teacher is very insistent on the fact that $\sqrt{x}^2=|x|$, and I understand the reason of this result. Nevertheless, when I found the derivative, I used Symbolab to check if my answer was right, and noticed that it ignored the absolute value, and simply stated that $\sqrt{1-x^2}^2=1-x^2$. I can't find a mathematical reason for this result, which of course leads to a different derivative function. Is Symbolab wrong, or am I? This is how I found the derivative.
$f'(x)=\frac{\sqrt{1-x^2}+\frac{x^2}{\sqrt{1-x^2}}}{\sqrt{1-x^2}^2}$.
I skipped the previous steps because aren't relevant; up to this point, Symbolab and I agree. But I take the following course of action: let $u=1-x^2$.
$f'(x)=\frac{\sqrt{u}+\frac{x^2}{\sqrt{u}}}{|u|}=\frac{|u|+x^2}{\sqrt{u}|u|}$.
Symbolab, on the other hand, by getting simply $u$ each time I got $|u|$, gets
$f'(x)=\frac{1}{\sqrt{u}*u}$
Which is the right answer?
Your function is only defined when $1-x^2 >0$. Therefore, on the domain of $f(x)$, it is always the case that $\sqrt{1-x^2}^2 = 1-x^2$. Also notice that the result of Symbolab is only defined when $1-x^2>0$, so your derivative and Symbolab's derivative are exactly the same.