Find the r value (which is a constant)

y = e^rx

solution of the following equation

y''-4y'+4y=0

I got

y'' = e^rx + (r^2)(e^rx)

I plugged in y' and y'' and y to the original equation and cannot get an answer out of it after trying to a very long time!