# Superposition principle

The superposition principle, also known as superposition property, states that, for all linear systems, the net response caused by two or more stimuli is the sum of the responses that would have been caused by each stimulus individually. So that if input A produces response X, and input B produces response Y, then input (A + B) produces response (X + Y).
A function $F(x)$ that satisfies the superposition principle is called a linear function. Superposition can be defined by two simpler properties: additivity $F(x_{1}+x_{2})=F(x_{1})+F(x_{2})$ and homogeneity $F(ax)=aF(x)$ for scalar a.
This principle has many applications in physics and engineering because many physical systems can be modeled as linear systems. For example, a beam can be modeled as a linear system where the input stimulus is the load on the beam and the output response is the deflection of the beam. The importance of linear systems is that they are easier to analyze mathematically; there is a large body of mathematical techniques, frequency-domain linear transform methods such as Fourier and Laplace transforms, and linear operator theory, that are applicable. Because physical systems are generally only approximately linear, the superposition principle is only an approximation of the true physical behavior.
The superposition principle applies to any linear system, including algebraic equations, linear differential equations, and systems of equations of those forms. The stimuli and responses could be numbers, functions, vectors, vector fields, time-varying signals, or any other object that satisfies certain axioms. Note that when vectors or vector fields are involved, a superposition is interpreted as a vector sum. If the superposition holds, then it automatically also holds for all linear operations applied on these functions (due to definition), such as gradients, differentials or integrals (if they exist).

## Relation to Fourier analysis and similar methods

By writing a very general stimulus (in a linear system) as the superposition of stimuli of a specific and simple form, often the response becomes easier to compute.
For example, in Fourier analysis, the stimulus is written as the superposition of infinitely many sinusoids. Due to the superposition principle, each of these sinusoids can be analyzed separately, and its individual response can be computed. (The response is itself a sinusoid, with the same frequency as the stimulus, but generally a different amplitude and phase.) According to the superposition principle, the response to the original stimulus is the sum (or integral) of all the individual sinusoidal responses.
As another common example, in Green's function analysis, the stimulus is written as the superposition of infinitely many impulse functions, and the response is then a superposition of impulse responses.
Fourier analysis is particularly common for waves. For example, in electromagnetic theory, ordinary light is described as a superposition of plane waves (waves of fixed frequency, polarization, and direction). As long as the superposition principle holds (which is often but not always; see nonlinear optics), the behavior of any light wave can be understood as a superposition of the behavior of these simpler plane waves.

## Wave superposition

Waves are usually described by variations in some parameters through space and time—for example, height in a water wave, pressure in a sound wave, or the electromagnetic field in a light wave. The value of this parameter is called the amplitude of the wave and the wave itself is a function specifying the amplitude at each point.
In any system with waves, the waveform at a given time is a function of the sources (i.e., external forces, if any, that create or affect the wave) and initial conditions of the system. In many cases (for example, in the classic wave equation), the equation describing the wave is linear. When this is true, the superposition principle can be applied. That means that the net amplitude caused by two or more waves traversing the same space is the sum of the amplitudes that would have been produced by the individual waves separately. For example, two waves traveling towards each other will pass right through each other without any distortion on the other side. (See image at the top.)

### Wave diffraction vs. wave interference

With regard to wave superposition, Richard Feynman wrote:
   No-one has ever been able to define the difference between interference and diffraction satisfactorily. It is just a question of usage, and there is no specific, important physical difference between them. The best we can do, roughly speaking, is to say that when there are only a few sources, say two, interfering, then the result is usually called interference, but if there is a large number of them, it seems that the word diffraction is more often used.
Other authors elaborate:
   The difference is one of convenience and convention. If the waves to be superposed originate from a few coherent sources, say, two, the effect is called interference. On the other hand, if the waves to be superposed originate by subdividing a wavefront into infinitesimal coherent wavelets (sources), the effect is called diffraction. That is the difference between the two phenomena is [a matter] of degree only, and basically, they are two limiting cases of superposition effects.
Yet another source concurs:
   In as much as the interference fringes observed by Young were the diffraction pattern of the double slit, this chapter [Fraunhofer diffraction] is, therefore, a continuation of Chapter 8 [Interference]. On the other hand, few opticians would regard the Michelson interferometer as an example of diffraction. Some of the important categories of diffraction relate to the interference that accompanies division of the wavefront, so Feynman's observation to some extent reflects the difficulty that we may have in distinguishing division of amplitude and division of wavefront.

### Wave interference

The phenomenon of interference between waves is based on this idea. When two or more waves traverse the same space, the net amplitude at each point is the sum of the amplitudes of the individual waves. In some cases, such as in noise-canceling headphones, the summed variation has a smaller amplitude than the component variations; this is called destructive interference. In other cases, such as in a line array, the summed variation will have a bigger amplitude than any of the components individually; this is called constructive interference.
| combined waveform | | |
| wave 1 | | |
| wave 2 | | |
| | Two waves in phase | Two waves 180° out of phase |

### Departures from linearity

In most realistic physical situations, the equation governing the wave is only approximately linear. In these situations, the superposition principle only approximately holds. As a rule, the accuracy of the approximation tends to improve as the amplitude of the wave gets smaller. For examples of phenomena that arise when the superposition principle does not exactly hold, see the articles nonlinear optics and nonlinear acoustics.

### Quantum superposition

In quantum mechanics, a principal task is to compute how a certain type of wave propagates and behaves. The wave is described by a wave function, and the equation governing its behavior is called the Schrödinger equation. A primary approach to computing the behavior of a wave function is to write it as a superposition (called "quantum superposition") of (possibly infinitely many) other wave functions of a certain type—stationary states whose behavior is particularly simple. Since the Schrödinger equation is linear, the behavior of the original wave function can be computed through the superposition principle this way.
The projective nature of quantum-mechanical-state space causes some confusion, because a quantum mechanical state is a ray in projective Hilbert space, not a vector. According to Dirac: "if the ket vector corresponding to a state is multiplied by any complex number, not zero, the resulting ket vector will correspond to the same state [italics in original]." However, the sum of two rays to compose a superpositioned ray is undefined. As a result, Dirac himself uses ket vector representations of states to decompose or split, for example, a ket vector $|\psi _{i}\rangle$ into superposition of component ket vectors $|\phi _{j}\rangle$ as: $|\psi _{i}\rangle =\sum _{j}{C_{j}}|\phi _{j}\rangle ,$ where the $C_{j}\in {\textbf {C}}$. The equivalence class of the $|\psi _{i}\rangle$ allows a well-defined meaning to be given to the relative phases of the $C_{j}$., but an absolute (same amount for all the $C_{j}$) phase change on the $C_{j}$ does not affect the equivalence class of the $|\psi _{i}\rangle$.
There are exact correspondences between the superposition presented in the main on this page and the quantum superposition. For example, the Bloch sphere to represent pure state of a two-level quantum mechanical system (qubit) is also known as the Poincaré sphere representing different types of classical pure polarization states.
Nevertheless, on the topic of quantum superposition, Kramers writes: "The principle of [quantum] superposition ... has no analogy in classical physics". According to Dirac: "the superposition that occurs in quantum mechanics is of an essentially different nature from any occurring in the classical theory [italics in original]." Though reasoning by Dirac includes atomicity of observation, which is valid, as for phase, they actually mean phase translation symmetry derived from time translation symmetry, which is also applicable to classical states, as shown above with classical polarization states.

## Boundary-value problems

A common type of boundary value problem is (to put it abstractly) finding a function y that satisfies some equation $F(y)=0$ with some boundary specification $G(y)=z.$ For example, in Laplace's equation with Dirichlet boundary conditions, F would be the Laplacian operator in a region R, G would be an operator that restricts y to the boundary of R, and z would be the function that y is required to equal on the boundary of R.
In the case that F and G are both linear operators, then the superposition principle says that a superposition of solutions to the first equation is another solution to the first equation: $F(y_{1})=F(y_{2})=\cdots =0\quad \Rightarrow \quad F(y_{1}+y_{2}+\cdots )=0,$ while the boundary values superpose: $G(y_{1})+G(y_{2})=G(y_{1}+y_{2}).$ Using these facts, if a list can be compiled of solutions to the first equation, then these solutions can be carefully put into a superposition such that it will satisfy the second equation. This is one common method of approaching boundary-value problems.

## Additive state decomposition

Consider a simple linear system: ${\dot {x}}=Ax+B(u_{1}+u_{2}),\qquad x(0)=x_{0}.$
By superposition principle, the system can be decomposed into ${\begin{aligned}{\dot {x}}_{1}&=Ax_{1}+Bu_{1},&&x_{1}(0)=x_{0},\\{\dot {x}}_{2}&=Ax_{2}+Bu_{2},&&x_{2}(0)=0\end{aligned}}$ with $x=x_{1}+x_{2}.$
Superposition principle is only available for linear systems. However, the additive state decomposition can be applied to both linear and nonlinear systems. Next, consider a nonlinear system ${\dot {x}}=Ax+B(u_{1}+u_{2})+\phi \left(c^{\mathsf {T}}x\right),\qquad x(0)=x_{0},$ where $\phi$ is a nonlinear function. By the additive state decomposition, the system can be additively decomposed into ${\begin{aligned}{\dot {x}}_{1}&=Ax_{1}+Bu_{1}+\phi (y_{d}),&&x_{1}(0)=x_{0},\\{\dot {x}}_{2}&=Ax_{2}+Bu_{2}+\phi \left(c^{\mathsf {T}}x_{1}+c^{\mathsf {T}}x_{2}\right)-\phi (y_{d}),&&x_{2}(0)=0\end{aligned}}$ with $x=x_{1}+x_{2}.$
This decomposition can help to simplify controller design.

## Other example applications

* In electrical engineering, in a linear circuit, the input (an applied time-varying voltage signal) is related to the output (a current or voltage anywhere in the circuit) by a linear transformation. Thus, a superposition (i.e., sum) of input signals will yield the superposition of the responses.
* In physics, Maxwell's equations imply that the (possibly time-varying) distributions of charges and currents are related to the electric and magnetic fields by a linear transformation. Thus, the superposition principle can be used to simplify the computation of fields that arise from a given charge and current distribution. The principle also applies to other linear differential equations arising in physics, such as the heat equation.
* In engineering, superposition is used to solve for beam and structure deflections of combined loads when the effects are linear (i.e., each load does not affect the results of the other loads, and the effect of each load does not significantly alter the geometry of the structural system). Mode superposition method uses the natural frequencies and mode shapes to characterize the dynamic response of a linear structure.
* In hydrogeology, the superposition principle is applied to the drawdown of two or more water wells pumping in an ideal aquifer. This principle is used in the analytic element method to develop analytical elements capable of being combined in a single model.
* In process control, the superposition principle is used in model predictive control.
* The superposition principle can be applied when small deviations from a known solution to a nonlinear system are analyzed by linearization.

## History

According to Léon Brillouin, the principle of superposition was first stated by Daniel Bernoulli in 1753: "The general motion of a vibrating system is given by a superposition of its proper vibrations." The principle was rejected by Leonhard Euler and then by Joseph Lagrange. Bernoulli argued that any sonorous body could vibrate in a series of simple modes with a well-defined frequency of oscillation. As he had earlier indicated, these modes could be superposed to produce more complex vibrations. In his reaction to Bernoulli's memoirs, Euler praised his colleague for having best developed the physical part of the problem of vibrating strings, but denied the generality and superiority of the multi-modes solution.
Later it became accepted, largely through the work of Joseph Fourier.