<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by ayilara on Medium]]></title>
        <description><![CDATA[Stories by ayilara on Medium]]></description>
        <link>https://medium.com/@idrisayilara54?source=rss-8f9dcd0c845c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-auuraKMT-x47IOcnfIwHw.jpeg</url>
            <title>Stories by ayilara on Medium</title>
            <link>https://medium.com/@idrisayilara54?source=rss-8f9dcd0c845c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:29:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@idrisayilara54/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Philosophy of Determinism]]></title>
            <link>https://medium.com/@idrisayilara54/the-philosophy-of-determinism-3ff9191643f0?source=rss-8f9dcd0c845c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ff9191643f0</guid>
            <dc:creator><![CDATA[ayilara]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 20:12:25 GMT</pubDate>
            <atom:updated>2026-10-20T20:12:25.207Z</atom:updated>
            <content:encoded><![CDATA[<p>Suppose you had the ability to predict the exact time and location of an earthquake before it happens, or possess complete knowledge of the movements of every celestial body in the universe, allowing you to predict every asteroid’s path, every syzygy, and even the death of every star. Such abilities might be possible for a hypothetical being equipped with complete knowledge of the universe’s physical state, accurate models of its governing laws, and unlimited computational resources. The mathematician Pierre-Simon Laplace imagined such a being in what is now commonly known as <strong>Laplace’s demon</strong>.</p><p>Determinism holds that the state of a system at any given time, together with the laws governing it, determines its subsequent state. Applied to the universe, this means that if its complete initial conditions and governing laws were known, its future would follow from them. Under this view, events do not occur independently of what preceded them. They arise from an interconnected chain of causes and effects.</p><p>The implications for human beings are profound. If our decisions are determined by prior conditions, how much control do we really have over our actions? Are we genuinely free to choose between alternatives, or are our choices the inevitable outcomes of events that began long before we were born?</p><p>To explore these questions, imagine two friends meeting at a café for coffee and a discussion about work. One is a determinist; the other believes in libertarian free will, the philosophical position that genuine free will exists and that at least some human choices are not predetermined by prior conditions.</p><p>Across their table, a couple is playing chess. The determinist notices the game and draws his friend’s attention to it.</p><p><strong>The Determinist:</strong> Hey! Look over there. Are you familiar with the rules of chess?</p><p><strong>The Libertarian:</strong> Oh, yes. I played a little back in college.</p><p><strong>The Determinist:</strong> Then consider this. At almost every stage of a chess game, a player has several legal moves available. Each move leads to a different possible continuation of the game. Yet I argue that if the player’s brain state, memories, personality, environment, the position on the board, and every other relevant condition were exactly the same, the player could not make a different move.</p><p><strong>The Libertarian:</strong> Why not? The player can consider several moves, weigh their consequences, and choose whichever seems best. The fact that his experiences and personality influence his decision doesn’t prove that he lacks the freedom to choose differently.</p><p><strong>The Determinist:</strong> I agree that he considers alternatives. But could he genuinely have chosen another move if absolutely everything preceding his decision had been identical?</p><p><strong>The Libertarian:</strong> I believe he could. He might have chosen a different move.</p><p><strong>The Determinist:</strong> But what would make him choose differently? His knowledge of chess, his memories of previous games, his current state of mind, and his assessment of the board all contribute to his decision. If all those conditions were identical, what would account for a different outcome?</p><p><strong>The Libertarian:</strong> You’re assuming that those conditions completely determine his decision. I accept that they influence him, but I don’t accept that they determine everything he does.</p><p><strong>The Determinist:</strong> Then what completes the decision? If it isn’t determined by the conditions that came before it, what makes him choose one move rather than another?</p><p><strong>The Libertarian:</strong> He does. He is not merely a collection of past events. He can reflect on his reasons and exercise his will.</p><p><strong>The Determinist:</strong> But you are not separate from your brain, memories, experiences, desires, and reasoning. Those are part of what makes you who you are. If they don’t fully determine your choice, what role does your will play that isn’t already accounted for?</p><p><strong>The Libertarian:</strong> You’re treating a person as though he were just a machine whose output can be calculated from its inputs. Human beings can think about their own thoughts, question their desires, and reconsider their beliefs. We can act for reasons rather than simply react to circumstances.</p><p><strong>The Determinist:</strong> But why does the person reconsider one belief rather than another? Why does one argument persuade him while another fails? Reflection and reasoning are processes too. They have causes, even if those causes are complicated.</p><p><strong>The Libertarian:</strong> Having causes doesn’t necessarily mean that an outcome is unavoidable. You are moving from the claim that previous events affect decisions to the claim that only one decision is possible.</p><p><strong>The Determinist:</strong> That is a fair distinction. But determinism makes the stronger claim: given the same complete state of the world and the same governing laws, the same outcome follows. If a different outcome occurred, then either the prior conditions weren’t identical or the evolution wasn’t deterministic.</p><p><strong>The Libertarian:</strong> And I would question whether human decisions are determined in that way. I believe that at least some choices leave genuinely open alternatives.</p><p><strong>The Determinist:</strong> Then let me ask you something. Suppose you choose to move a chess piece. You could have moved a different piece, you say. But if the choice wasn’t determined by everything that came before it, what explains why you chose that particular piece?</p><p><strong>The Libertarian:</strong> The choice came from me. It came from my judgment and my will.</p><p><strong>The Determinist:</strong> But your judgment has a history. Your knowledge, preferences, and ability to assess the position were shaped by your experiences. If your decision was not determined by those things, does that mean it happened without a sufficient explanation?</p><p><strong>The Libertarian:</strong> Not necessarily. An action can be mine without being predetermined. I can be the source of a choice without that choice being inevitable.</p><p><strong>The Determinist:</strong> But if two possible choices were equally consistent with the complete prior conditions, what made one happen instead of the other? If nothing explains the difference, how is the choice anything more than arbitrary?</p><p>The libertarian pauses to consider the question.</p><p><strong>The Libertarian:</strong> You’re raising a serious problem. But I don’t think the alternatives are simply determination or randomness. A choice might be undetermined without being random in the ordinary sense. It could still arise from my reasons, intentions, and deliberation.</p><p><strong>The Determinist:</strong> But if those reasons and intentions don’t settle the outcome, what does? If they do settle it, then the decision seems determined after all.</p><p><strong>The Libertarian:</strong> Perhaps our understanding of free will is incomplete. I don’t have to claim that choices are random. I claim that people can genuinely exercise control over which possibility becomes reality.</p><p><strong>The Determinist:</strong> Then we need to explain what that control consists of. Otherwise, we risk giving it a name without explaining how it works.</p><p>The two friends fall silent for a moment. Across the table, one of the chess players moves a knight.</p><p><strong>The Libertarian:</strong> Let me ask you a different question. If determinism is true, does that mean we have no control over our lives?</p><p><strong>The Determinist:</strong> Not necessarily. It depends on what you mean by control. If I decide to study for an examination, my decision can cause me to study, and studying can affect my result. My actions make a difference to what happens next.</p><p><strong>The Libertarian:</strong> But if your decision was already determined by prior conditions, could you really have done anything else?</p><p><strong>The Determinist:</strong> Not if every relevant condition had been exactly the same. But that doesn’t mean my decision was irrelevant. My deliberation, effort, and actions are part of the chain of causes that produces the result.</p><p><strong>The Libertarian:</strong> So you believe that I can influence the future, even though I cannot ultimately choose differently from the way I do?</p><p><strong>The Determinist:</strong> Yes. Determinism doesn’t mean the future happens regardless of our actions. It means that our actions are among the causes through which the future happens.</p><p><strong>The Libertarian:</strong> That sounds very close to saying that we are free as long as we act according to our own desires.</p><p><strong>The Determinist:</strong> Perhaps. If I choose coffee because I enjoy it, and nobody forces me to drink it, I would ordinarily say that I chose freely. The fact that my preferences have causes doesn’t automatically mean someone else made the choice for me.</p><p><strong>The Libertarian:</strong> But you didn’t choose your original preferences. You didn’t choose your genes, your parents, your childhood, or the experiences that shaped your personality. How can you be ultimately responsible for a decision that arises from conditions you never chose?</p><p><strong>The Determinist:</strong> That is a difficult question. But if being free requires that you be the ultimate creator of yourself, how could anyone ever qualify? You would have had to create the very person who was supposed to create you.</p><p><strong>The Libertarian:</strong> I don’t think I need to create myself from nothing. I only need to be capable of directing my actions through my own judgment and will.</p><p><strong>The Determinist:</strong> Then perhaps we disagree about what freedom requires. You believe that genuine freedom means being able to choose between alternatives even when the prior conditions are fixed. I believe that freedom might instead consist in acting through your own reasoning and desires, without coercion, even if those processes have causes.</p><p><strong>The Libertarian:</strong> But if that is all freedom means, then you haven’t shown that free will exists in the sense I’m defending. You’ve offered a different definition of it.</p><p><strong>The Determinist:</strong> That’s true. Philosophers call the position that free will can be compatible with determinism <em>compatibilism</em>. It argues that being free doesn’t necessarily require that the past could have unfolded differently.</p><p><strong>The Libertarian:</strong> And I disagree with that. If the past and the laws of nature fixed my decision before I made it, I don’t see how I could have genuinely chosen otherwise.</p><p><strong>The Determinist:</strong> Then perhaps the central question is whether freedom requires alternative possibilities or whether it is enough that an action comes from the person, their reasons, and their intentions.</p><p>The libertarian looks back at the chessboard. The game is almost over.</p><p><strong>The Libertarian:</strong> There’s another thing I want to ask. Suppose determinism is true. Does that mean the future is like a script, with every event already written?</p><p><strong>The Determinist:</strong> Not quite. A script suggests that someone wrote the events in advance. Determinism doesn’t require a writer or an external plan. It says that the future follows from the universe’s state and its governing laws.</p><p><strong>The Libertarian:</strong> So determinism doesn’t necessarily mean that we have a destiny in the sense of being guided toward some intended purpose?</p><p><strong>The Determinist:</strong> Correct. Determinism and destiny are not identical. Determinism is about the relationship between prior conditions and subsequent events. Destiny often suggests a predetermined course or endpoint, sometimes with a sense of purpose. And fatalism is different again: it suggests that an outcome will occur regardless of what we do. Under determinism, what we do still matters because our actions help bring about that outcome.</p><p><strong>The Libertarian:</strong> Then if someone becomes a doctor after years of study, their effort is part of the explanation for their becoming a doctor, even if determinism is true?</p><p><strong>The Determinist:</strong> Exactly. Their effort, opportunities, education, decisions, and circumstances all contribute. Determinism doesn’t say that they become a doctor regardless of whether they study. It says that their studying and its consequences are themselves part of the causal process.</p><p><strong>The Libertarian:</strong> But this raises another problem. If our actions are determined, are we really responsible for them? Suppose someone commits a crime. If their behaviour results from their upbringing, circumstances, and brain state, how can we say they deserve blame?</p><p><strong>The Determinist:</strong> We can still hold people accountable. Their actions have consequences, and society may need to protect people, deter harmful behaviour, and rehabilitate offenders. Understanding the causes of an action doesn’t mean pretending the action never happened or that its consequences don’t matter.</p><p><strong>The Libertarian:</strong> But is that genuine moral responsibility, or is it simply a practical way to manage society?</p><p><strong>The Determinist:</strong> That depends on what moral responsibility requires. If it requires that a person could have acted differently under precisely the same conditions, determinism presents a serious challenge. If it requires that the person understood what they were doing and acted through their own reasoning rather than under coercion, the answer might be different.</p><p><strong>The Libertarian:</strong> So even our understanding of blame and responsibility depends on how we answer the free-will question.</p><p><strong>The Determinist:</strong> Yes. And that’s why this debate matters beyond philosophy. It affects how we think about justice, punishment, praise, regret, and even how we judge ourselves.</p><p>The chess players finally finish their game. One extends his hand across the table, and the other shakes it.</p><p><strong>The Libertarian:</strong> Good game.</p><p>The determinist watches them pack away the pieces.</p><p><strong>The Determinist:</strong> Tell me something. Did they choose to play chess?</p><p><strong>The Libertarian:</strong> Of course they did.</p><p><strong>The Determinist:</strong> And if determinism is true?</p><p><strong>The Libertarian:</strong> Then their decision was determined by the conditions that preceded it.</p><p><strong>The Determinist:</strong> Does that make the game meaningless?</p><p>The libertarian looks at the empty board.</p><p><strong>The Libertarian:</strong> I don’t think so. But I’m still not convinced that being determined is compatible with being free.</p><p><strong>The Determinist:</strong> And I’m not convinced that a choice needs to be undetermined to be meaningful.</p><p>Neither friend has settled the argument. Their coffee is nearly finished, and the ordinary business of the day awaits them. Yet the question remains.</p><p>We experience ourselves as agents making decisions every day. We deliberate, weigh reasons, change our minds, regret our actions, and imagine what might have happened if we had chosen differently. Determinism asks whether these experiences establish that we could genuinely have acted otherwise, or whether they are part of the very causal processes that produce our decisions.</p><p>The question is not simply whether our actions have causes. Our actions clearly arise from our biology, experiences, beliefs, desires, and circumstances. The harder question is whether those causes make us less free or whether freedom has been misunderstood as the absence of causes altogether.</p><p>Perhaps the most unsettling implication of determinism is not that our choices are meaningless, but that we may not be the ultimate authors of the people we have become. Yet the fact that we did not choose our beginnings does not settle what freedom, responsibility, or agency should mean.</p><p><strong>If the universe’s past and its laws determine what happens next, what would it take for us to be genuinely free?</strong></p><p>That is the question the two friends leave the café with and one that remains open for us as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ff9191643f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Double Pendulum: Chaos in Nature]]></title>
            <link>https://medium.com/@idrisayilara54/the-double-pendulum-chaos-in-nature-a5fb8565d56e?source=rss-8f9dcd0c845c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5fb8565d56e</guid>
            <category><![CDATA[philosophy-of-science]]></category>
            <category><![CDATA[numerical-computation]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[lagrangian]]></category>
            <dc:creator><![CDATA[ayilara]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 15:35:15 GMT</pubDate>
            <atom:updated>2026-10-14T15:35:15.993Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Chaos: When the present determines the future but the approximate present does not approximately determine the future. — Edward Lorenz</blockquote><p>Determinism, in my opinion, is a limitation placed by the universe on us.</p><p>Armed with physical laws governing the evolution of systems, we can study and predict the behaviour of relatively simple systems, such as simple harmonic oscillators and projectiles. Yet these same laws, when applied to certain dynamical systems over long periods, reveal a fundamental limitation in our ability to predict the future.</p><p>Given an exact set of initial conditions, deterministic laws theoretically predict the future evolution of a system. But when we attempt to reproduce this evolution through experiments, computational simulations, or observations of the natural world, we encounter an unavoidable problem: we can never specify or represent the initial conditions with perfect precision. Measurements have finite accuracy, and computational simulations introduce numerical errors, including those arising from finite-precision arithmetic.</p><p>In many systems, these small errors may remain sufficiently small that long-term predictions remain useful. However, they can grow exponentially with time in chaotic systems, eventually rendering long-term predictions unreliable. This timescale of practical predictability is closely related to what is known as the Lyapunov time.</p><p>In a sense, the limitation lies not in determinism itself, but in the relationship between our imperfect knowledge of the present and the dynamics governing its evolution. Even a simple system, such as the projectile, will deviate from its predicted trajectory when its initial conditions or the physical model are imperfect. In a chaotic system such as the double pendulum, however, tiny differences in initial conditions can produce dramatically different outcomes.</p><p>The laws may determine the future. But how precisely must we know the present to discover what that future will be?</p><h4>The Physics of Double Pendulums</h4><p>A double pendulum is a system consisting of two pendulums coupled together. Here, the first is attached to a fixed pivot, while the second is attached to the end of the first. The motion of each pendulum influences the other, creating a coupled dynamical system with behaviour far more complex than that of a simple pendulum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6R-AlLazwbTJ9r--2iydlw.jpeg" /><figcaption>Figure 1: A Double Pendulum</figcaption></figure><p>When displaced from its stable equilibrium and released, the system begins to move under the influence of gravity. Depending on its initial conditions, the resulting motion can range from relatively regular and periodic to highly chaotic. When the system exhibits chaotic motion, it exhibits strong sensitivity to initial conditions such that even tiny differences in the starting positions or velocities of the pendulums can eventually lead to dramatically different trajectories.</p><p>This sensitivity is what makes long-term prediction difficult. Two double pendulums that begin with almost identical initial conditions may initially follow nearly identical paths, only to diverge significantly as time progresses.</p><p>However, it is important to note that the double pendulum is not inherently chaotic for every possible set of initial conditions. Certain initial conditions produce relatively regular motion, while others place the system in a chaotic state. Chaos is therefore not simply a property of the double pendulum itself, but of the dynamics that emerge from particular regions of its phase space.</p><h4>Equations of Motion</h4><p>To understand and simulate the double pendulum, we first need to establish a physical framework with which to model the system. While Newton’s laws of motion can be used to derive the equations governing many physical systems, we will instead use the Lagrangian framework to derive the equations of motion for the double pendulum.</p><p>Compared with the Newtonian formulation of mechanics, which describes motion in terms of forces, Lagrangian mechanics provides an alternative formulation based on the energies of a system. This approach is useful for systems with multiple interacting components, where directly accounting for every force can lead to complex mathematics.</p><p>At the heart of Lagrangian mechanics is a physical quantity called the Lagrangian, denoted by L. It is defined as the difference between the total kinetic energy, T and the total potential energy, V: <strong>L = T — V</strong>, where (T) is the total kinetic energy of the system and (V) is its total potential energy.</p><p>To derive the equations of motion from the Lagrangian, we use the <strong>Euler — Lagrange equation</strong>, which is given by</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*lbqI_mJ_MGwY05TBq5Qd3Q.png" /></figure><p>where L is the Lagrangian, qᵢ represents a generalized coordinate describing the configuration of the system, and q̇ᵢ is its time derivative (generalized velocity).</p><p>For the double pendulum, the two generalized coordinates are the angular positions θ₁ and θ₂ as shown in Figure 1. Applying the Euler — Lagrange equation to each coordinate gives us two coupled equations of motion.</p><p>To derive these equations, we first express the positions of the two pendulums in terms of their Cartesian components, x and y:</p><figure><img alt="Image of x1 and y1 components" src="https://cdn-images-1.medium.com/max/276/1*J8q0mdd6fr104PwrLoZWIA.png" /></figure><figure><img alt="Image of x2 and y2 component" src="https://cdn-images-1.medium.com/max/335/1*CNI-3QTm3Gs8puyQ-sKfKg.png" /></figure><p>Differentiating these components with respect to time gives the corresponding velocity components:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*TXkE0oImv2DOFGiPG5fsbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*7_8IYUSKgNCr45hSo3dCKw.png" /></figure><p>We can then use these positions and velocities to determine the total kinetic energy (T) and potential energy (V) of the system. Substituting these expressions into the Lagrangian, defined as L = T — V, gives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*0KtjVY6ZRaDgdWUVbr-Q9Q.png" /></figure><p>Hence, the Lagrangian becomes,</p><figure><img alt="Result of the Lagrangian" src="https://cdn-images-1.medium.com/max/858/1*pHoNORKRFfOahiSUnO5tHw.png" /></figure><p>Substituting L into the Euler-Lagrange equations and simplifying gives the coupled nonlinear equations of motion:</p><figure><img alt="Equation of motion 1" src="https://cdn-images-1.medium.com/max/781/1*U_kbm5DjsASZJj5Vwg1a1w.png" /></figure><figure><img alt="Second equation of motion" src="https://cdn-images-1.medium.com/max/636/1*txVDLe95iNRuUidVNZow4Q.png" /></figure><p>These equations describe the coupled dynamics of the two pendulums as a system of nonlinear, second-order ordinary differential equations. Given the system parameters and <strong>exact</strong> initial positions and velocities, the equations determine the subsequent motion, assuming the idealized model applies.</p><p>Yet, as we will see, deterministic equations do not necessarily imply predictable long-term behaviour. Even when the governing laws are known, tiny uncertainties in the initial conditions can lead to significantly different trajectories in a chaotic system.</p><h4>Numerical Simulation of the Double Pendulum</h4><p>I implemented the double pendulum simulation in Python using SymPy, NumPy, and Matplotlib. First, SymPy was used to solve the coupled equations of motion for the angular accelerations. These expressions were then converted into numerical functions using lambdify.</p><p>The system was represented by four state variables: the two angular positions and their angular velocities. I implemented the fourth-order Runge–Kutta (RK4) method to integrate the resulting first-order differential equations over time.</p><p>Finally, I converted the calculated angular positions into Cartesian coordinates and used Matplotlib’s animation tools to visualize the motion of the pendulums shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2hye6CJ15CFHB1ltPv9dsw.gif" /><figcaption>Figure 2: Simulating the double pendulum</figcaption></figure><p>The complete implementation and simulation code are available on my <a href="https://github.com/Funbi123/The-Double-Pendulum">GitHub repository</a>.</p><h4>The Butterfly Effect</h4><p>To demonstrate the system’s sensitivity to initial conditions, I ran two simulations of the double pendulum with nearly identical initial conditions. The only difference was a tiny change in the initial angle of one of the pendulums.</p><p>At first, the two systems followed almost identical trajectories. As time progressed, however, their motions began to diverge, eventually producing noticeably different configurations despite the small difference in their initial conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Q9adXvjd4ICSeoMUkFOe2Q.gif" /><figcaption>Figure 3: Simulating the double pendulum: Butterfly effect</figcaption></figure><p>This behaviour illustrates a defining characteristic of chaotic systems: sensitive dependence on initial conditions. In such systems, small initial differences can grow rapidly over time, limiting how far into the future we can reliably predict their behaviour.</p><p>This phenomenon is often associated with the <strong>butterfly effect</strong>, a concept popularized by meteorologist and mathematician Edward Lorenz. It is commonly described through the metaphor of a butterfly flapping its wings and influencing the development of a distant weather crises. The point is not that every small disturbance causes a major event, but that in certain complex systems, tiny differences can be amplified until they lead to substantially different outcomes.</p><p>The double pendulum provides a mechanical illustration of this principle. Its motion follows deterministic equations, yet predicting its long-term trajectory requires sufficiently accurate knowledge of its initial state. Even when the mathematical model is known, uncertainty in those initial conditions can eventually overwhelm the accuracy of our predictions.</p><p>Chaos, therefore, does not mean that the future is undetermined. Rather, it reveals a distinction between a future governed by deterministic laws and a future that we can practically predict.</p><h4>Conclusion</h4><p>The double pendulum is one of many complex systems that allows us to study the relationship between determinism and predictability. Its motion is governed by deterministic laws, yet tiny uncertainties in its initial conditions can grow over time, making long-term prediction increasingly difficult.</p><p>Maybe the universe does not hide the future from us; maybe it simply demands a precision we can never fully attain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5fb8565d56e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The three-body problem]]></title>
            <link>https://medium.com/@idrisayilara54/the-three-body-problem-ea17d4bab94d?source=rss-8f9dcd0c845c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea17d4bab94d</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[numerical-computation]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[ayilara]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 22:07:56 GMT</pubDate>
            <atom:updated>2026-09-28T22:08:55.582Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Three-Body Problem</h3><p>Chaos and stability seem like concepts that can’t coexist within the same system. That’s only partly true. A system can be entirely deterministic and still be unpredictable if it is sensitive enough to its initial conditions. Small perturbations, given enough time, can send such a system into results no one could have foreseen. It’s a strange idea: a system governed by fixed physical laws, yet resistant to prediction.</p><p>However, chaos doesn’t necessarily mean instability. Given specific initial conditions, a system that is chaotic can remain stable over a relatively long period. This piece explores the three-body problem using fundamental physical laws, and simulates its behaviour through numerical integration.</p><p>In my previous articles, I investigated coupled systems governed by a restoring force, like the coupled harmonic oscillator, where a spring pulls each mass back toward equilibrium. Here, the coupling is different: a central force, like gravity, where no such equilibrium exists and nothing pulls the system back to where it started.</p><h3>The classical three-body problem</h3><p>Newton’s law of universal gravitation and his laws of motion provide a comprehensive framework for approaching the physics of any classical coupled system. These laws yield equations of motion that fully describe how the system evolves. But having the equations isn’t the same as solving them. Further mathematical methods are needed to extract information about the state as closed-form analytic solutions. For relatively simpler systems such as the two-body problem or the coupled harmonic oscillator, there exist analytic solutions for which the states of the systems are defined. The three-body problem, however, has no general solution in the familiar closed-form sense. Or does it?</p><p>The three-body problem is often presented as an unsolvable mystery that has eluded scientists since Newton formulated his gravitational law for the behaviour of any two masses. For two bodies, the resulting system of differential equations can be solved exactly. The motion is always confined to a plane, since angular momentum is conserved, so the state is described by eight phase-space dimensions (the position and velocity components of the two bodies). The two-body system reduces to an equivalent one-body problem, which is solvable.</p><p>However, when a third body is added, each body tugs on the other two in proportion to their masses. Nothing forces this system to remain in a plane. To keep things visual, I will explore this problem in a plane. This is not an approximation, since planar initial position and velocity components produce motion that is planar forever. In the planar three-body problem, we obtain differential equations with twelve phase-space dimensions. This system of equations is much harder to reduce to a solvable form. Why?</p><p>The differential equations describing motion in a three-body system are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*0RBNJ-kKH_tQ3RXN10WUpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*AaAimvXlDOIIsfneHk7S_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*R1Eb4Y0CpnQJOIwVsXrmDw.png" /></figure><p><em>Here,</em> <strong>r</strong>ᵢ <em>is the position vector of body i, mᵢ is its mass, and G is the gravitational constant. The double dot denotes the second derivative with respect to time (acceleration), and the index runs over the three bodies (i = 1, 2, 3).</em></p><p>Each of these is a vector equation. Written in components, the three equations become nine scalar second-order equations in three dimensions, or six in the plane. Since each second-order equation needs a position and a velocity to specify its state, this gives the twelve phase-space dimensions of the planar problem.</p><p>The right-hand side of the equations above shows that the acceleration of any body depends on the positions of the other two, which are also changing with time. It is therefore impossible to solve any one equation in isolation, so the equations must be solved simultaneously. This is the coupling: every body’s motion is bound up with the other two.</p><p>Coupling alone isn’t the obstacle, since coupled oscillators and the two-body system both have exact solutions. The real limitation is a shortage of conserved quantities. The planar problem has six: energy, angular momentum, and the center-of-mass motion (two components of linear momentum and two of position). For two bodies, these six, roughly speaking, reduce the eight-dimensional phase space to two dimensions, which can be integrated analytically. For three bodies, the same six leave six of the twelve dimensions unresolved. Adding a body adds four dimensions but no new conservation laws. At the end of the nineteenth century, Poincaré showed that no further independent conserved quantities of the usual kind exist, so the system cannot be reduced by the classical methods.</p><p>If the problem cannot be reduced analytically, the only path left is to compute the motion step by step.</p><h3>Numerical solutions of the three-body problem</h3><p>Numerical integration doesn’t solve the three-body problem in general. It computes one trajectory at a time, for a chosen set of initial conditions, by advancing the equations of motion in small time steps. I use the fourth-order Runge-Kutta method (RK4), which estimates the acceleration at four points within each step and combines them into a weighted average. The error shrinks rapidly as the step size h is reduced (the accumulated error scales as h⁴), so RK4 is accurate without being complicated.</p><p>I set the gravitational constant G and all three masses to 1, use a step size of h = 0.01, and integrate for 30 time units. The resulting trajectories are shown in the animation below, starting from the initial conditions in the table. The full code is in my <a href="https://github.com/Funbi123/Three-Body_Problem">GitHub repository</a>. You can interact with it and test out other initial condition values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*lGa8aXss6UP7h77bnHKA3w.png" /><figcaption>Initial conditions for position and velocity</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*IOIWy0DiWkN1QMHZlPcrCQ.gif" /><figcaption>Figure 1: Trajectories of three equal masses under mutual gravitational attraction (h = 0.01). Motion after t ≈ 10 is numerically unreliable (see Figure 2).</figcaption></figure><p>It is not perfect, though. RK4 doesn’t preserve the geometric structure of gravitational motion, so the total energy slowly drifts even though it should stay constant. That drift is useful. Plotting the relative energy drift against time gives a direct check on the simulation: if it stays small to within a small tolerance, the numerics are obeying the physics. Close encounters are where it fails first, because the force grows as 1/r² when two bodies pass near each other, and a fixed step size can no longer resolve the motion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*kr4nHp7SgMwTceYYHUIMhA.png" /><figcaption>Figure 2: Energy drift with step size h = 0.01</figcaption></figure><p>Figure 2 shows the relative energy drift on a logarithmic scale. It starts at machine precision and grows to about 10⁻⁷ by t ≈ 2, then stays between 10⁻⁷ and 10⁻⁶ until t ≈ 10. At t ≈ 10, the drift jumps by six to seven orders of magnitude, to about 0.5. This is the signature of a close encounter: two bodies pass near each other, the 1/r² force spikes, and a step of h = 0.01 is too coarse to follow it. After that point, the accumulated numerical error becomes large enough that the computed trajectory can no longer be considered a reliable approximation to the physical solution.</p><p>Numerical methods let us compute the motion, but they don’t tell us whether a formula exists.</p><h3>The search for analytic solutions</h3><p>Numerical methods have grown far more sophisticated, but they still compute one trajectory at a time. Is there a general formula? Poincaré’s result seemed to close the question, though what he showed was only the assertion that no further conserved quantities of the classical kind exist to reduce the problem.</p><p>In 1912, the Finnish mathematician Karl Sundman proved that the general three-body problem does have an analytic solution, in the form of a convergent infinite series known as the Puiseux series. It holds for all time and for every initial condition with non-zero total angular momentum. The only catch with this solution is convergence: the series needs an astronomically large number of terms (on the order of 10⁸⁰⁰⁰⁰⁰⁰) to reach useful precision. It is a solution in principle and useless in practice, because the amount of terms needed cannot be handled by any physical machine.</p><h3>What I think</h3><p>What the three-body problem ultimately demonstrates is that determinism and predictability are not the same thing. The equations completely determine the future once the initial state is specified, yet the system can remain extraordinarily sensitive to tiny changes in that state. Numerical error adds another layer of uncertainty: even a tiny error introduced by the integration method can behave like a perturbation to the initial conditions and grow over time.</p><p>That is what makes the problem so interesting. The equations themselves are deterministic. The difficulty is not that nature has stopped following a rule; it is that the consequences of those rules can become extraordinarily difficult to predict.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea17d4bab94d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Numerically Simulating the Coupled Oscillator Lattice]]></title>
            <link>https://medium.com/@idrisayilara54/numerically-simulating-the-coupled-oscillator-lattice-3c4b5d96e935?source=rss-8f9dcd0c845c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c4b5d96e935</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[ayilara]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 22:04:47 GMT</pubDate>
            <atom:updated>2026-09-28T22:04:48.894Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@idrisayilara54/coupled-oscillators-from-springs-and-masses-to-phonons-ae58de6215ea">A few articles ago</a>, I solved the coupled oscillator system analytically, first for two masses, then for a chain of N atoms connected by springs, arriving at the dispersion relation ω(k) that governs allowed vibrations in a crystal lattice. This time, I want to see that system in motion directly, by simulating it numerically. Unlike systems with no closed-form analytic solutions, this system has an exact answer already in hand, so the simulation isn’t the only way to know what happens. It’s a way to watch it happen, and a check on the analytic result.</p><h3><strong>Setting up the Lattice</strong></h3><p>For a chain of N identical masses m, connected to their neighbors and to two fixed walls by springs of stiffness k, the equation of motion for the nth particle is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*MmTEe8fQRccfPY0q4OwUHA.png" /></figure><p>where u_n is the displacement of particle n from its equilibrium position. Each particle feels a restoring force from both of its neighboring springs, and the two contributions can reinforce or cancel depending on how the neighbors are displaced. This is the same coupling I derived analytically before, now written per-particle rather than solved as a system of N equations at once.</p><h3>Choosing an Integrator</h3><p>I integrate the system using the semi-implicit Euler method: at each timestep, the acceleration is computed from the current positions, the velocity is updated using that acceleration, and the position is then updated using the <em>new</em> velocity. This ordering matters. Unlike plain (explicit) Euler, which lets energy grow without bound, and unlike RK4, which produces a slow drift, semi-implicit Euler tends to keep the total energy oscillating around its true value rather than drifting away from it. For a lattice with many springs, that stability matters more than raw accuracy per step.</p><h3><strong>Running the Simulation</strong></h3><p>I built a small Lattice class in Python, with Particle, Spring, and Wall objects representing the physical pieces of the system. For this run: 10 particles, mass m = 2, stiffness k = 100, natural spring length 7.0, and a timestep of 0.0005. I displace the fifth particle by a small amount from equilibrium and let the system evolve for 10,000 steps, or 5 time units.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGi3rRR8DLYwntIoWOFjww.png" /><figcaption>Figure 1: Total Energy versus Time.</figcaption></figure><p>Figure 1 shows the evolution of the energy over the course of the simulation. Unlike RK4’s slow drift, the semi-implicit Euler method keeps the energy oscillating within a small, bounded range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*NOTyOA3t9UTRFK1-6FRDIg.gif" /><figcaption>Figure 2: Spatial displacement profile over time.</figcaption></figure><p>Figure 2 shows the displacement of every particle in the lattice, snapshotted at intervals. The initial disturbance splits and travels outward as a wave, reflecting off the fixed walls at either end.</p><p>The full code is available in my <a href="https://github.com/Funbi123/1D-Lattice-Vibration-Simulation">GitHub Repository</a>. You can interact with it and test out other parameter values.</p><h3><strong>What this shows</strong></h3><p>A single particle nudged out of equilibrium doesn’t stay isolated. Because every particle is coupled to its neighbors, the disturbance spreads through the lattice as a wave, exactly the behaviour the dispersion relation predicts. Where the two-mass system gave us a beat pattern between two normal modes, ten coupled masses give something closer to a travelling pulse, made up of many normal modes superposed. This is the same physics from the referenced article, just watched directly rather than derived.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c4b5d96e935" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fourier Modes in a Crystal Lattice]]></title>
            <link>https://medium.com/@idrisayilara54/fourier-modes-in-a-crystal-lattice-54c8b08aeba7?source=rss-8f9dcd0c845c------2</link>
            <guid isPermaLink="false">https://medium.com/p/54c8b08aeba7</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[quantum-physics]]></category>
            <category><![CDATA[materials-science]]></category>
            <dc:creator><![CDATA[ayilara]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 16:55:07 GMT</pubDate>
            <atom:updated>2026-07-04T16:55:07.635Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>…to understand the vibrations of matter, first understand the vibrations of springs…</blockquote><p>In our <a href="https://medium.com/@idrisayilara54/coupled-oscillators-from-springs-and-masses-to-phonons-ae58de6215ea">previous article</a>, we explored the behavior of coupled oscillators and discovered that their motion can be described as a superposition of <strong>normal modes</strong>, each oscillating at its own characteristic frequency. Rather than moving independently, the oscillators exhibit collective patterns of motion in which every part of the system oscillates with a fixed phase relationship. More generally, any arbitrary motion of the coupled system can be expressed as a linear combination of these normal modes.</p><p>Although this provided a complete description of the simplest coupled system consisting of two oscillators, real physical systems are far more complex. A crystal, for example, contains an enormous number of atoms, each interacting with its neighbouring atoms through interatomic forces. Attempting to describe the motion of every individual atom by writing one equation of motion for each quickly becomes impractical.</p><p>Fortunately, the mathematical ideas developed for two coupled oscillators extend naturally to systems containing many oscillators. Instead of tracking each atom individually, we search for collective patterns of vibration that involve the entire lattice. As we shall see, these collective vibrations are most naturally described by <strong>Fourier modes </strong>which are sinusoidal waves that propagate through the crystal. This perspective not only simplifies the mathematics but also provides the foundation for one of the most important concepts in condensed matter physics: the <strong>phonon</strong>, the quantum of lattice vibration.</p><h3>From Two Oscillators to a One-Dimensional Crystal</h3><p>To understand how vibrations propagate through a solid, we must first develop a mathematical model for the arrangement of its atoms. Although a real crystal contains an enormous number of atoms in the order of Avogadro’s number, they are not distributed randomly. Instead, they are arranged in a highly ordered and repeating pattern.</p><p>A <strong>crystal</strong> is a solid material whose constituent atoms are arranged in a regular periodic structure. To describe this mathematically, physicists introduce the concept of a <strong>crystal lattice</strong> which is an idealized, periodic array of points in space representing the equilibrium positions occupied by the atoms. Rather than tracking the detailed structure of every atom, the lattice captures the underlying geometric arrangement responsible for many of the crystal’s physical properties.</p><p>For simplicity, we shall consider the simplest possible crystal model: a <strong>one-dimensional lattice</strong> consisting of identical atoms of mass m equally spaced and connected to their nearest neighbours by identical springs of stiffness S. Although greatly simplified, this model captures the essential physics of lattice vibrations and serves as the foundation for understanding wave propagation in solids.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1H9mEGH9n3s7Qdh8Z6B6BA.jpeg" /><figcaption><strong>Figure 1. </strong>Mass-spring lattice system</figcaption></figure><p>When one atom is displaced from its equilibrium position, it exerts forces on its neighbouring atoms through the connecting springs. Those neighbouring atoms, in turn, influence the motion of the next atoms, causing the disturbance to propagate throughout the lattice. Unlike the two-oscillator system studied previously, the motion now involves the collective interaction of a very large number of oscillators, making it impractical to solve the equations of motion one atom at a time. We therefore seek a new description of the system, one based on its collective modes of vibration.</p><h3>Equations of Motion</h3><p>Having established a mathematical model for our crystal, we now describe how each atom moves. Consider a one-dimensional chain of identical atoms, each of mass m, separated by an equilibrium distance a and connected to their nearest neighbours by identical springs of stiffness S.</p><p>Let u<strong>ₙ</strong>(t) denote the displacement of the n-th atom from its equilibrium position at time t. If every atom remains at its equilibrium position, the springs are unstretched and no net force acts on the system. Once an atom is displaced, however, the springs connecting it to its neighbouring atoms either stretch or compress, producing restoring forces that depend on the relative displacements of adjacent atoms.</p><p>The spring joining atoms n-1 and n exerts a force proportional to the difference between their displacements, while the spring joining atoms n and (n+1) contributes a force in the opposite direction. Applying Hooke’s law to both springs gives the net restoring force acting on the n-th atom as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*-xTCVadE9y_XCDZck90dLQ.png" /></figure><p>which when expanded gives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*JNE4v3pSOHuRUOpYfLP2Sg.png" /></figure><p>Using Newton’s second law the net force on the system can be expressed by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*AAf-xkF9D7WgnHr9ltwqnQ.png" /></figure><p>which is the equation of motion governing every atom in the lattice.</p><p>Unlike the two coupled oscillators studied previously, this equation is not an isolated differential equation. Each atom is coupled to its neighbours, meaning that the motion of every atom depends on the motion of the atoms beside it. For a crystal containing billions upon billions of atoms, this leads to an equally enormous system of coupled differential equations. Solving them individually is clearly impossible.</p><p>The challenge, therefore, is not to solve for the motion of each atom separately, but to discover the collective patterns of motion hidden within the lattice. As we shall see in the next section, these collective vibrations take the form of sinusoidal waves propagating through the crystal. These waves are known as <strong>Fourier modes</strong>, and they provide the key to understanding lattice vibrations and, ultimately, phonons.</p><h3>Fourier Modes in the Crystal Lattice</h3><p>For the system of two coupled oscillators studied in the <a href="https://medium.com/@idrisayilara54/coupled-oscillators-from-springs-and-masses-to-phonons-ae58de6215ea">previous article</a>, the equations of motion could be solved by finding two normal modes. Although the mathematics became more involved than that of a single harmonic oscillator, the problem remained manageable because only two particles were interacting.</p><p>A crystal lattice, however, contains an enormous number of atoms. Each atom is coupled to its neighbouring atoms through interatomic forces, producing one equation of motion for every atom in the lattice. Since a typical crystal contains on the order of 10²³ atoms, solving these coupled differential equations individually is clearly impossible. Even with modern computational resources, such an approach provides little physical insight.</p><p>Fortunately, the periodic structure of a crystal suggests a far more elegant description. Because every atom occupies an equivalent position within the lattice, it is reasonable to expect that the collective motion of the crystal also possesses a periodic structure. Rather than vibrating independently, neighbouring atoms oscillate together in organized patterns that propagate throughout the lattice.</p><p>Our task therefore changes from determining the motion of every individual atom to identifying these collective patterns of vibration.</p><h4>A Traveling-Wave Ansatz</h4><p>The simplest collective motion is a traveling sinusoidal wave.</p><p>Instead of treating every displacement u<strong>ₙ</strong>(t) as an independent unknown, we assume:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/1*NDCmt9XFoTPUDTr2G_lWhw.png" /></figure><p>where A is the amplitude of oscillation, k is the wave number, a is the lattice spacing, n labels the position of the atom in the chain, and ω is the angular frequency of the vibration.</p><p>This expression represents a wave travelling through the crystal lattice. Every atom oscillates with the same frequency and amplitude, but atoms at different lattice sites are shifted in phase according to their position. Instead of describing billions of independent oscillations, the entire lattice is characterized by a single travelling wave.</p><p>To see this motion visually, I animated the travelling wave solution using Manim. Watch the full animation here: <a href="https://youtu.be/8HWMjsgFCQE">Youtube</a></p><p>The assumption we have made is far from arbitrary. It reflects the translational symmetry of the crystal: since each unit cell is identical to the next, the simplest motions compatible with this symmetry are periodic waves extending across the lattice.</p><h4>From Coupled Equations to the Dispersion Relation</h4><p>For a one-dimensional chain of identical atoms of mass m connected by identical springs of stiffness S, the equation of motion for the n-th atom is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*AAf-xkF9D7WgnHr9ltwqnQ.png" /></figure><p>Substituting the travelling-wave solution into this equation allows every displacement to be expressed in terms of the same exponential factor. Because the neighbouring atoms differ only by a phase shift, the common exponential term factors out of the equation, leaving behind a purely algebraic relationship between the frequency ω and the wave number k.</p><p>After simplification, we obtain:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*7PnVsRbVunuuZB1YY7ZZ9Q.png" /></figure><p>This remarkable result is known as the <strong>dispersion relation</strong> of the one-dimensional crystal lattice. Unlike the simple harmonic oscillator, whose natural frequency is determined solely by the system parameters, the frequency of a lattice vibration now depends on its wavelength through the wave number k.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*po313rQIVhB6vpXS3LbHyA.png" /></figure><p>Every allowed value of k corresponds to a distinct collective vibration of the lattice. These vibrations are the <strong>normal modes</strong> of the crystal.</p><h4>Fourier Modes</h4><p>The travelling-wave solutions we have obtained are precisely the sinusoidal functions that form the basis of Fourier analysis. Just as an arbitrary periodic function can be expressed as a superposition of sine and cosine waves, an arbitrary vibration of the crystal lattice can be written as a superposition of these travelling-wave normal modes.</p><p>For this reason, the normal modes of a crystal are often referred to as <strong>Fourier modes</strong>. Rather than following the motion of every individual atom, we describe the lattice as a combination of independent waves, each oscillating at its own characteristic frequency. This change in perspective transforms an apparently impossible many-body problem into one that can be understood using the mathematics of Fourier analysis.</p><p>In the next section, we shall see that these classical lattice vibrations acquire an entirely new physical meaning when quantum mechanics is introduced. The normal modes of vibration become quantized, giving rise to quasiparticles known as <strong>phonons</strong>, the fundamental quanta of lattice vibrations.</p><h3>From Fourier Modes to Phonons</h3><p>So far, our discussion has been entirely classical. We have treated the atoms in the crystal as tiny masses connected by springs and shown that their collective motion can be described as a superposition of travelling-wave normal modes. Each mode possesses its own characteristic frequency determined by the dispersion relation, and together these modes completely describe the vibration of the lattice.</p><p>Nature, however, tells us that atoms are not classical objects. They obey the laws of quantum mechanics. If the atoms themselves are quantum mechanical, then it is natural to ask an important question:</p><p><strong>What happens to these normal modes when the lattice is treated quantum mechanically?</strong></p><p>The answer is both elegant and profound. Rather than allowing each normal mode to possess an arbitrary amount of energy, quantum mechanics requires that the energy of every mode be quantized. Just as the energy of an electron bound inside an atom can only take discrete values, the energy stored in a lattice vibration also exists only in discrete packets.</p><p>For a normal mode of angular frequency ω, the allowed energies are</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*a0QCFLBcyI92l9KIS1neNQ.png" /></figure><p>where ℏ is the reduced Planck constant.</p><p>This expression should look familiar. It is precisely the energy spectrum of the quantum harmonic oscillator. This is no coincidence. Each normal mode of vibration behaves mathematically as an independent quantum harmonic oscillator. A crystal containing billions of atoms therefore behaves as though it were composed of billions of independent quantum oscillators, one for each normal mode.</p><p>The smallest possible excitation of one of these oscillators is called a <strong>phonon</strong>.</p><p>A phonon is not an individual atom vibrating. Instead, it is a quantum of collective lattice vibration, representing the smallest amount of vibrational energy that can be added to a normal mode. In much the same way that a photon is the quantum of the electromagnetic field, a phonon is the quantum of mechanical vibrations within a crystal lattice.</p><p>This viewpoint completely changes how we think about vibrations in solids. Rather than tracking the motion of every atom, condensed matter physics often describes the crystal as a gas of interacting phonons. Many important physical properties including heat capacity, thermal conductivity, sound propagation, and even certain mechanisms of superconductivity can be understood by studying how phonons are created, propagate through the lattice, and interact with one another and with electrons.</p><p>Remarkably, the journey from a simple spring attached to a mass has led us to one of the fundamental quasiparticles of condensed matter physics. Beginning with Hooke’s law, progressing through coupled oscillators, matrix eigenvalue problems, and Fourier modes, we arrive naturally at the quantum description of lattice vibrations. What first appeared to be an elementary mechanics problem ultimately provides the mathematical language for understanding the microscopic behaviour of matter itself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54c8b08aeba7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coupled Oscillators: From Springs and Masses to Phonons]]></title>
            <link>https://medium.com/@idrisayilara54/coupled-oscillators-from-springs-and-masses-to-phonons-ae58de6215ea?source=rss-8f9dcd0c845c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae58de6215ea</guid>
            <category><![CDATA[harmonic-oscillator]]></category>
            <category><![CDATA[quantum-physics]]></category>
            <dc:creator><![CDATA[ayilara]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 21:34:47 GMT</pubDate>
            <atom:updated>2026-06-16T21:34:47.365Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>…to master physics, first master the harmonic oscillator…</blockquote><p>From the vibrations of springs that can be observed even by the untrained eye, to the swinging motion of a playground swing, to the quiet vibrations of atoms within matter, and even to the billions of electrical oscillations that allow the device through which you are reading this article to process information every second, we are surrounded by oscillatory motion.</p><p>Oscillatory motion refers to the periodic motion of a system about an equillibrum position. When displaced from equillibrum, the system experiences a restoring force that tends to bring it back toward that position. Such motion is remarkably fundamental and serves as a powerful model for understanding the behavior of a wide variety of physical systems.</p><p>Among the many forms of oscillatory motion the harmonic oscillator occupies a special place. A harmonic oscillator is a system that can be used to approximate many physical systems undergoing small displacements from their stable equillibrum positions. Small oscillations of pendulums, vibrations of molecules, electromagnetic field, and even quantum systems can all be modeled approximately as harmonic oscillators.</p><p>The defining characteristic of the harmonic oscillator is that the restoring force acting on the system is linear; that is, the force is directly proportional to the displacement from equillibrum and acts in the opposite direction. Despite this simplicity, the harmonic oscillator is at the heart of much of classical and quantum physics.</p><p>Nature can be thought of as comprising of multiple oscillators all interacting with one another. During this interaction, the motion of one oscillator influences the motion of the others, giving rise to systems known as <strong>coupled oscillators</strong>. These interactions lead to fascinating phenomena such as energy transfer, normal modes, and collective vibrations. Remarkably, the same ideas that describe the motion of two masses connected by springs ultimately explains the quantized vibrations of crystal lattices known as <strong>phonons</strong>.</p><p>In this article, our journey begins with the classical description of systems composed of springs and masses. From here, we will uncover how the mathematical language of eigenvalues and normal modes naturally leads to one of the most important concepts in condensed matter physics — <strong>the phonon.</strong></p><h3>The Mathematics of Coupled Oscillators</h3><h4>The Simple Harmonic Oscillator</h4><p>In a harmonic oscillator, a system displaced from its equillibrum position by a distance (x) experiences a restoring force that is directly proportional to the displacement and acts in the opposite direction. The equillibrum position corresponds to the stable configuration of the system where the net force acting on it is zero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9mDDqz4et4g9kfyQ6Z2F1A.jpeg" /><figcaption><strong>Figure 1. </strong>Spring-mass harmonic oscillator</figcaption></figure><p>Physics is, at its heart, the study of energy, and I would like you to keep this in mind as we progress through these sections. Suppose you stretch a spring by a small amount. In doing this, elastic potential energy is stored in the spring, disturbing the system from its equillibrum configuration. Once released, the system attempts to return to its state of minimum energy by converting the stored potential energy into kinetic energy. The restoring force is responsible for this continual exchange between kinetic and potential energy, giving rise to oscillatory motion.</p><p>Mathematically, the restoring force is described by Hooke’s law. For a spring-mass system, the restoring force is;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/104/1*F8wVHE_qOog-0zNI8DKHSQ.png" /></figure><p>where s is known the stiffness.</p><p>Since the restoring force is the only force acting on this system, the net force as given by Newton’s second law of motion is expressed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/120/1*emN7rmi6eZffUuPrt87g2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/113/1*DScpNo_cS7NK2J4N3CrsiQ.png" /></figure><p>Since the motion is in one dimension, we can express it in differential form as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/139/1*HRXV3bxPUo2DFrbsojFbug.png" /></figure><p>or,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/155/1*WMNqz0ja9DjTvey1E_scEg.png" /></figure><p>And in a more compact form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/129/1*cnyh5yZ675jVEuZldlePjA.png" /></figure><p>where,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/100/1*JGatEcu5Eb_krErh_4SLVw.png" /></figure><p>This is a second-order linear differential equation with one dependent variable (x). The solution to this is shown in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DhFhwYDaJ5tpZosD3mzxfg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9JCT8AOjtovVILic2qU2Rg.jpeg" /><figcaption>Figure 2. Solution to the second-order differential equation of the haronic oscillator</figcaption></figure><p>The proof above shows the solution of the harmonic oscillator as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*cHL96hwff0XEHP_UN_ydrQ.png" /></figure><p>The solution completely determines the motion of the oscillator. Once the displacement is known, every other physical quantity associated with the system, such as its velocity, acceleration, momentum, and total energy, can be obtained. More importantly, this simple result serves as the foundation upon which more complicated systems of interacting oscillators are built.</p><p>Remarkably, this form of solution is common to all harmonic oscillators. Whether we are studying a mass attached to a spring, a simple pendulum undergoing small oscillations, an electrical LC circuit, or even certain quantum systems, the displacement always oscillates sinusoidally. What distinguishes one oscillator from another is the natural angular frequency ω which depends on the physical properties of the system under consideration.</p><p>For example, the natural frequency of a swinging pendulum is expressed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/92/1*WvXioABIG8t5Ka6jHioaPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hjOXo0ZJ2N-bOmAmYaoorQ.jpeg" /><figcaption><strong>Figure 3. </strong>Swinging pendulum harmonic oscillator</figcaption></figure><p>So far, we have considered oscillators in isolation. Real physical systems, however, are rarely so simple. Molecules consists of atoms connected to one another by chemical bonds, solids contain long chains of interacting atoms, and many engineering systems involve multiple bodies influencing each other’s motion. In such situations, the oscillation of one system affects the oscillation of another, giving rise to <strong>coupled oscillators</strong>. The challenge is now to understand what happens when harmonic oscillators no longer behave independently</p><h4>Introducing Coupling</h4><p>Let us take one step closer to understanding how physical systems actually work. Oscillators rarely exist in complete isolation and you would be surprised to learn that the existence of wave propagation is due to the interaction of neighbouring vibrating systems which are able to exchange energy.</p><p>For oscillators to exchange energy, they must share a common component. The components that can be shared include; stiffness, mass, or resistance. Systems that share either stiffness or mass exchange energy with zero loss and are able to maintain a continuous exchange over many oscillators. This is essential for wave motion. However, resistance coupling brings with it energy loss and a rapid decay of the vibration. In this article, our interest is only in systems that lose no energy and in particular, <strong>stiffness coupling</strong>.</p><p>Consider two masses mₓ and mᵧ connected by three springs of stiffness constants S₁, S₂, and S₃ as shown in Figure 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APwqLQgNogZKM6d8Qw8wNQ.jpeg" /><figcaption><strong>Figure 4. </strong>Two masses three springs coupled oscillator</figcaption></figure><p>This system shows two harmonic oscillators coupled together. The consequence of interest necessary for our mathematics is the presence of more than one restoring force acting on each particle. For mass mₓ, when it is displaced by a distance x, it extends the spring with constant S₁ and also compresses the spring with constant S₂. At the same time, the second mass mᵧ pulls on the S₂ spring to create a net restoring force on the S₂ spring due to mₓ and mᵧ. Hence, for mass mₓ, the net force is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*tOjFv6LAzuUO3lsiitRO2w.png" /></figure><p>Dividing through by mₓ:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*5MNQfXScWmRbeJ8H-JAU_g.png" /></figure><p>For mass mᵧ, it compresses spring S₃ when displaced by distance y, and extends S₂ which is being compressed by mₓ. Hence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*mjCmZpNOjNDom7yW3cQUkw.png" /></figure><p>Dividing through by mᵧ:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*3Ih0Y6ZoQoasFzWZu2mzHg.png" /></figure><p>We solve this system by assuming solutions of the same form as the simple harmonic oscillator:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*TdYgKmCrq6eDlUiCvjkdvQ.png" /></figure><p>Substituting into equation (4):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*unh3ohxmkRONkdb_NH3MoQ.png" /></figure><p>Substituting into equation (8):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*xOZqRtEKlvOiEQeK8ahZbA.png" /></figure><p>To reveal the structure hidden within our trial solutions(13 and 16), we now turn to one of the most powerful tools in linear algebra: matrices.</p><h4>Matrix Representation</h4><p>Equations (13) and (16) can be written in matrix form as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*hXvPpTWO_lSs5lmHXZFb0g.png" /></figure><p>This is an eigenvalue problem with ω² as the eigenvalue and [A B]ᵀ as the eigenvector.</p><p>Rearranging equation (17):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMxFB3Ql8QNVzd74LKOtyg.png" /></figure><p>Solving this determinant yields the normal mode frequencies ω₁ and ω₂ of the coupled system.</p><h4>Normal Modes and Eigenvalue Problems</h4><p>In my <a href="https://medium.com/@idrisayilara54/understanding-quantum-states-mathematics-physics-and-computation-fce500cc22a0">previous article</a>, I discussed the importance of vector spaces and showed that any arbitrary vector can be written as a linear combination of its basis vectors. Likewise, any complex system of oscillators can be written as a superposition of simpler patterns of motion known as <strong>normal modes.</strong></p><p>Although the defining feature of coupled oscillators is the interaction between individual oscillators, there exists special patterns of motion for which the system behaves as though it were composed of individual simple harmonic oscillators. These patterns are known as normal modes. In a normal mode, every part of the system oscillates withth the same frequency while maintaining a fixed phase relationship with every other part.</p><p>Consequently, understanding the motion of a coupled system reduces to finding these special modes and their corresponding frequencies.</p><p>To find the normal modes of our chosen system, we consider the symmetric case where the outer springs have equal stiffness and the masses are equal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*5vsNqWpM316CjDz5KDUyoA.png" /></figure><p>The determinant condition for non-trivial solutions becomes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*MnU2t6qE_qf5VrnvEgV7nw.png" /></figure><p>Expanding the determinant:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*E6O7somDitXFoTQclD7dOw.png" /></figure><p>Taking the square root of both sides:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*USUX7-aLwX7qQOLwduXmtw.png" /></figure><p>This yields two distinct normal mode frequencies:</p><p>Mode 1: <strong>The Symmetric (In-Phase) Mode</strong></p><p>Taking the positive sign:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*-9vlL8iurEC9NKVDfS5WvQ.png" /></figure><p>To find the amplitudes, we substitute (ω₁)² = S/m back into the eigenvalue equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*7ya3kG39JEXYUpjozXsjvg.png" /></figure><p>By matrix multiplication, the first row gives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*T1UKva4gr8XDmFTWd77r-A.png" /></figure><p>Choosing A = B = 1, the displacements in this mode are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*y9TDbhY_2G1tZUUhO5HBBw.png" /></figure><p>Mode 2: <strong>The Antisymmetric (Out-of-Phase) Mode</strong></p><p>Taking the negative sign:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*pApRFVhlRAKu-cLmV8nl5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*KugqLmTqACX9AJ-tAbAdXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*VLfmYZtD6RrMGyBYabi_Nw.png" /></figure><p>By matrix multiplication, the first row gives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*UX5N2wl1dUZpaUBjCpt1Pw.png" /></figure><p>Choosing A = 1, B = −1, the displacements in this mode are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*FUrYLw40OlRgkXdSZPsPeg.png" /></figure><p>The general motion of the system is a superposition of these two normal modes. Any arbitrary initial condition can be expressed as a linear combination of the symmetric and antisymmetric modes, each oscillating independently at its own natural frequency.</p><p>In other words, the normal modes play the same role for couples oscillators that basis vectors play in linear algebra. Every possible motion of the system can be constructed from these two fundamental modes. This remarkable idea extends far beyond systems of two oscillators. As the number of coupled oscillators increase, the number of normal modes increases correspondingly, eventually giving rise to the collective vibrations of crystal lattices. In the quantum description, these collective vibrational modes are interpreted as quasiparticles known as phonons.</p><h3>The Physical Interpretation of Coupled Oscillators</h3><h4>Energy Exchange</h4><p>One of the most remarkable consequences of coupling is that oscillatoors are able to exchange energy with one another. How this energy exchange occurs depends on the particular normal mode excited.</p><p><strong>Symmetric (In-Phase) Mode: </strong>In this mode, both masses move together with equal amplitude and in the same direction at all times. Since the middle spring is neither stretched nor compressed during this motion, it contributes nothing to the restoring force. The coupling between the oscillators becomes invisible. The system behaves as though the middle spring does not exist. Consequently, the system oscillates at the lower frequency ω₁ = √(S/m), identical to that of a single uncoupled harmonic oscillator. Energy remains evenly distributed between the two masses at all times and no net transfer occurs between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*9O5P1tQfr-ZKyYmTCDY5VQ.gif" /><figcaption>Figure 5. Coupled systems interacting in phase</figcaption></figure><p><strong>Anti-Symmetric (Out-of-Phase) Mode: </strong>Here the masses move in opposite directions with equal amplitude. The coupling spring is continuously stretched and compressed, contributing an additional restoring force on each mass. This increased restoring force drives a higher oscillation frequency ω₂ = √((S+2S’)/m). The stronger the coupling spring S’, the greater the frequency of this mode. Again, no net energy transfer occurs between the masses — each mass maintains a fixed amplitude throughout the motion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*kdr8nVYJ34oUTifa5W9Saw.gif" /><figcaption>Figure 6. Coupled systems interacting out of phase</figcaption></figure><p><strong>General Mode (Superposition of normal modes):</strong></p><p>The truly fascinating behaviour emerges when both normal modes are excited simultaneously. In this case the displacement of each mass is a superposition of both modes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*mGxy8vWu36Y95Kjr7ugCTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*znd0Wx3iIE8oJdX934crSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*TR-hHXnGBAlDyWAM8T1iyQ.gif" /><figcaption>Figure 7. Coupled systems interacting in a superposition</figcaption></figure><p>Since ω₁ and ω₂ are different, these two contributions periodically fall in and out of phase with each other, producing a beat pattern. At certain moments the motion of mass x is large while mass y is nearly stationary — and at other moments the situation reverses completely. Energy flows back and forth between the two masses continuously. This is the physical origin of energy exchange in coupled systems, and it is a direct consequence of the difference between the two normal mode frequencies.</p><p>The animations above were created using Manim. The full source code is available on my GitHub repo[<a href="https://github.com/Funbi123/Coupled_Oscillator_Simulation">link</a>].</p><h4>From Two Oscillators to Many</h4><p>The two-mass system we have studied is the simplest possible coupled oscillator. Yet the mathematical framework we have developed including the equations of motion, trial solutions, eigenvalue problems, and normal modes extends without modification to systems of arbitrary complexity.</p><p>Consider what happens as we add more masses. Three masses connected by springs possess three normal modes. Ten masses possess ten. In general, a system of N coupled oscillators possesses exactly N normal modes, each with its own characteristic frequency and pattern of motion. Any arbitrary motion of the system can always be expressed as a superposition of these N normal modes — a profound generalisation of everything we have seen so far.</p><p>As N grows large the discrete set of normal mode frequencies begins to form a continuous band. The individual oscillators blur into a collective medium and something new emerges; waves. The propagation of a disturbance through a coupled chain is nothing more than the coordinated oscillation of many normal modes acting together. This is why coupled oscillators are at the heart of wave physics.</p><h4>Towards Solids</h4><p>Real crystalline solids are, at their most fundamental level, enormous arrays of atoms held in place by interatomic forces that act very much like springs. Consider the simplest possible model, a one-dimensional chain of N identical atoms, each of mass m, separated by equilibrium spacing a and coupled to their nearest neighbours by springs of stiffness S.</p><p>This is precisely our coupled oscillator problem scaled up to Avogadro’s number. Each atom obeys an equation of motion identical in form to the ones we derived, but now coupled to its two nearest neighbours rather than just one. For the nth atom:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*njZqdQtl7Vlz4e-TMkbZDQ.png" /></figure><p>where u​ₙ is the displacement of the nth atom from its equilibrium position.</p><p>We solve this exactly as before by assuming a trial solution. But now, with translational symmetry across the entire chain, the natural trial solution is a travelling wave:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/195/1*IG6QPID5yZl95eN6lBPdSA.png" /></figure><p>where k is the wave vector and a is the lattice spacing. Substituting this into the equation of motion yields the dispersion relation; the relationship between frequency and wave vector:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*NH2aOPqiwmGgCMgdUHcX_A.png" /></figure><p>This is one of the most important results in condensed matter physics. It tells us that not all frequencies are permitted in a crystal lattice — only those satisfying this relationship between ω and k. The allowed frequencies form a band bounded by a maximum frequency ω_max = 2√(S/m), beyond which the lattice cannot sustain vibrations. This is the origin of the concept of a Brillouin zone.</p><h4>From Classical Vibrations to Phonons</h4><p>Everything we have discussed so far has been entirely classical. We have treated atoms as point masses and interatomic forces as springs, and we have found that the natural vibrations of a crystal lattice are travelling waves characterised by a wave vector k and a frequency ω(k).</p><p>The transition to quantum mechanics changes one thing fundamentally — energy is no longer continuous. Just as the electromagnetic field is quantised into photons, the vibrational field of a crystal lattice is quantised into discrete packets of energy called <strong>phonons</strong>.</p><p>A phonon is a quantum of lattice vibration. Each vibrational mode characterised by wave vector k and frequency ω(k) can contain only integer numbers of phonons, each carrying energy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/112/1*wdiMeUv468w6KsxGzAJMvA.png" /></figure><p>and momentum:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/72/1*2zQNhi1QGVmDNGHj2leLiA.png" /></figure><p>This is a direct application of the quantum harmonic oscillator — the same system we started with at the beginning of this article, now elevated to a quantum field.</p><p>Phonons are not merely a theoretical curiosity. They are responsible for some of the most important physical properties of solids. The way a material conducts heat is determined largely by how phonons travel through its lattice and scatter off impurities and boundaries. The electrical resistance of metals at low temperatures is dominated by electron-phonon scattering. Even superconductivity — one of the most striking phenomena in all of physics — arises in many materials because electrons interact attractively by exchanging phonons, forming the Cooper pairs that carry current without resistance.</p><p>What began as two masses connected by springs has led us, through a chain of remarkably clean mathematics, to one of the central concepts of modern condensed matter physics. The harmonic oscillator is not merely a textbook exercise — it is the language in which solids speak.</p><ul><li>Code, simulations and resources for this article can be found on my GitHub [<a href="https://github.com/Funbi123/Coupled_Oscillator_Simulation">link</a>].</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae58de6215ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Quantum States: Mathematics, Physics, and Computation]]></title>
            <link>https://medium.com/@idrisayilara54/understanding-quantum-states-mathematics-physics-and-computation-fce500cc22a0?source=rss-8f9dcd0c845c------2</link>
            <guid isPermaLink="false">https://medium.com/p/fce500cc22a0</guid>
            <category><![CDATA[quantum-physics]]></category>
            <dc:creator><![CDATA[ayilara]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 13:07:39 GMT</pubDate>
            <atom:updated>2026-06-06T13:08:59.307Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>One should no more rack one’s brain about the problem of whether something one cannot know anything about exists all the same, than about the ancient question of how many angels are able to sit on the point of a needle. — <strong>Werner Heisenberg</strong></blockquote><p>My first introduction to quantum mechanics as a framework for understanding physical systems came with more questions than answers. Every explanation I encountered seemed to raise even more questions and my ambition to unravel the mysteries felt impossible. Ironically, it was through this endless cycle of questioning that I began to develop a deeper appreciation for the subject.</p><p>Concepts that initially presented themselves as counter-intuitive gradually began to reveal themselves through what I like to call <em>quantum logic — </em>a way of thinking that challenges our classical intuition about the world. Yet, with every new insight came a fresh layer of confusion.</p><p>Fortunately, confusion is not a sign of failure in quantum mechanics; it is often the beginning of understanding. I embarked on a journey not just to understand quantum mechanics but to experience it — to explore it through mathematics, physical interpretation, and visualization. My hope was that by building, calculating, and visualizing quantum systems for myself, the theory would gradually reveal itself to me.</p><p>This article is the first step in that journey.</p><p>So where shall we begin?</p><p>With one of the the most fundamental questions in all of quantum mechanics:</p><h3>What is a Quantum State?</h3><p>The state of a system refers to a collection of properties that describe the nature of that system at any given time. It provides the foundational parameters from which every other measurable property can be determined.</p><p>In the classical sense, for example, knowing the postion and momentum of a particle is sufficient to describe its state completely. From these quantities, we can determine its total energy, kinetic energy, angular momentum, forces acting on it, its center of mass, and even predict its future motion. A classical state therefore gives definite values for physicsal quantities, and repeated measurements yield the same result.</p><p>This gives you an idea of the role a state plays in physics and why it is such a fundamental concept.</p><p>A quantum state also describes the properties of a physical system, but it does things in a different way. Instead of assigining definite values to the measurement of physical quantities, a quantum state encodes all the information about a system and allows us to predict the probabilities of the outcomes expected from measurement.</p><p>A quantum state can be expressed as a linear combination (sum) of several possible outcomes of a system, a phenonmenon known as <strong><em>superposition</em></strong>. Unlike a classical particle which occupies a single well-defined state, a quantum system may exist in a combination of several possible states at the same time.</p><p>Imagine putting a quantum state in an examination hall and asking it a multiple choice question. A classical state would confidently select one answer. A quantum state, on the other hand, does not commit to a single answer in that moment; instead, it carries information about all possible answers and the probability of each answer being obtained when the examination sheets are scored.</p><p>This is our first encounter with <em>quantum logic.</em></p><h3>The Mathematics of Quantum States</h3><p>Our first stop in understanding quantum states is the mathematical framework upon which they are built.</p><p>Physics relies on mathematics because it provides a precise language for describing physical systems. Mathematiccs allows us to represent systems using abstract objects that obey well-defined rules. By studying the behaviour of these mathematical objects, we can make predictions about the physical world.</p><p>Linear algebra is the mathematical tool used to understand quantum mechanics. One of the most important abstractions in physics is the concept of <strong>vector space. </strong>A vector space is a collection of objects, called vectors, that can be added together and multiplied by scalars while obeying a well-defined set of rules known as vector space axioms.</p><p>Our first encounter with vectors is often through geometry, where they are introduced as arrows possessing both magnitude and direction. However, vectors are far more general than that.</p><p>As matter of fact, quantum states themselves are vectors.</p><p>Unlike the vectors encountered in ordinary three-dimensional space, quantum states exist in a special type of vector space known as a <strong>Hilbert space.</strong> A Hilbert space provides the mathematical arena in which quantum states live, evolve, and interact.</p><p>Unlike ordinary vectors, quantum states are not usually represented by geometric coordinates. Instead, they are described relative to a set of special vectors known as <strong>basis states.</strong> Understanding basis states is therefore the first step toward understanding how quantum states are represented mathematically.</p><h4>Basis states</h4><p>To describe a vector, we must first choose a set of reference directions. In three-dimensional space, these reference directions are usually the unit vectors along the x, y, and z axes. Any vector in that space can then be written as a combination of these fundamental directions.</p><p>The same idea applies in quantum mechanics. To describe a quantum state, we need to define a set of special vectors called <strong>basis vectors </strong>that would act as fundamental building blocks from which every other vector in the space can be constructed.</p><p>Mathematically, a set of n-vectors in n-dimensional linear vector space given by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/1*HrJWtV3s1WuWZnzj0BqC5Q.png" /></figure><p>forms a basis if it satisfies two conditions:</p><ul><li>Linear Independence: None of the vectors in <strong>B </strong>can be written as a linear combination of the others.</li><li>Spanning: Every vector in the vector space can be written as the linear combination of the vectors contained in <strong>B.</strong></li></ul><p>Together, these conditions ensure that the basis provides a complete description of the vector space.</p><p>When these basis vectors are used to describe a quantum system, they are referred to as <strong>basis states.</strong> In other words, basis states are basis vectors that live in a Hilbert space. They serve as the fundamental building blocks from which all possible quantum states of the system can be constructed.</p><h4>State vectors</h4><p>The pieces of what a quantum state is mathematically are gradually coming together. Having defined basis states, we now have the necessary ingredients to construct a quantum state itself.</p><p>Since every vector in a vector space can be written as a linear combination of its basis vectors, it follows that every quantum state can be expressed as a combination of its basis states. This is a direct consequence of quantum states being vectors that live in a Hilbert space.</p><p>A quantum state is therefore represented mathematically by a vector known as a <strong>state vector. </strong>The state vector is constructed from the linear combination of a set of basis states with complex coefficients known as probability amplitudes.</p><p>The general representation of a state vector/quantum state is written as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*rBvIXu7g1OmFw3L3zRw6KQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*Mq3B1mne23gB7KPbynKYiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*p6fFX15XGNUpdNfettIkOQ.png" /></figure><p>The state vector contains all the informaton that can be known about the system. The amplitudes determine the contribution/weight of each basis state to the overall quantum state and are directly related to the probabilities observed during measurement.</p><h4>Superposition</h4><p>The expression for the state vector above reintroduces one of the most remarkable concepts of quantum mechanics: a quantum state can exist as a linear combination of multiple basis states simultaneously. This phenomenon is known as superposition.</p><h4>Hilbert Space</h4><p>You might have wondered why quantum states need to live in a special vector space and not in any ordinary vector space like all other vectors. The answer lies in a property known as <em>completeness.</em></p><p>Let us consider the vector space of all polynomials with basis vectors given as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*RMGLdT7XSgpMy96fTfWddQ.png" /></figure><p>Every other polynomial can be written as a linear combination of any of these basis vectors. Although every finite polynomial belongs to this space, the infinite sum of the polynomial:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*0xiNKiSjjbNPi5Bml6R62A.png" /></figure><p>as more terms are added converges to exp(x) for carefully selected coefficients. Figure one illustrates this process by showing successive polynomial approximations approaching the exponential function. The Python script used for this visualization can be found in the accompanying GitHub repository: <a href="https://github.com/Funbi123/quantum-math-visualizations/blob/master/taylor_series_visualization.ipynb">GitHub repository</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*enISUbrRPJ3dIPytXIwJLw.png" /><figcaption><strong>Figure 1:</strong> Successive Taylor polynomial approximations approaching the exponential function exp(x).</figcaption></figure><p>This shows that the sequence of basis vectors in the polynomial space converges to an object that is not inside the polynomial vector space.</p><p>This raises a problem for quantum states. Quantum states are usually expressed as the linear combination of infinite basis states. If the space containing those states were not complete, then the limit escapes the space into another vector space; it ceases to be a valid quantum state of the system.</p><p>To solve this problem, quantum mechanics uses Hilbert spaces. A Hilbert space is an inner-product vector space with an additional property of completeness. Completeness guarantees that when a sequence of vectors converges, its limit remains inside the space.</p><h4>Inner products and Norms</h4><p>Having defined what quantum states are mathematically, how they are represented, and the space in which they live, we can now introduce two important concepts that allow us to extract meaningful information from them: <strong>inner products </strong>and<strong> norm</strong>.</p><p>If quantum states are vectors, then it is natural to ask the same questions we ask about ordinary vectors. How do we measure the length of a vector? How do we determine whether two vectors point in similar directions? How do we quantify the relationship between two vectors?</p><p>The mathematical tool that answers these questions is the <strong>inner product</strong>.</p><p>The inner product is a generalization of the familiar dot product from three-dimensional vector spaces to more abstract vector spaces, including Hilbert spaces. Given two quantum states,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/131/1*hsAEAlZyT7t2DuCpS8Yh3g.png" /></figure><p>their inner product is written as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/47/1*ovTn5ln9NlMOwsW-0xnqSg.png" /></figure><p>Geometrically, the inner product measures how closely related two vectors are. If the vectors are orthogonal, their inner product is zero. If they point in the same direction, the inner product attains its maximum value.</p><p>In quantum mechanics, the inner product plays an even more important role. It forms the foundation for calculating probabilities, determining orthogonality between states, and defining the normalization condition that every physical quantum state must satisfy.</p><p>Consider the inner product of a quantum state with itself:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/49/1*q0rM3wB_-4W4G-MrOP91kw.png" /></figure><p>where:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/1*l0_J7IJvX5Kg5n4I4MyHUg.png" /></figure><p>Unlike the inner product of two different states, the square root of the quantity measures the magnitude or <strong>norm</strong> of the state vector. When the state is expressed in an orthonormal basis, the inner product can be written in terms of the sum of the modulus squares of its probability amplitudes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/153/1*kvlosOfKNvuDOn_TigQpDA.png" /></figure><p>This expression has a very profound physical meaning through the Born rule as we shall see in the next section.</p><p>Up until this point, we have laid the mathematical foundation upon which our understanding of quantum states can be built. Mathematics, however, is only half the story. The essence of quantum states is in its ability to describe physical systems and predict the outcomes of experiments. We can now turn our attention to the physical interpretation of the mathematics we have developed.</p><h3>Quantum States as Physical Objects</h3><blockquote>If all mathematics disappeared, physics would be set back by exactly one week — <strong>Richard Feynmann</strong></blockquote><h4>Linear Operators, Observables, and Measurement</h4><p>Recall that the purpose of defining states of a classical system was to determine other physical quantities associated with that system, such as its energy and angular momentum. The same idea exists in quantum states, athough it is achieved in a different way.</p><p>So far, we have seen how quantum states are represented mathematically and how their properties can be described using the language of linear algebra. We now move on to extracting the physical information encoded in those states.</p><p>To achieve this, quantum mechanics introduces mathematical objects known as <strong>operators. </strong>An operator is a linear map that acts on a state vector and transforms it into another vector in the same Hilbert space. Physical quantities such as position, momentum, energy, and angular momentum are represented by a special class of operators known as <strong>observables.</strong></p><p>Let us think about this physically. Suppose we have an apparatus to measure the energy of a quantum system. After perfroming the measurement, we obtain a value of 0.7 eV. This measurement suggests that there must exist special quantum states for which energy is known exactly. Such states are called energy eigenstates. These states can be acted upon by an operator to yield the predicted result of the measurement as a scaled state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/122/1*tl4WSe4d3Av7IkmGkZicvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*u26v0PQLPLXmVL2mtiIcQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*7Zj5ZMUg1-M4rxaI4K6fbA.png" /></figure><p>The eigenvalue represent a possible outcome of an energy measurement.</p><p>The act of measurement in quantum mechanics comes with a lot of what we have come to call quantum logic. For example, the energy of a quantum system can only be measured as discrete levels and the system cannot be measured to have an outcome between any two distinct energy levels. On the other hand, the position of the same quantum system can be measured to have a continuous spectrum of outcomes. This suggests that the outcomes of measurements depends on the nature of the observable describing the quantity. This is counter-intuitive from classical mechanics where the measurement of any physical quantity take continuous outcomes.</p><p>Not to mention, these outcomes are fundamentally probabilistic. Some outcomes are more probable than the others and the system can be expressed as a superposition of the eigenstates of the physical quantity being measured. Quantum mechanics doesn’t predict with certainty which outcome will be observed. Rather, it predicts the probability associated with each possible outcome.</p><h4>Born Rule and Normalization</h4><p><em>How are the probabilites of measurement outcomes calculated?</em></p><p>Max Born provided the answer through what is now known as the <strong>Born rule. </strong>Suppose a quantum state is expressed as the superposition of the eigenstates of an observable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/143/1*FxEIwR_2OR1VrM0WUS59Ew.png" /></figure><p>The Born rule states that the probability of obtaining the measurement outcome associated with the eigenstate is given by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/86/1*yxEBB1_VPnXKvHbKoBkH_Q.png" /></figure><p>In other words, the probability of observing a particular outcome is equal to the modulus square of its corresponding probability amplitude.</p><p>Since one of the possible outcomes must occur when a measurement is performed, the probabilities of all outcomes must add to one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/112/1*_SNByvhRJn-3kFimLqjYoQ.png" /></figure><p>This requirement is known as the <strong>normalization condition.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_pPKoy8Bz7RwA1ZomRVp3Q.jpeg" /><figcaption>Figure 2: Derivation of the normalization condition</figcaption></figure><h4>State Collapse</h4><p>We have described quantum states as existing in a superposition of basis states, each associated with a possible measurement outcome. Yet when a measurement is performed, we never observe a superposition of outcomes. Instead the measurement yield a single definite result. This transition from a superposition of possibilites to a single observed outcome is known as <strong>state collapse</strong></p><p>Let me illustrate this better with the famous gedenken proposed by Erwin Schrodinger. Imagine a cat sealed inside a box with a device connected to a quantum event, such as the decay of a radioactive atom. If the atom decays, the device releases a poison tha kills the cat. If the atom does not decay, the cat lives.</p><p>Before the box is opened, the quantum system describing the atom exists in a superposition of decayed and undecayed states. Since the fate of the cat depends on the state of the atom, the cat also exists in a superposition of alive and dead states.</p><p>However, when the box is opened, we do not observe a cat that is simultaneously alive and dead. We observe only one outcome; the cat is either dead or alive, not both. In the traditional interpretation of quantum mechanics, the act of observation causes the quantum state to collapse into one of the possible outcomes, with the probability of each outcome being determined by the Born rule.</p><h3>Computational Implementation and Visualization</h3><p>Having discussed the mathematics of state vectors, normalization, operators, and the Born rule, together with their physical interpretation, we now turn to their computational implementation.</p><p>In this section, we will translate these abstract concepts into code by constructing quantum states, normalizing them, computing measurement probabilities, and simulating state collapse. Through these implementation, we will see how the mathematical framework of quantum mechanics can be used to model physical systems and predict experimental outcomes.</p><p>In addition, we will visualize quantum states using the <strong>Bloch sphere</strong>, a geometric representation of two-level quantum systems. Such systems include:</p><ul><li>The qubit, the fundamental unit of information in quantum computing.</li><li>Photon polarization, one of the most common physical realizations of a two-state quantum system.</li></ul><p>By the end of this section we would have connected the mathematics, physics, and computation of quantum states into a unified framework.</p><h4>Visualizing Quantum States: The Bloch Sphere</h4><p>Quantum states have been represented mathematically as abstract vectors in a Hilbert space. While this form of representation is powerful, it can be difficult to visualize. A Bloch sphere provides a more intuitive picture.</p><p>Every normalized pure state of a two-level quantum system can be represented as a point on the surface of a unit sphere. The north and south poles corresponds to the basis states, while points between them represents superpositions of those states.</p><p>The position of a state on the sphere is determined by the relative amplitudes and phase of the quantum state. Quantum operations can then be interpreted as rotations of the state around the sphere.</p><p>While the Bloch sphere is limited only to pure states of two-level systems, it provides powerful intuition for understanding qubits, photon polarization, quantum gates, and state evolution.</p><h4>Implemeting it in Python</h4><p>To move from math to visualization, I built a quantum state simulator in Python using NumPy and Plotly. The workflow has four steps:</p><ul><li>State construction: A superposition</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/1*OzMUHEZ3U9UkWGCicpeMLw.png" /></figure><p>is formed from complex amplitudes entered by a user and is automatically normalized so that :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/89/1*oCytA2UOeVFzhDRK2BeDrw.png" /></figure><ul><li>Measurement probabilities: Projection operators are applied to compute the Born rule probabilites.</li><li>State Collapse: The state after measurement is computed for each outcome by projecting and renormalizing</li><li>Bloch vector extraction: The three cartesian coordinates are derived directly from the amplitudes obatained from operations with the Pauli matrices.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Hb7G4FF6RJv7lrs-lYYaKQ.png" /><figcaption>Figure 3: Represention of the quantum state of a qubit on a Bloch sphere</figcaption></figure><p>The image above shows the state vector plotted at coordinates (0.00, 0.00, 1.00) exactly at the north pole of the sphere. This tells us that the system is in the pure basis state |0&gt;, with probability 1 of being measured there and no superposition component at all. You can assess the Python through this <a href="https://github.com/Funbi123/quantum-math-visualizations/blob/master/quantum_state_visualizer.ipynb">GitHub repository </a>to explore with other amplitudes.</p><h3>Conclusion</h3><p>Quantum states are among the most fundamental ideas in quantum mechanics, yet they are often introduced as abstract mathematical objects with little connection to physical intuition. In this article, we approached them from three complementary perspectives: mathematics, physics, and computation.</p><p>We saw how quantum states arise naturally as vectors in a Hilbert space, how basis states and superposition provide a language for describing physical systems, and how operators, observables, and the Born rule connect the mathematics to measurable quantities. We also explored how these ideas can be implemented computationally, allowing us to simulate measurements, state collapse, and visualize quantum states on the Bloch sphere.</p><p>Perhaps the most important lesson is that quantum mechanics does not ask us to abandon logic; rather, it asks us to become familiar with a different kind of logic. A quantum state does not describe what a system <em>is</em> in the classical sense. Instead, it encodes everything that can be known about the system and the probabilities of what may be observed.</p><p>When I first encountered quantum mechanics, I was searching for certainty and intuitive pictures that resembled the classical world. Instead, I found probabilities, superpositions, and questions that seemed to multiply faster than answers. Yet it was precisely through that confusion that understanding began to emerge. The mathematics provided structure, the physics provided meaning, and computation provided a way to see these abstract ideas come alive.</p><p>Quantum states remain one of the most fascinating concepts in modern science. They sit at the intersection of mathematics, physics, and information, forming the foundation upon which quantum computation, quantum communication, and much of modern quantum theory are built. Understanding them is not the end of the journey into quantum mechanics, but it is one of the most rewarding places to begin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fce500cc22a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>