Questions tagged [absolute-value]

For questions about or involving the absolute value function also known as modulus function.

The absolute value function, usually denoted by $|x|$, is a function $\mathbb{R} \to [0, \infty)$ which can be defined in three equivalent ways:

  1. $|x| = \begin{cases}x &\ \text{if $x \ge 0$, and} \\ -x &\ \text{if $x < 0$.} \end{cases}$

  2. $|x| = \sqrt{x^2}$, and

  3. $|x| = \max \{x, -x\}$.

This definition extends to complex numbers as the square root of the norm: $|x+iy|=\sqrt{x^2+y^2}$. In both cases, the function may be interpreted geometrically as the distance of the input number from the origin.


More generally, an absolute value may be defined on an field (or integral domain) $k$ as a function $|\cdot | : k \to \mathbb{R}$ which satisfies the axioms

  1. (nonnegativity) $|x| \ge 0$ for all $x \in k$,

  2. (definiteness) $|x| = 0 \iff x = 0 \in k$,

  3. (multiplicativity) $|x y| = |x||y| $ for all $x,y\in k$ ), and

  4. (triangle inequality) $|x+y| \le |x| + |y|$ for all $x,y\in k$.

For example, if $p$ is a fixed prime number and $x \in \mathbb{Q}$, then there exists a unique $n \in \mathbb{Z}$ such that $x$ may be written as $$ x = p^n \frac{a}{b}, $$ where $\gcd(p, a) = \gcd(p, b) = 1$. The function which maps $x$ to $p^{-n}$ is an absolute value on $\mathbb{Q}$, called the $p$-adic absolute value.

3133 questions
1
vote
3 answers

How to simplify abs(x)/x

I've been trying to find a way to simplify $\frac{|x|}{x}$ if $x$ is real and $\neq{0}$. The two possible outcomes to this are $\pm{1}$ but I believe there is one required answer. I've noticed that if x is positive, we will have +1, and if x is…
Junlin Yi
  • 341
1
vote
2 answers

Restore the signum of abs(sinc(x))

Is it possible, by any means, to restore the signum of sinc(x) after being transformed to its absolute value, abs(sinc(x))? How it got to abs() is irrelevant, I only want to know if the reverse is possible.
1
vote
1 answer

Do modulus and absolute value operations use the same sign?

Do modulus and absolute value operations use the same sign? If so, do we always assume that a modulus is intended when the number is complex? If an expression says $|a+bi|$, this means I should interpret it as $\sqrt{a^2+b^2}$ and not…
ahorn
  • 2,236
1
vote
2 answers

Maximal distance between points on a line

Two points A and B are on different sides of a line. Find a point Y on the line such that the absolute value of the difference from Y to A and Y to B is maximal. My thoughts are as follows. Let's say that point Y is on a line but is not collinear…
mepinon
  • 189
  • 6
  • 14
1
vote
1 answer

Algebraic representation of an absolute value.

I tried several ways, but i could not come up with any way to have an equation as such: |n| = ... without using the absolute value signs on the right side of the equation. I do not know if there is any way... I tried using some form of n * i^(an +…
kukac67
  • 303
1
vote
1 answer

Evaluating Absolute Value Expression Within Ranges

I am trying to evaluate an absolute value expression but I am struggling to know whether to place a (+) or a (-) on each expression when evaluating each interval. For example, is there a quick method that can take a second to realize whether…
jessica
  • 1,002
1
vote
1 answer

Help with showing that $|x+y|=|x|+|y| \longleftrightarrow xy\ge0 $

I need to prove that $|x+y|=|x|+|y| \longleftrightarrow xy\ge0 $. I proved before that for any $x,y\in R$ holds $|x+y|\le|x+y|$ and I thought maybe it could help me with my arguments to show what I need. On the other hand if $xy\ge0$ then it means…
Yossi
  • 63
1
vote
2 answers

Number of solutions in different cases to a given equation

Consider an absolute value equation for $a, b\in \mathbb{R}$ and $c\in \mathbb{N}$, $$|x+a|+|x+b| = |c|$$ What can be said about the number of solutions to this equation? If $x+a<0$ and $x+b>0$, the equation holds for every $x\in \mathbb{R}$ if and…
user1270647
1
vote
1 answer

Determine solutions for an absolute value equation

I have 2 euqations that looks very similar, and here are my stpes: First one: $$ \begin{eqnarray} 3|x-1|-2 & = & 10 \\ 3|x-1| & = & 12 \\ |x-1| & = & 4 \\ x-1 & = & \pm4 \end{eqnarray} $$ Second one: $$ \begin{eqnarray} |x+1|-5 & = & 3x \\ |x+1| & =…
1
vote
2 answers

Why is $|-x|=-x$ if $x<0$?

Here is the question: If $x < 0$, then what should $|-x|$ be equal to? From my understanding, everything within the brackets should equate to a non-negative value. Which means no matter what number $x$ is, $|-x|$ should always be equal to a…
1
vote
1 answer

doubt with absolute value

Assume a function $$f(x,y) = 2\vert x \vert + 2\vert y\vert - \vert x-y \vert - \vert x+y \vert$$ If $x>y$ then $f(x,y) = 2y$, If $xy$ then for $x>0$, $$f(x,y) = 2x + 2y -x + y -x - y = 2y …
1
vote
1 answer

Dealing with the abs operator in basic algebra

Really basic question here, but my maths is really rusty. These things I know: $$ a \ge | b - c | $$ $$ b \ge r $$ $$ c \le t $$ I'm trying to prove that given these things, the following is true: $$ a \ge r - t $$ So I rearrange the things I know…
1
vote
1 answer

$\DeclareMathOperator\isZero{isZero}$ Proving $isZero(x) = 1 - \frac {x^2 + 1 - (|x + 1|) (|x - 1|)}{2}$ for $x < 0$ and $ x > 0$ (x is an Integer)

not been on here in a while, but in this case I'm working on a blog article regarding an $\mathrm{isZero}$ function, which returns $1$ for true (the input is zero), and $0$ for false (the input is not zero). The function is based on taking advantage…
1
vote
0 answers

How to rearrange equations with a magnitude sign?

There is probably something dreadfully simple I am missing here, but in the derivation of the speeds after a collision of any elasticity, there is a step that involves going from: $$C_r = \frac{|v_2 - v_1|}{|u_1 - u_2|}$$ ... to this: $$v_2 = v_1 +…
1
vote
0 answers

Is there an algebraic equation for Absolute Value?

There is probably no reason for me to need this, but I was just curious if you could theoretically form an algebraic equation as a replacement for the absolute value function. It may already exist, but I searched for a little while and couldn't find…