(a) (1-q)^6*q^4
(b) (1-q)^(n-k)*q^k
You just need to do the derivative and find the q value which maximize the values of the equations
(a) (1-q)^6*q^4
(b) (1-q)^(n-k)*q^k
You just need to do the derivative and find the q value which maximize the values of the equations