Question
Question: What is the integration of \[\bmod x\] ?...
What is the integration of modx ?
Solution
Hint : Here in this question, we have to find the integral value of modx i.e., ∣x∣ . To solve this first we have to define ∣x∣ , next integrate by using the substitution method and further simplify by using some standard modulo properties. The final solution of this question will be written by using signum function.
Complete step-by-step answer :
The modx (∣x∣) depends on the domain in which it is being integrated.
For x>0 , ∣x∣=x
For x<0 , ∣x∣=−x
Consider the given question: integral of modx
i.e., taking integration to modx with respect to x , we have
⇒∫modxdx
Or
⇒∫∣x∣dx --(1)
This can be integrated by two cases.
**
**
Case 1:
Let x=−α where −α<0 --(2)
Then, dx=−dα
On substituting in equation (1), we have
⇒∫∣−α∣d(−α)
⇒∫α(−dα)
On by sign convention, we get
⇒∫−αdα
⇒−∫αdα
By using integral formula ∫xndx=n+1xn+1+C we get
⇒−2α2+C ---(3)
where C is integral constant.
From equation (2), x=−α⇒α=−x then, equation (3) becomes
⇒−2(−x)2+C
⇒−2x2+C
Therefore, ∫∣x∣dx=−2x2+C ---(4)
**
**
Case 2:
Now let consider x=β where β>0 ……………… (5)
Then, dx=dβ
On substituting in equation (1), we have
⇒∫∣β∣d(β)
⇒∫βdβ
Again, by using integral formula ∫xndx=n+1xn+1+C we get
⇒2β2+C ---(6)
where C is integral constant.
From equation (5), x=β then, equation (6) becomes
⇒2x2+C
Therefore, ∫∣x∣dx=2x2+C --(7)
We know that the sign function or signum function is an odd mathematical function that extracts the sign of a real number. In mathematical expressions the sign function is represented as sgn .
By using sign function, we can write the integral as
⇒∫∣x∣dx=sgn(x)2x2+C
Therefore, the correct answer is “ ∫∣x∣dx=sgn(x)2x2+C ”.
Note : By simplifying the question using the substitution we can integrate the given function easily. If we apply integration directly it may be complicated to solve further. So, simplification is needed. We must know the differentiation and integration formulas. And should know the definition of absolute value or mod function.