In summary, there is no general expression for the solution of Laplace's equation in any set of spaces, as it can be any combination of harmonic functions. In 3D space, these harmonic functions are known as spherical harmonics, which are closely related to the Legendre polynomials. In arbitrary dimensions, the analogous functions are called Gegenbauer functions. However, the Laplace equation can also be solved using the Green function, which varies depending on the dimension of the space. In 3D, the Green function is \frac{1}{\lvert \vec r - \vec r' \rvert}, and in n dimensions, it is \frac{1}{\lvert \vec r - \vec
I don't think there is a 'general expression for the solution' to laplace's equation in any set of spaces. Solutions of laplace's equation are any combination of harmonic functions.
Solutions of Laplces's equation are also called harmonic. One special case are the spherical harmonics. In 3D space they are simply known as spherical harmonics and are closely related to the Legendre Polynomials, which are the solution with "magnetic quantum number", [itex]m=0[/itex]. The other functions are called the associated Legendre functions. With the factor [itex]\exp(\mathrm{i} \varphi)[/itex] and normalized this gives the spherical harmonics, [itex]\mathrm{Y}_{lm}(\vartheta,\varphi)[/itex] which are a complete set on the Hilbert space, [itex]\mathrm{L}^2(\mathrm{S}_1)[/itex], i.e., all functions that are defined on the unit sphere in [itex]\mathbb{R}^3[/itex] that are square integrable. For the spherical harmonics one has
Any harmonic function on [itex]\mathbb{R}^3[/itex] then can be expanded in the sense of convergence with respect to the corresponding Hilbert-space norm by
Laplace equation can be solved in 3 dimensional space by separation of variables and also in 4 , 5 and 6 dimensional spaces with cartesian coordinates but If I want to find the solution in N dimensional space is it possible to write a computer algorithm to find the solution for N dimensions
To show this, write the Laplace equation in spherical coordinates, and assume your solution is a function of r alone. Then the Green function follows by translational invariance.