<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mathematics |</title><link>https://rajraghuwansh.github.io/tags/mathematics/</link><atom:link href="https://rajraghuwansh.github.io/tags/mathematics/index.xml" rel="self" type="application/rss+xml"/><description>Mathematics</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 16 Mar 2026 00:00:00 +0000</lastBuildDate><image><url>https://rajraghuwansh.github.io/media/icon_hu_fb558a5ed99f547e.png</url><title>Mathematics</title><link>https://rajraghuwansh.github.io/tags/mathematics/</link></image><item><title>🧭 Spherical Harmonics and the Spherical Coordinate System</title><link>https://rajraghuwansh.github.io/blog/data-visualization/</link><pubDate>Mon, 16 Mar 2026 00:00:00 +0000</pubDate><guid>https://rajraghuwansh.github.io/blog/data-visualization/</guid><description>&lt;p&gt;Spherical harmonics are one of the most important mathematical tools for analyzing functions defined on the surface of a sphere. They appear in many areas including &lt;strong&gt;quantum mechanics, geophysics, computer graphics, and modern geometric deep learning&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This post introduces the &lt;strong&gt;spherical coordinate system&lt;/strong&gt; and explains how spherical harmonics arise naturally when studying functions on the sphere.&lt;/p&gt;
&lt;h2 id="the-spherical-coordinate-system"&gt;The Spherical Coordinate System&lt;/h2&gt;
&lt;p&gt;In three-dimensional space, we often represent points using &lt;strong&gt;Cartesian coordinates&lt;/strong&gt;&lt;/p&gt;
\[
(x, y, z)
\]&lt;p&gt;However, when working with spherical objects or rotationally symmetric problems, it is more natural to use &lt;strong&gt;spherical coordinates&lt;/strong&gt;:&lt;/p&gt;
\[
(r, \theta, \phi)
\]&lt;p&gt;where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;\(r\) is the distance from the origin&lt;/li&gt;
&lt;li&gt;\(\theta\) is the polar angle (measured from the z-axis)&lt;/li&gt;
&lt;li&gt;\(\phi\) is the azimuthal angle (measured in the xy-plane)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The relationship between Cartesian and spherical coordinates is:&lt;/p&gt;
\[
x = r \sin\theta \cos\phi
\]\[
y = r \sin\theta \sin\phi
\]\[
z = r \cos\theta
\]&lt;p&gt;This coordinate system is particularly useful when studying functions defined on the &lt;strong&gt;surface of a sphere&lt;/strong&gt;, where \(r\) is constant.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="what-are-spherical-harmonics"&gt;What Are Spherical Harmonics?&lt;/h2&gt;
&lt;p&gt;Spherical harmonics are a set of special functions defined on the sphere that form an &lt;strong&gt;orthogonal basis&lt;/strong&gt; for functions on the sphere.&lt;/p&gt;
&lt;p&gt;They are analogous to &lt;strong&gt;Fourier series&lt;/strong&gt;, but instead of decomposing functions on a circle, they decompose functions on a &lt;strong&gt;sphere&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;A spherical harmonic is usually written as&lt;/p&gt;
\[
Y_l^m(\theta, \phi)
\]&lt;p&gt;where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;\(l\) is the degree&lt;/li&gt;
&lt;li&gt;\(m\) is the order&lt;/li&gt;
&lt;li&gt;\(-l \le m \le l\)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These functions arise as solutions to &lt;strong&gt;Laplace&amp;rsquo;s equation in spherical coordinates&lt;/strong&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="why-spherical-harmonics-matter"&gt;Why Spherical Harmonics Matter&lt;/h2&gt;
&lt;p&gt;Spherical harmonics appear in many scientific fields:&lt;/p&gt;
&lt;h3 id="physics"&gt;Physics&lt;/h3&gt;
&lt;p&gt;They are used to solve:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Schrödinger equation&lt;/li&gt;
&lt;li&gt;gravitational potentials&lt;/li&gt;
&lt;li&gt;electromagnetic fields&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="computer-graphics"&gt;Computer Graphics&lt;/h3&gt;
&lt;p&gt;They are used for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;lighting models&lt;/li&gt;
&lt;li&gt;environment maps&lt;/li&gt;
&lt;li&gt;rendering reflections&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="geometric-deep-learning"&gt;Geometric Deep Learning&lt;/h3&gt;
&lt;p&gt;Modern AI models that operate on &lt;strong&gt;spheres, rotations, or 3D structures&lt;/strong&gt; often rely on spherical harmonics for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;equivariant neural networks&lt;/li&gt;
&lt;li&gt;molecular modeling&lt;/li&gt;
&lt;li&gt;3D vision&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="visualizing-the-harmonics"&gt;Visualizing the Harmonics&lt;/h2&gt;
&lt;p&gt;Each spherical harmonic corresponds to a particular &lt;strong&gt;frequency pattern on the sphere&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Low-degree harmonics represent &lt;strong&gt;smooth variations&lt;/strong&gt;, while higher-degree harmonics represent &lt;strong&gt;finer oscillations&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Conceptually:&lt;/p&gt;</description></item></channel></rss>