assume, multiple assumptions (16.3.98)

Lucy Schloesser

The function p(k,n) with k,n Integer and n>=k>=0 is defined as follows.


I want maple to solve int(x^k*(1-x)^(n-k)*binomial(n,k), x=0..1); . It is = 1/(n+1); (with integration by parts)


Definite integration: Can’t determine if the integral is convergent. Need to know the sign of --> -n+k

Will now try indefinite integration and then take limits. Has someone written a program to solve this problem?

Douglas B. Meade (17.3.98)

To obtain the expected result of this calculation it is necessary to use a little caution in the way assumptions are declared. In particular, the assume command overrides previous assumptions; to add assumptions the additionally command should be used. To illustrate the difference, use the about command to query the current assumptions about a specific Maple name. All of this, together with the simplifications necessary to obtain the simplified form for your integral are contained in the Maple session attached to the end of this message.