Is this valid: For the last part is it valid to differentiate and then then let r=n/2 for the RHS?