Point spread functions are an indicator for the optical quality and resolution of a microscope. Their shape and extent can be used to test the alignment of the microscope. Typically, the smaller and more compact the PSF, the better.
More than 10 years ago, I posted a gallery of point spread functions (PSFs) measured with two-photon microscopy, and showed a clear instance of PSF astigmatism a few months ago. In this blog post, I will use not measured but simulated PSFs, in order to give an intuition how the PSF changes for typical aberrations (coma, astigmatism), and how the PSF is affected by typical situations in the lab (coverslips, refractive index mismatch, underfilled back aperture).
For simulations, I relied on Claude (Opus 5.5) to write wave optics code in Python. All the code is available on GitHub and is actually quite easy to understand. The program simply emits a lot of electromagnetic waves at the back focal plane and propagates them to the focus, where the electric field interferes, resulting in an intensity as defined by the two-photon effect. I used a wavelength of 920 nm, NA between 0.6 and 1.0, and assumed an ideal objective with the back aperture homogeneously filled unless otherwise stated.
The normal point spread function

In this normal point spread function, the wavefront is completely flat (left panel). The GIF shows a z-stack that is normalized to the peak across the entire z-range (“raw”) on the left, and a more saturated version of it on the right to highlight the aberrations (“saturated”). The right side shows the axial cross sections. This is the perfect two-photon PSF, here shown for NA = 0.6 (as for all GIFs below). Lateral FWHM 0.6 µm, axial FWHM 4.1 µm.
Deviations from the ideal point spread function

Here, the beam hitting the objective is too small (dashed line indicating the 1/e^2 radius) to use the objective’s full NA. This “underfilled” back aperture results in lower resolution, reflected by larger PSF size in all dimensions. Lateral FWHM 1.2 µm, axial FWHM 11.2 µm (note the different axial scale bar).

Here, the beam is shifted off center. This can happen if the scan path is misaligned, and it happens naturally during scanning when the laser beam is moving slightly over the back focal plane of the objective (this is always the case unless there are relay optics between the x- and y-scanners). In typical scanning microscopes, the center shift is much smaller during scanning than shown here. However, it is nicely visible that the PSF is tilted along the x-axis (which is the same axis along which the beam was shifted off center).
The classical set of aberrations
Aberrations are often characterized not by how they emerge but how they can be decomposed. Aberrations are naturally decomposed into Zernike modes. This is also practically relevant since these modes are used with adaptive optics to compensate for aberrations induced by the sample or the microscope.

This is the “spherical” aberration, showing the typical ring pattern. These ring patterns, which appear primarily on one side of the axial peak of the PSF, can be often observed in real microscopes (see here for some examples where these rings occur together with other aberrations). Also note the “ringing” pattern along the axial dimension: for strong spherical aberrations, the PSF can look like a string of pearls. Spherical aberrations can be induced by uncorrected coverslips that are introduced without the objective being designed for it, but also by other effects like a non-collimated incoming beam or simply imaging through tissue with a refractive index different from water (see below).

The “coma” aberration corresponds to the “banana” shape in the experimental gallery. It can arise from a tilted coverslip or misaligned lenses in the beam path of the microscope. Usually when I see this, I have no idea where it comes from.

The “astigmatism” reflects that the foci in x and y do not occur at the same location. I have described earlier that this can occur when clamping large mirrors such that they are slightly bent along one but not the other direction. A classical case that explains this effect is when the dichroic mirror of a microscope is fastened too tightly – any large flat element in the microscope might be the culprit for this aberration.

For completeness, this is the “trefoil” aberration type. I have never seen this myself in this clear shape, but there may be applications or fixation methods of optics that can trigger this type of aberration.
Optical aberrations in the lab: coverslips, tilt, collimation
In the brain, optical aberrations are induced by random refractive index transitions in tissue, slowly degrading the optical resolution and scattering the incoming photons to form a PSF that is much worse in brain tissue than at its surface. Here, I will not discuss this effect. Instead, I will look at how the PSF is degraded in addition: by coverslips, beam divergence, and the refractive index of the brain tissue itself (assuming it is homogeneous).
In the following, I use the peak of the simulated two-photon PSF compared to the ideal PSF as a measure of the degradation. Important: This does not mean that the fluorescence intensity degrades to the same degree; since the fluorescence intensity is spread out across a larger volume, this partially compensates for the loss of peak intensity (typically, when the peak is reduced to 20%, the overall intensity is reduced to ~70%). Please keep this in mind when reading the plots below.

The thickness of glass coverslip (n ~ 1.5, compared to n = 1.33 for water) induces spherical aberrations if not corrected. Many objectives, for example the standard Nikon 16x NA 0.8 objective, do not come with a correction collar to compensate for a glass coverslip that is often positioned between microscope and the tissue. In many preparations, in order to stabilize against brain motion, not only a single coverslip (170 μm) but multiple ones are stacked. This results in a spherical aberration, visible as the clearly visible bumps in the NA = 1.0 case, which reflects the string-of-pearls pattern described above. The effect is very strong for high NA and only mild for NA = 0.6.

Often, the glass coverslip is not perfectly aligned to the imaging plane of the microscope. There are even papers on how to align the coverslip with the imaging plane. Here, you can see why this is important: the tilt adds coma to the beam profile and therefore degrades the PSF and resolution. Again, strongly dependent on objective NA.

It can happen that the beam hitting the back focal plane of the objective is not fully collimated but is slightly divergent or convergent. This can be misalignment of the distances between lenses, but it can also be due to remote z-scanning using a tunable lens or a tiny remote mirror moved axially with galvos (or, as I have done, with a voice coil motor). As you can see above, this can result in strong reduction of the PSF peak excitation, especially for high-NA objectives. For the medium-NA objectives, the effects are much more modest. Note that specifically designed remote focusing optics avoid this loss entirely – that’s why they are great!

Finally, aberrations can also be simply induced by the refractive index of brain tissue. The refractive index of water is n = 1.33, while the refractive index of brain tissue/gray matter should be around n = 1.36, and the refractive index of white matter (e.g., the corpus callosum) should be around n = 1.40. With this, we can simulate how the PSF degrades for increased imaging depth even in the absence of tissue inhomogeneities. As you can see from the bumps of the NA = 1.0 trace, this is an effect due to spherical aberrations and is physically the same effect as having a coverslip with refractive index different from water.
Here, I simulated in addition the case where the microscope first images through a thick (200 µm) layer of white matter between the objective and the gray matter, reflecting the situation when imaging the hippocampus, with the white matter of the corpus callosum above the neural tissue of interest. 200 µm is definitely on the larger end of what is typical – this is mostly to show the effect qualitatively.
Conclusion
The most striking observation is that all these effects depend strongly on the numerical aperture (NA) of the objective, with a dependence that is highly nonlinear. This is why you have to care a lot about these effects if you are using the Nikon NA 1.1 objective (N25X-APO-MP), but less so when you image with lower NA. To avoid high sensitivity to motion artifacts and to maintain a large FOV (due to the trade-off between FOV size and beam size), it is often a good idea to image at an axial FWHM not much less than ~5 µm, which corresponds to an effective NA of 0.5-0.6 for a wavelength of 920 nm (using these assumptions). It is fine to be less precise with alignment and coverslip compensation for that. However, once you aim for high NA, you should pay closer attention!