It looks like there was a missing hypotheses on the homework. This has been modified (in red on the revised pdf).