Solveeit Logo

Question

Question: What is the integration of \[\bmod x\] ?...

What is the integration of modx\bmod x ?

Explanation

Solution

Hint : Here in this question, we have to find the integral value of modx\bmod x i.e., x\left| x \right| . To solve this first we have to define x\left| x \right| , 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\bmod x (x)\left( {\left| x \right|} \right) depends on the domain in which it is being integrated.
For x>0x > 0 , x=x\left| x \right| = x
For x<0x < 0 , x=x\left| x \right| = - x
Consider the given question: integral of modx\bmod x
i.e., taking integration to modx\bmod x with respect to xx , we have
modxdx\Rightarrow \,\,\int {\bmod x} \,dx
Or
xdx\Rightarrow \,\,\int {\left| x \right|} \,dx --(1)
This can be integrated by two cases.
**
**

Case 1:
Let x=αx = - \alpha where α<0 - \alpha < 0 --(2)
Then, dx=dαdx = - d\alpha
On substituting in equation (1), we have
αd(α)\Rightarrow \int {\left| { - \alpha } \right|} \,d( - \alpha )
α(dα)\Rightarrow \int \alpha \,\left( { - d\alpha } \right)
On by sign convention, we get
αdα\Rightarrow \int { - \alpha \,d\alpha }
αdα\Rightarrow - \int {\alpha \,d\alpha }
By using integral formula xndx=xn+1n+1+C\int {{x^n}dx = \dfrac{{{x^{n + 1}}}}{{n + 1}}} + C we get
α22+C\Rightarrow \,\, - \dfrac{{{\alpha ^2}}}{2} + C ---(3)
where C is integral constant.
From equation (2), x=αα=xx = - \alpha \Rightarrow \alpha = - x then, equation (3) becomes
(x)22+C\Rightarrow \,\, - \dfrac{{{{\left( { - x} \right)}^2}}}{2} + C
x22+C\Rightarrow \,\, - \dfrac{{{x^2}}}{2} + C
Therefore, xdx=x22+C \int {\left| x \right|} \,dx = - \dfrac{{{x^2}}}{2} + C ---(4)
**
**

Case 2:
Now let consider x=βx = \beta where β>0\beta > 0 ……………… (5)
Then, dx=dβdx = d\beta
On substituting in equation (1), we have
βd(β)\Rightarrow \,\,\int {\left| \beta \right|} \,d(\beta )
βdβ\Rightarrow \,\,\int {\beta \,d\beta }
Again, by using integral formula xndx=xn+1n+1+C\int {{x^n}dx = \dfrac{{{x^{n + 1}}}}{{n + 1}}} + C we get
β22+C\Rightarrow \,\,\dfrac{{{\beta ^2}}}{2} + C ---(6)
where C is integral constant.
From equation (5), x=βx = \beta then, equation (6) becomes
x22+C\Rightarrow \,\,\dfrac{{{x^2}}}{2} + C
Therefore, xdx=x22+C \int {\left| x \right|} \,dx = \dfrac{{{x^2}}}{2} + 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\operatorname{sgn} .
By using sign function, we can write the integral as
xdx=sgn(x)x22+C\Rightarrow \,\,\int {\left| x \right|} \,dx = \operatorname{sgn} (x)\dfrac{{{x^2}}}{2} + C
Therefore, the correct answer is “ xdx=sgn(x)x22+C \int {\left| x \right|} \,dx = \operatorname{sgn} (x)\dfrac{{{x^2}}}{2} + 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.