You will need to do both sum and product of roots, then solve simultaneously.
x^2+(k+1)x+\frac{k+1}{4}=0
Let our roots be alpha and beta, however the condition is that both roots are the same, so therefore beta must equal alpha. Hence our roots are then, alpha and alpha.
Using sum of roots...