x2+4x+k=(x+r)2+1
x2+4x+k=x2+2rx+r2+1
Comparing the LHS and RHS equations, we have
2r=4impliesr=2
k=r2+1=22+1=5