Skip to content
ihateDesmos

Integral of 2x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of 2x
∫
2x
dx =
x2+C

The integral of 2x is x² + C. It is the reverse of the most familiar derivative: the derivative of x² is 2x.

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

How to integrate 2x

Method: power rule.

  1. 1
    Take the constant outside: 2 ∫x dx.
  2. 2
    The power rule gives ∫x dx = x²/2.
  3. 3
    Multiply: 2 · x²/2 = x².
  4. 4
    Add the constant: x² + C.

What it means

y = 2x is a straight line, so the area under it is a triangle. From 0 to a, that triangle has base a and height 2a, so its area is a², matching the formula.

The integral from 0 to 3

Using the antiderivative: F(3) − F(0) = 9, which is about 9. A direct numerical integration of 2x gives 9, which agrees.

−3−2.5−2−1.5−1−0.50.511.522.53−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
x2xSlope of the answer
−12/5−24/5−24/5
−3/2−3−3
−3/5−6/5−6/5
000
9/109/59/5
9/518/518/5
12/524/524/5

Common mistakes

  • Writing 2 with no x, which is the derivative of 2x, not its integral.
  • Forgetting the + C.

Frequently asked questions

What is the integral of 2x?
The integral of 2x is x² + C.
What is the integral of 2x from 0 to 3?
9, which is about 9.

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