# Tag Info

If you are trying to take the derivative of $\binom{n}{k}p(1-p)^{n-k}$ where "nchoosek" is $\binom{n}{k}=\frac{n!}{k!(n-k)!}$ with respect to $p$ in Mathematica, or specifically, compute $$\frac{d}{dp}\binom{n}{k}p(1-p)^{n-k},$$ then you can do this with D[n!/(k! (n - k)!)*p*(1 - p)^(n - k), p] // Simplify If you are trying to differentiate with respect ...