How to differentiate mod x?
Derivative of absolute value of x. The derivative of mod x is denoted by d/dx(|x|) and it is equal to x/|x| for all nonzero values of x. In this post, we will learn how to differentiate modulus x.
Recall that mod x is defined as below.
$|x|=\begin{cases} x, & \text{ if } x\geq 0 \\ -x, & \text{ if } x< 0 \end{cases}$
The derivative of |x|, that is, the derivative of modulus x, denoted by d/dx(|x|), is given as follows:
$\dfrac{d}{dx}(|x|)=\dfrac{x}{|x|}$ for $x \neq 0$.
Let us now find the derivative of mod x.
Question: Find $\dfrac{d}{dx}(|x|)$.
Answer:
Case 1: First we assume that x>0.
Thus, by the above definition of |x|, we have |x|=x.
∴ d/dx(|x|) = d/dx(x) = 1
Case 2: First we assume that x<0.
So, again by the above definition of |x|, we have |x|=-x.
In this case, d/dx(|x|) = d/dx(-x) = -1
Thus, we obtain that
$\dfrac{d}{dx}(|x|)=\begin{cases} 1, & \text{ if } x> 0 \\ -1, & \text{ if } x< 0 \end{cases}$
Combining both cases, we get that
$\dfrac{d}{dx}(|x|)=\dfrac{x}{|x|}$ for $x \neq 0$.
NOTE: The function f(x)=|x| is not differentiable. For a proof, CLICK HERE.
Remark:
ALSO READ:
Derivative of 2x
Derivative of 10x
Derivative of xx
- The derivative of mod x at x=a>0 is 1.
- The derivative of mod x at x=a<0 is -1.
- The derivative of mod x at x=0 does not exist.
Related Questions
- How to turn down cpu fan speed?
- How to seconds in minutes?
- How to make oobleck in the uk?
- How to edit environment variables in windows 10?
- How to take hand pictures?
- How to take rrsp out?
- How to get help from cm relief fund?
- How to login bgmi with email?
- How to play system audio in google meet?
- How to avoid duplicate values in ng-repeat?