So, here's the deal. I need to solve the paraxial diffraction integral for resonators by using a Gaussian quadrature in order to obtain the modes. Typically, this is done by assuming radial symmetry and transforming it to a 1D integral. However, I can't assume symmetry.
For 1D (Assuming symmetry):
λulp(r2)=∫a10Kl(r1,r2)ulp(r1)dr1
Then, we take r=[r1,r2,...,rN] and w=[w1,w2,...,wN] to be the abscissa and the weights for the Gaussian quadrature. If we consider equal domains for the variables x1 and x2 and u=[u1,u2,...,uN] the column vector of the eigenfunction so that uN=u(xN), we can rewrite the integral as
λu=(H∗W)∗u
Where H is a N x N matrix where Hm,n=H(rm,rn) and W is diagonal matrix with the elements of w.
Hence, we only need to find the eigenvalues and eigenvectors for the equation before and it's done.
However, things aren't that easy for 2D. The integral equation reads as:
λu(x2,y2)=∫a10K(x1,x2,y1,y2)u(x1,y1)dx1dy1
I'm not sure how to transform that integral into the matrix equation and what does H should be in this case, since it needs to be a 4D array? Hxm,xn,ym,yn=H(xm,xn,ym,yn)?