Calculus Examples

Find the Integral |x-1|
|x-1|
Step 1
Set the argument in the absolute value equal to 0 to find the potential values to split the solution at.
x-1=0
Step 2
Simplify the answer.
Tap for more steps...
Step 2.1
Solve the equation for x.
x=1
Step 2.2
Create intervals around the solutions to find where x-1 is positive and negative.
(-,1),(1,)
Step 2.3
Substitute a value from each interval into x-1 to figure out where the expression is positive or negative.
IntervalSign on interval(-,1)-(1,)+
Step 2.4
Integrate the argument of the absolute value.
Tap for more steps...
Step 2.4.1
Set up the integral with the argument of the absolute value.
x-1dx
Step 2.4.2
Split the single integral into multiple integrals.
xdx+-1dx
Step 2.4.3
By the Power Rule, the integral of x with respect to x is 12x2.
12x2+C+-1dx
Step 2.4.4
Apply the constant rule.
12x2+C-x+C
Step 2.4.5
Simplify.
12x2-x+C
12x2-x+C
Step 2.5
On the intervals where the argument is negative, multiply the solution of the integral by -1.
{-(12x2-x+C)x112x2-x+Cx>1
Step 2.6
Combine 12 and x2.
{-(x22-x+C)x112x2-x+Cx>1
Step 2.7
Simplify.
{-x22+xx112x2-xx>1+C
Step 2.8
Simplify.
{-12x2+xx112x2-xx>1+C
{-12x2+xx112x2-xx>1+C
 [x2  12  π  xdx ]