Date: Nov 23, 2012 12:19 AM
Author: R
Subject: Algebra question

Hi, 

I read in a stats textbook that this equation:

[y*theta^(y-1)]-(n-y)*(theta^y)(1-theta)^(n-y-1)

can be simplified to:

[y*theta^(y-1)]*[(1-theta)^(n-y-1)]*(y-n*theta)

Could someone please show me the steps necessary to go from the first equation to the second equation?

Any tips would be much appreciated.

R