So for separable equations, we want to "separate" the dy and the dx from each other and get them on their own sides for integrating against. So with dy/dx = 5x ey, we can divide by ey and multiply by dx and have 1/ey dy = 5x dx. Remember that 1/ey = e-y by exponent laws. So then we just need to take integrals:
∫ e-y dy = ∫ 5x dx
-e-y = 5/2 x2+ C
e-y = -5/2 x2 + C' (where C' = -C. It's totally fine to just keep + C instead of creating a new constant, as it's understood what you mean since C is currently just some arbitrary constant)
-y = ln (-5/2 x2 + C')
y = -ln(-5/2 x2 + C')
Now we know that y(0) = 0. Therefore 0 = -ln(-5/2 02 + C'), so 0 = -ln(C') = ln(C') if we divide by 0. ln(1) = 0, so C' = 1. Thus we have the solution as:
y = -ln(5/2 x2 + 1)