From linear to exponential PWM output

Now I like to make this output not linear but exponential

Calculate the mapping offline and load the value in a table into your code. Much faster than any calculation you can find any mcu.