x-derivative
for i = 1:nx for j = 1:ny
j1f[i,j] = 1.0im*wf[i,j]*kx[i]/k2[i,j]
j4f[i,j] = 1.0im*wf[i,j]*kx[i]
end~end