this_time_i_will wrote:Testluv wrote:If x<0, then square root of (x^2) is (-1)*x or -x.
Can you please show, in detail ,how this works.
i was working on following lines:
for x<0 ,sq rt(x^2)=>sqrt (-1*x*x)=>x*sqrt(-1)...am stuck here..

|x| = sqrt(x^2) (this is how absolute value is defined)
Both the absolute value and the square root functions must be positive. Therefore:
If x>0, then both sqrt(x^2) and |x| are x;
and
if x<0, then both sqrt(x^2) and |x| are -x.
(if x<0, then because absolute value and square root operations must result in positive, |x| and sqrt(x^2) have to be -x; they can't yield x because x is negative)
________________
In this question, confusion may arise from wanting/having to diagram "-x" when x itself is negative. (We can't let "-x" be x since "-x" is positive and x is negative).
x is negative. But suppose there is a number, z. If z is positive and equal in absolute value to x, then z = -x or x = -z.
The question asks for sqrt(-x*|x|) or sqrt[(-1)*(x)*|x|]
Subbing "-z" into "x", the question becomes:
what is sqrt[(-1)*(-z)*|-z|]?
Because z is positive, clearly (-1)*(-z) is just z. Likewise |-z| is just z. Thus, we have:
sqrt(z*z)
which is just z
which is equal to -x.