How can I derive the right side from the left side?
$n^2(n+1)^2+(n+1)^2 + n^2$ $= (n^2+n+1)^2$
How can I derive the right side from the left side?
$n^2(n+1)^2+(n+1)^2 + n^2$ $= (n^2+n+1)^2$
$$ \begin{align} n^2(n+1)^2+(n+1)^2 + n^2 \\ & = (n(n+1))^2 +n(n+1) +(n+1) +n^2 \\ & = (n(n+1))^2 +n(n+1) +(n^2 + n) +1 \\ & = (n(n+1))^2 + 2n(n+1) +1 \\ & = (n(n+1)+1)^2 \\ & = (n^2+n+1)^2 \end{align} $$
This may be a little late, but this is how I would start. Since we have$$(n+1)^2-n^2=2n+1\tag1$$ We now have$$n^2+(n+1)^2=2n^2+2n+1=(n^2+n+1)^2-(n^2+n)^2\tag{2}$$ Such identities arise from observations that you have occasionally. There's a cubic analogous form which I will add once I find it.
Have a nice day!
If you compute the left side you get:
$$n^2(n^2+2n+1)+n^2+2n+1+n^2$$
so
$$n^4+2n^3+n^2+2n^2+2n+1$$
so
$$n^4+2n^3+3n^2+2n+1.$$
If you compute the right side you get:
$$(n^2+n+1)(n^2+n+1)$$
so
$$n^4+n^3+n^2+n^3+n^2+n+n^2+n+1$$
so
$$n^4+2n^3+3n^2+2n+1.$$
Finally, you can conclude that both sides are equals.
set $n^2=a$ and $(n+1)=b$. then you have $(a+b)^2=a^2 +2ab + b^2$. we leave the $b^2=(n+1)^2$ alone. Then we transform $a^2 +2ab$ into $a(a+2b)=n^2(n^2+2(n+1))=n^2(n^2 +2n +1+1)=n^2[(n+1)^2 +1]$ and we end up with the lhs. I think I did the opposite of what you asked but you can see that you can invert it to get the rhs from the lhs.
For the LHS we have: $$ n^2(n+1)^2+(n+1)^2 + n^2= $$ $$ =n^2(n^2+1+2n)+(n+1)^2+n^2=n^4+n^2+2n^3+(n+1)^2+n^2= $$ $$ =n^4+(n+1)^2+2n^2(n+1)=[n^2+(n+1)]^2 $$