I have something like this:
. . . . .\(\displaystyle u_{n+1}\, -\, u_n\, =\, 3\, \left(u_n^2\, -\, u_n\right)\, +\, 1\, =\, 3\, \left(u_n\, -\, \dfrac{1}{2}\right)^2\, +\, \dfrac{1}{4}\)
Can someone explain to me how they went from
. . . . .\(\displaystyle 3\, \left(u_n^2\, -\, u_n\right)\, +\, 1\)
to
. . . . .\(\displaystyle 3\, \left(u_n\, -\, \dfrac{1}{2}\right)^2\, +\, \dfrac{1}{4}\)