Proving slope is constant using similarity