# Simulating Gaussian beam through lens

After spending some time in the lab and finding out how frustrating it is to align optical elements, I have decided to go and adapt a numerical solver that I wrote to simulate the propagation of a Gaussian beam through some lenses.

For simplicity I will consider only the 1-dimensional case. The propagation is simulated by solving the PDE

$$\partial_z f = \frac{i}{2k} \partial_x^2f$$

where $$k=2\pi / \lambda$$

I considered the phase that a lens applies on a beam to be

$$\phi(x) = \frac{k x^2}{2f}.$$

My approach after having the phase is as follows. I define the Gaussian beam, propagate it, and whenever I feel like it, I should be able to apply a phase which would correspond to "adding a lens in my setup". For simplicity of the debugging process, I considered the Gaussian beam on which I applied the lens phase in order to have the initial condition for the PDE.

What I noticed by doing so is that the width of the Gaussian beam changes the position at which the beam focuses. I think that this can be seen best by comparing the following images.

In the first image I have considered a Gaussian with a standard deviation 3 time larger than in the second case. Based on the parameters that I have used in the simulations, the focal point should be around the 625 iteration on the vertical axis. This is true for the first image, but not for the second one.

Furthermore, by choosing even smaller standard deviations for the Gaussian, the focusing doesn't even take place (qualitatively).

So, how can this be explained or controlled? My attempt is that given the propagation equation (directional, small angles), a parallel beam hits the lens, which should apply a Fourier Transform on the beam (or the inverse, I don't recall at the moment). By doing so, a narrow Gaussian is transformed into a wide one when applying Fourier, and a wide on becomes narrow. Based on this, if the input Gaussian is made narrower, its Fourier transform should start to become wider. This explains why the focusing does not appear, but not the shift along the propagation axis of the focus. I am not sure if this explanation is correct, but definitely it is not complete. What am I missing here?

• What’s happens if you do the same simulation with ray transfer method? – boyfarrell Sep 5 '19 at 20:03
• Do you refer to the eikonal equation? If so, I have not implemented a solver for that one. EDIT: I found out what you refer to. I'll do the computation by hand for a fast check. – Victor Palea Sep 5 '19 at 20:06
• As far as i understand from here en.m.wikipedia.org/wiki/Ray_transfer_matrix_analysis the gaussian beam on thin lens approach in my case would imply that $q_2=0$ which implies that $q_1=/infty$ or $q_1=0$. So either there is a ray that goes through the center of the lens, or a ray that is infinitly far fron the propagation axis. Might be wrong. – Victor Palea Sep 5 '19 at 20:26
• Hi there. You can find the relation between the Gaussian beam waist and the focal length in the book "Introduction to Optics", by L. M. Pedrotti. In the second edition, the equations you seek are in page 475, under section 22.6 - "Laser propgation through arbitrary optical systems". – Bruno Anghinoni Sep 5 '19 at 20:52