Skip to content
ihateDesmos

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.

−2−112−550
Open in calculator
y=x
in blue and its integral
y=x22
(with C = 0) in red.

How to integrate x

Method: power rule.

  1. 1
    The power rule says ∫xⁿ dx = xⁿ⁺¹/(n + 1) + C, for any n except −1.
  2. 2
    Here n = 1, so the new exponent is 2.
  3. 3
    Divide by the new exponent: x²/2.
  4. 4
    Add the constant of integration: C.
  5. 5
    Check: 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.

−2.5−2−1.5−1−0.50.511.522.5−8−6−4−22468

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.

Checking the integral
xxSlope of the answer
−2−2−2
−5/4−5/4−5/4
−1/2−1/2−1/2
000
3/43/43/4
3/23/23/2
222

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.

Open the integral calculator