Heres something Ive always found interesting. Supose we have a variable $x$, and $x$ equals a negative number:
Say:
$$x=-17$$
Now, I can apply a square to both sides of the equation and preserve the equality:
$$x^2=(-17)^2$$
Now I can apply the square root (or a power of $1/2$) to both sides and preserve the equality:
$$√x^2=√(-17)^2$$
Now here comes the thing that confuses me. If I go the algebraic way, the square root cancells the square, and we are back to:
$$x=-17$$
However if I first apply the square to -17 :
$$√x^2=√289$$
$$x=±17$$
Or if I take only the positive value : $|x|=17$
So you get 2 solutions for x depending on the order of the steps taken
So my question is this, which step should be taken first?
Secondary related question:
Take for instance a complex function with no imaginary part, say:
$$F(w)=-\sin(wT)$$
To take the magnitude of $F(w)$ I have to take the absolute value, or the square root of the square of the real part plus the square of the imaginary part.
Since there is no imaginary part:
$$|F(w)|=√-\sin(wT)^2+0^2$$
So which one of this is the correct answer?
$$|F(w)|=-\sin(wT)\text{ or }|F(w)|=|\sin(wT)|$$