i have this equation

when computing high values of i have problems as the exponential tends to very small numbers. Instead i want to take natural logs of this equation so i can avoid computing the exponentials

how do i take logs such that the exponentials disappear