Square divided by absolute value

332 Views Asked by At

First time posting on Math SE, with kind of a basic algebra question.

Question
Does the relation:

$$\dfrac{(ab)^2}{|ab|} = \left|ab\right|$$

with $a,b \in \mathbb{R_{\ne 0}}$ always hold?

It seems trivial to me, but Wolfram Alpha gives me a strange answer because it specifies that this is True assuming $a,b$ are positive.

Reasoning
No matter what sign $a,b$ have, we have that $(ab)^2 > 0$ and $\left|ab\right| > 0$. Thus their ratio is greater than zero, and the magnitude of that ratio is exactly $ab$ with a positive sign, so $\left|ab\right|$.

Is what I said correct? If so, is this question a completely useless one? Sorry for the occasionally bad English!

Edit: formatted equations as suggested by Frentos

2

There are 2 best solutions below

1
On BEST ANSWER

Your statement about Wolfram is not quite correct. It gives various alternate forms for this expression, two of which are:

  1. $ab$ assuming $a$ and $b$ are positive

  2. $ab\,sgn(a)\,sgn(b)$

(2) is equivalent to $|ab|$

See here

0
On

For real numbers this is always true because the square of a real number equals the square of its absolute value, and in particular $(ab)^2=|ab|^2.$ Perhaps Wolfram has reservations because it considers the possibility of complex numbers?