Integral of x
Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of x
∫
x
dx =x22+C
The integral of x is x²/2 + C. The power rule for integrals raises the exponent by one and divides by the new exponent.
y=x
in blue and its integral y=x22
(with C = 0) in red.How to integrate x
Method: power rule.
- 1The power rule says ∫xⁿ dx = xⁿ⁺¹/(n + 1) + C, for any n except −1.
- 2Here n = 1, so the new exponent is 2.
- 3Divide by the new exponent: x²/2.
- 4Add the constant of integration: C.
- 5Check: the derivative of x²/2 is 2x/2 = x.
What it means
The integral gives the area under y = x. Since x is negative for x < 0, area to the left of the y-axis counts as negative, and from −a to a the integral is exactly 0.
The integral from 0 to 2
Using the antiderivative: F(2) − F(0) = 4/2, which is about 2. A direct numerical integration of x gives 2, which agrees.
Check by differentiating
The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.
| x | x | Slope of the answer |
|---|---|---|
| −2 | −2 | −2 |
| −5/4 | −5/4 | −5/4 |
| −1/2 | −1/2 | −1/2 |
| 0 | 0 | 0 |
| 3/4 | 3/4 | 3/4 |
| 3/2 | 3/2 | 3/2 |
| 2 | 2 | 2 |
Common mistakes
- Forgetting the + C.
- Multiplying by the exponent instead of dividing, which is the derivative’s rule, not the integral’s.
Frequently asked questions
What is the integral of x?
The integral of x is x²/2 + C.
What is the integral of x from 0 to 2?
4/2, which is about 2.
Keep going
Integrate any function
Type your own function into the integral calculator for the steps, the answer and a graph.