For what value(s) of k is y=e^kx a solution to the second order differential eq…