Title states it all. Is there a closed type solution because that the indefinite integral $\\int |x| dx$ ?

Using integration by parts

$$\\int |x|~dx=\\int \\inter-base.netrmsgn(x)x~dx=|x|x-\\int |x| ~dx$$

since $\\fracddx |x|=\\inter-base.netrmsgn(x)$ top top non-zero sets. This yields

$$\\int |x| ~dx = \\frac2~.$$

You are trying to find a role $f(x)$ so the $$\\int_a^b |x|dx=f(b)-f(a).$$ This is what is supposed by $\\int |x|dx$. Ns propose that $f(x)=x|x|/2$ is together a function. Let us test it. If both $a$ and $b$ space both positive, then $$\\int_a^b |x|dx=\\int_a^b x\\,dx=b^2/2-a^2/2=b|b|/2-a|a|/2=f(b)-f(a).$$If $a$ and $b$ space both negative, then $$\\int_a^b |x|dx=-\\int_a^b x\\,dx=-b^2/2-(-a^2/2)=b|b|/2-a|a|/2=f(b)-f(a).$$Finally, if $a and $b>0$, we get$$\\int_a^b |x|dx=-\\int_a^0 x\\,dx+\\int_0^b x\\,dx=b^2/2+a^2/2=b|b|/2-a|a|/2=f(b)-f(a).$$Of course, we might have $b and $a>0$, but then we might switch the limits, and also this reduces come the third case.

You are watching: How to integrate absolute value of x

Thus, $f(x)=x|x|/2$ is an indefinite integral, or antiderivative that $|x|$.

You deserve to use $\\frac)dx=\\fracx$ and also $\\int|x|dx = \\int \\fracxxdx$.

$\\int|x|dx = \\int xd(|x|)$, utilizing integration by components $\\int|x|dx = x|x| - \\int|x|dx $

$2\\int|x|dx = x|x|$

$\\int|x|dx = \\fracx2$

$\\fracx$ is a far better way to define the authorize function.

Thanks for contributing solution to inter-base.netematics ridge Exchange!

Please be certain to*answer the question*. Provide details and share your research!

But *avoid* …

Use inter-base.netJax to format equations. Inter-base.netJax reference.

See more: How Could The British Government Have Prevented The American Revolution

To find out more, view our tips on writing great answers.

short article Your price Discard

By click “Post your Answer”, friend agree to our regards to service, privacy policy and cookie policy

## Not the price you're spring for? Browse various other questions tagged calculus or questioning your very own question.

how to know whether the systems of an unknown integral can be composed in the type of elementary attributes or not?

site style / logo © 2021 stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.9.24.40305

her privacy

By clicking “Accept every cookies”, friend agree ridge Exchange deserve to store cookies on your machine and disclose info in accordance with our Cookie Policy.