3.1 \(\int x^n \, dx\)

Optimal. Leaf size=11 \[ \frac {x^{n+1}}{n+1} \]

[Out]

x^(1+n)/(1+n)

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {30} \[ \frac {x^{n+1}}{n+1} \]

Antiderivative was successfully verified.

[In]

Int[x^n,x]

[Out]

x^(1 + n)/(1 + n)

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

\begin {align*} \int x^n \, dx &=\frac {x^{1+n}}{1+n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 11, normalized size = 1.00 \[ \frac {x^{n+1}}{n+1} \]

Antiderivative was successfully verified.

[In]

Integrate[x^n,x]

[Out]

x^(1 + n)/(1 + n)

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 10, normalized size = 0.91 \[ \frac {x x^{n}}{n + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^n,x, algorithm="fricas")

[Out]

x*x^n/(n + 1)

________________________________________________________________________________________

giac [A]  time = 0.93, size = 11, normalized size = 1.00 \[ \frac {x^{n + 1}}{n + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^n,x, algorithm="giac")

[Out]

x^(n + 1)/(n + 1)

________________________________________________________________________________________

maple [A]  time = 0.00, size = 12, normalized size = 1.09 \[ \frac {x^{n +1}}{n +1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^n,x)

[Out]

x^(n+1)/(n+1)

________________________________________________________________________________________

maxima [A]  time = 0.41, size = 11, normalized size = 1.00 \[ \frac {x^{n + 1}}{n + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^n,x, algorithm="maxima")

[Out]

x^(n + 1)/(n + 1)

________________________________________________________________________________________

mupad [B]  time = 0.32, size = 20, normalized size = 1.82 \[ \left \{\begin {array}{cl} \ln \relax (x) & \text {\ if\ \ }n=-1\\ \frac {x^{n+1}}{n+1} & \text {\ if\ \ }n\neq -1 \end {array}\right . \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^n,x)

[Out]

piecewise(n == -1, log(x), n ~= -1, x^(n + 1)/(n + 1))

________________________________________________________________________________________

sympy [A]  time = 0.06, size = 12, normalized size = 1.09 \[ \begin {cases} \frac {x^{n + 1}}{n + 1} & \text {for}\: n \neq -1 \\\log {\relax (x )} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**n,x)

[Out]

Piecewise((x**(n + 1)/(n + 1), Ne(n, -1)), (log(x), True))

________________________________________________________________________________________