# Revision history [back]

### Plotting an integral with a variable as a limit

I want to plot a function with a variable as a limit, e.g. look at \int_0^x f(y) d y, but this seems to throw an error when Sage can't analytically integrate the function.

x,y,=var('x y')
f(y)=integrate(x^x,x,1,y)
plot(f,2,10)


Returns

Traceback (click to the left of this block for traceback)
...
AttributeError: 'float' object has no attribute 'variables'


Can anybody help with this, please? Many thanks.

### Plotting an integral with a variable as a limit

I want to plot a function with a variable as a limit, e.g. look at \int_0^x f(y) d y, but this seems to throw an error when Sage can't analytically integrate the function.

x,y,=var('x x,y=var('x y')
f(y)=integrate(x^x,x,1,y)
plot(f,2,10)


Returns

Traceback (click to the left of this block for traceback)
...
AttributeError: 'float' object has no attribute 'variables'
ValueError: free variable: x


Can anybody help with this, please? Many thanks.

 3 No.3 Revision tmonteil 27203 ●31 ●198 ●511 http://wiki.sagemath.o...

### Plotting an integral with a variable as a limit

I want to plot a function with a variable as a limit, e.g. look at \int_0^x f(y) d y, but this seems to throw an error when Sage can't analytically integrate the function.

x,y=var('x y')
f(y)=integrate(x^x,x,1,y)
plot(f,2,10)


Returns

Traceback (click to the left of this block for traceback)
...
ValueError: free variable: x


Can anybody help with this, please? Many thanks.

 4 retagged tmonteil 27203 ●31 ●198 ●511 http://wiki.sagemath.o...

### Plotting an integral with a variable as a limit

I want to plot a function with a variable as a limit, e.g. look at \int_0^x f(y) d y, but this seems to throw an error when Sage can't analytically integrate the function.

x,y=var('x y')
f(y)=integrate(x^x,x,1,y)
plot(f,2,10)


Returns

Traceback (click to the left of this block for traceback)
...
ValueError: free variable: x


Can anybody help with this, please? Many thanks.