express 3x^2+2x+1 in the form a(x+p)^2+q where a, p and q are real numbers

complete the square

3(x^2 + 2/3 x) + 1
3 (x^2 + 2/3 x + 1/9 ) -3/9 + 1
3 (x+1/3)^2 + 6/9