The book I am reading takes the unjustified step $$e^{-\frac{i}{\hbar}\vec{p}\cdot\vec{r}}f(\vec{p}) = f(\frac{\hbar}{i}\vec{\nabla})e^{-\frac{i}{\hbar}\vec{p}\cdot\vec{r}}$$
and similarly, he uses elsewhere $$e^{-\frac{i}{\hbar}\vec{p}\cdot\vec{r}}g(\vec{r}) = g(i\hbar\vec{\nabla}_p)e^{-\frac{i}{\hbar}\vec{p}\cdot\vec{r}}$$
I have a gut feeling this follows somehow from the commutation relation $[r^i,p_j] = i\hbar\delta^i_j$ but I cannot justify this.
Anyhow, the book has not introduced the standard commutation relations, and is working only with the fact that $\phi(\vec{p},t)$ and $\psi(\vec{r},t)$ are Fourier transforms of each other, and $f(\vec{p})$ and $g(\vec{r})$ are analytic.
Could someone give me a hint?