If I understand the problem, we first want to find the slope of the tangent line which f'(x) tells you, So
f'(x) = ek , therefore, the equation of the tangent line is y-e2 = ek(x-1) or y = xek +(e2-ek)
So you know that the slope of the perpendicular line to this line is -1/ek
So, the perpendicular line equation is yp - e2 = -(1/ek)(x-1) or yp = -(1/ek)(x-1) + e2
Now, in order for this line to pass through the origin, we set (x,y) to (o,o) to get 0 = (1/ek) + e2
Solving for k, we find that k = 2 and the perpendicular line is yp = -(1/e2)(x-1) + e2
If f'(x) = ekx = e2x, then f(x) = (1/2)e2x + constant to find the constant we substitute
f(1)= e2 = (1/2)e2 + constant or constant = (1/2)e2
Then k = 2 and f(x) = (1/2)e2x + (1/2)e2