Prove that $$\sum_{i=0}^n 2i=n^2+n$$
I attempted to solve the question by proving the base case $n=0$, and assuming the inductive hypothesis $$\sum_{i=0}^n 2i=n^2+n$$ to be true, so $$\sum_{i=0}^{n+1}2i=\sum_{i=0}^n{2i}+2(n+1)=n^2+n+2(n+1)$$
I am confused as to what I should be getting. In the similarly solved examples, some expressions on the right were reduced to the original inductive hypothesis, while others worked on the right side to produce the left side. I worked on the right and got the following result:
$n^2+n+2n+1=n^2+2n+1+n+1=(n+1)^2+(n+1)$ which looks like the inductive hypothesis on the right side.
I am having issues with similar induction proves that involve the summation/sigma notation; one is an inequality and the other is an algebraic expression with 'i' in the denominator. I am not sure if I should include them or ask separately as they are very similar.
Based on your inductive hypothesis, you just need to confirm that:
$$\left(\sum_{i=0}^n 2i\right)+2n+2 \stackrel{?}{=} (n+1)^2 + (n+1)$$
i.e.
$$(n^2+n)+2n+2 = n^2+3n+2\stackrel{?}{=}\\ (n+1)^2 + (n+1) = n^2+2n+1+n+1=n^2+3n+2$$
They are equal, so that is the solution.