Question: How to select the exponential argument and apply it to a function f(x)?

For any given function solely and exclusively given by exponentials, as follows (expression A1), I need to select the argument of each exponential and apply it to any function, for example COS(X)

A1 :=  exp(4*k)/4 + exp(2*k)/2 - exp(-2*k)/2 - exp(-4*k)/4+5

That is, we would have

A1':=cos(4*k)/4 + cos(2*k)/2 - cos(-2*k)/2 - cos(-4*k)/4+5

I know this result is zero, but this is a simple example. What is the best way to do this?

Please Wait...