LIMA
With God's help
עברית

Even and Odd Decomposition

Imagine you are looking at a butterfly with its wings spread open: an even signal is like a perfect butterfly – its right side is an exact mirror image of its left side. An odd signal, on the other hand, is like a seesaw in a playground: when the right side goes up, the left side goes down by exactly the same amount (and at the midpoint the height is always zero). The beauty is that every crooked, asymmetric signal in the world can be decomposed into two "transparent layers" – one layer symmetric like a butterfly and a second, inverted layer like a seesaw – which, when you add them together, reproduce the original signal exactly.

The Theory in Brief

A signal is called even if it is symmetric about the vertical axis, that is, for every \(t\) we have \(x(t) = x(-t)\) (like \(t^2\), \(\cos(t)\) or \(|t|\)). A signal is called odd if it is antisymmetric, that is, for every \(t\) we have \(x(-t) = -x(t)\) (like \(t\) or \(\sin(t)\)).

The real power of the theory is that every general signal – continuous or discrete, even if it is neither even nor odd – can be decomposed uniquely into the sum of an even component and an odd component: \[x(t) = x_{\text{even}}(t) + x_{\text{odd}}(t)\] where the components are computed as follows: \[x_{\text{even}}(t) = \dfrac{x(t) + x(-t)}{2} \quad , \quad x_{\text{odd}}(t) = \dfrac{x(t) - x(-t)}{2}\]

Geometrically, the superposition (addition) of the two graphs at every point gives back the original signal. For example, in the decomposition of a discrete step signal (which equals \(0\) for \(n<0\) and \(1\) for \(n\ge 0\)), the even component equals \(0.5\) at every \(n\neq 0\) (and \(1\) at \(n=0\)), and the odd component equals \(-0.5\) at the negatives and \(0.5\) at the positives (and \(0\) at \(n=0\)) – so that on the negative side they cancel each other to \(0\), and on the positive side they add up to \(1\).

x[n] xeven[n] xodd[n] =+ n = 0

How to Read the Lab

The original signal \(x(t)\) / \(x[n]\)

The wide main graph at the top, in glowing white-gold. In discrete mode it is a Stem Plot.

The even component \(x_{\text{even}}\)

Bottom left, in neon turquoise, with a soft vertical mirror line on the axis \(t=0\).

The odd component \(x_{\text{odd}}\)

Bottom right, in neon magenta, with a glowing anchor point at the origin \((0,0)\).

The mode switch: continuous \(t\) / discrete \(n\)

Switches between continuous curves and stem plots over \(n\) from \(-8\) to \(8\). The same examples exist in both modes.

The example gallery

Pure even signals, pure odd signals and decomposition examples (signals that are neither even nor odd). The selected example is marked in gold.

Draw / drag it yourself

In continuous mode: a shift slider \(t_0\) that moves the signal to \(x(t-t_0)\), with magnetic stops at \(0\) and at \(\pm\frac{\pi}{2}\). In discrete mode: the "Drag the stems" button, and then you grab any stem in the main graph and drag it up or down.

The "twin pairs" scanner

Moving the mouse over a point (or touching it) places two vertical laser lines: one at \(+t_0\) and one at its twin at \(-t_0\), in all three graphs. A click pins the scanner in place.

✓

The live panel

In the corner of the main graph: the real numbers inside the formulas of \(x_{\text{even}}(t_0)\) and \(x_{\text{odd}}(t_0)\), the sum check, and the values of both components at the twin \(-t_0\).

The "merge and superposition" slider

From 0% to 100%: it lifts the two lower graphs and lays them on top of each other inside the main graph, over the original signal.

Mutual cancellation / constructive addition

Above 50%, soft bands appear: red where the two components have opposite signs ("Mutual cancellation"), and green where they have the same sign ("Constructive addition"), with a numeric label such as \(0.5 + (-0.5) = 0\).

Symmetry test: mirror

The icon on the \(x_{\text{even}}\) graph: the right side folds over the left side about the \(y\) axis, and a tag shows the percentage of overlap.

Symmetry test: \(180^\circ\) rotation

The icon on the \(x_{\text{odd}}\) graph: the graph rotates by \(180^\circ\) about the origin, and a tag shows how well it lands on itself.

The readouts

The mode and the signal, the shift \(t_0\), the scanner point and its twin with all their values, \(\max|x_{\text{even}}|\) and \(\max|x_{\text{odd}}|\) (zero = the component vanishes), the result of the symmetry test, and the superposition on each side.

To the lab ↓
Loading the lab...
1

Experiments

  1. The purity test – butterfly versus seesaw. In continuous mode, choose \(\cos(t)\) in the example gallery and then \(|t|\). Press the "Symmetry test" (mirror) button on the turquoise graph and notice what happens in the odd (magenta) graph. Now switch to \(\sin(t)\), press the "\(180^\circ\) rotation" button on the magenta graph and check what happens in the even graph.
    A pure even signal satisfies \(x(t) = x(-t)\) for every \(t\), and so when it enters the formula of the odd component \[x_{\text{odd}}(t) = \frac{x(t) - x(-t)}{2}\] the numerator vanishes completely and the odd graph stays flat at zero. In exactly the same way, a pure odd signal satisfies \(x(-t) = -x(t)\), which zeroes the even component \[x_{\text{even}}(t) = \frac{x(t) + x(-t)}{2}\] This way you can tell in a second whether a signal is "pure" – one of the two lower graphs simply disappears.
  2. How is "nothing" built from two numbers? (decomposing the discrete step) Switch to discrete mode and choose the discrete step signal \(x[n]\). Move the twin-pairs scanner to \(n=3\) (and at the same time to \(n=-3\)), and check the numbers in the live panel. Now slowly drag the superposition slider from 0% to 100% and follow the negative side \((n<0)\) compared with the positive side \((n>0)\).
    This is one of the most surprising moments in signal processing: even though the original signal equals \(0\) on the whole negative side \((n<0)\), both the even component \((0.5)\) and the odd component \((-0.5)\) are not zero there. The magic happens in the superposition (the pointwise addition between them): on the negative side they have opposite signs and cancel each other to \(0\), while on the positive side they are identical \((0.5 + 0.5)\) and add up together to \(1\).
  3. The unbreakable law of the origin \((n=0)\). Stay on the discrete step signal and aim the twin-pairs scanner exactly at \(n=0\). Notice the values you get in the even graph \((1)\) and in the odd graph \((0)\). Now switch to the "Drag it yourself" mode and grab the stem at \(n=0\) – pull it up and down and watch what happens to \(x_{\text{even}}[0]\) and to \(x_{\text{odd}}[0]\).
    At the zero point (\(n=0\) or \(t=0\)), the "twin" of the point is the point itself \((-0 = 0)\). So, when substituting into the decomposition formulas, you always get \[x_{\text{odd}}(0) = \frac{x(0) - x(0)}{2} = 0\] while \[x_{\text{even}}(0) = \frac{x(0) + x(0)}{2} = x(0)\] This means that every odd signal must vanish at the origin, and the even component always "absorbs" the full original value of the signal at zero.
  4. Breaking symmetry – when the cosine "wakes up". Go back to continuous mode and choose \(\cos(t)\) (a pure even signal). Now gently drag the shift slider \((t_0)\) to the right and look at the magenta graph \((x_{\text{odd}})\). Keep dragging the slider until the original signal reaches a shift of a quarter period \(\left(\frac{\pi}{2}\right)\), and see what happened to the two lower graphs.
    The symmetry of signals does not depend only on the "shape" of the graph, but on its position relative to the vertical axis \((t=0)\). The moment you move \(\cos(t)\) even a millimeter to the side, the equality \(x(t) = x(-t)\) breaks and the odd component immediately comes to life. With a shift of \(\frac{\pi}{2}\) to the right, the cosine turns into \(\sin(t)\) – and the energy moves 100% from the even component to the odd component.
  5. The anatomy of a general signal \((e^t)\). In continuous mode, choose the example of the exponential function \(e^t\). Move the twin-pairs scanner to \(t=1.5\) (and \(t=-1.5\)) and notice how two completely different values merge into an average (even) and a halved difference (odd). Finally, drag the superposition slider to 100% to see the two components rebuild \(e^t\).
    This experiment proves the central theorem of the material: every general signal, even one that looks completely asymmetric like \(e^t\), can be decomposed uniquely into the sum of an even component and an odd component: \[x(t) = x_{\text{even}}(t) + x_{\text{odd}}(t)\] In the case of \(e^t\), the decomposition reveals two famous functions in engineering – the even \(\cosh(t)\) and the odd \(\sinh(t)\) – whose superposition reproduces the original signal exactly at every point.