I am learning statistics and come across this calculation for Maximum-Likelihood estimator for the Binomial distribution. I don't understand the step from second to third row where they took the derivative,
my attempt gave me only $\log \left(π\right)$ as result. this is my calculation: $$\left(x \log \left(π\right)+\left(n-x\right)\log \left(1-π\right)\right)' = \\ = x'\log \left(π\right)+x\log \left(π\right)' + \left(n-x\right)'\log \left(1-π\right)+\left(n-x\right)\log \left(1-π\right)' = \\ \log \left(π\right) + 0 + 0 + 0 = \log \left(π\right)$$
Am I doing this wrong?
Note that in this case, $\pi$ is the variable, not $x$