First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

See the documentation of integrate:

To prevent automatic evaluation use the hold argument.

Indeed,

sage: var('alpha beta x')
sage: denom = integral(x**(alpha-1) * (1-x)**(beta-1), x, hold=True)
sage: diff(denom,x)
x^(alpha - 1)*(-x + 1)^(beta - 1)
click to hide/show revision 2
No.2 Revision

See the documentation of integrateintegral:

To prevent automatic evaluation use the hold argument.

Indeed,

sage: var('alpha beta x')
sage: denom = integral(x**(alpha-1) * (1-x)**(beta-1), x, hold=True)
sage: diff(denom,x)
x^(alpha - 1)*(-x + 1)^(beta - 1)
click to hide/show revision 3
No.3 Revision

See the documentation of integral:

To prevent automatic evaluation use the hold argument.

Indeed,

sage: var('alpha beta x')
sage: denom = integral(x**(alpha-1) * (1-x)**(beta-1), x, hold=True)
hold=True); denom
integrate(x^(alpha - 1)*(-x + 1)^(beta - 1), x)
sage: diff(denom,x)
x^(alpha - 1)*(-x + 1)^(beta - 1)