We break a signal into even and odd parts to understand its symmetry. This helps in analyzing and processing signals easily.
Even and odd signal decomposition in Signal Processing
x_even[n] = (x[n] + x[-n]) / 2 x_odd[n] = (x[n] - x[-n]) / 2
x[n] is the original signal at time n.
The even part is symmetric: x_even[n] = x_even[-n]. The odd part is antisymmetric: x_odd[n] = -x_odd[-n].
x = [1, 2, 3, 4] # Assume x[-n] is x reversed x_even = [(x[i] + x[-i-1]) / 2 for i in range(len(x))] x_odd = [(x[i] - x[-i-1]) / 2 for i in range(len(x))]
import numpy as np n = np.array([-2, -1, 0, 1, 2]) x = n**2 # signal: square of n x_even = (x + x[::-1]) / 2 x_odd = (x - x[::-1]) / 2
This program creates a simple signal x[n] = n, then finds its even and odd parts. It prints the values and shows a plot to visualize the decomposition.
import numpy as np import matplotlib.pyplot as plt # Define signal x[n] = n for n in -5 to 5 n = np.arange(-5, 6) x = n # Compute even and odd parts x_even = (x + x[::-1]) / 2 x_odd = (x - x[::-1]) / 2 # Print results print('n:', n) print('x:', x) print('Even part:', x_even) print('Odd part:', x_odd) # Plot signals plt.stem(n, x, linefmt='b-', markerfmt='bo', basefmt='k-', label='Original x[n]') plt.stem(n, x_even, linefmt='g-', markerfmt='go', basefmt='k-', label='Even part') plt.stem(n, x_odd, linefmt='r-', markerfmt='ro', basefmt='k-', label='Odd part') plt.xlabel('n') plt.ylabel('Amplitude') plt.title('Even and Odd Signal Decomposition') plt.legend() plt.show()
The even part is always symmetric around zero.
The odd part is always antisymmetric, meaning it flips sign when n changes sign.
For real signals, the sum of even and odd parts equals the original signal.
Every signal can be split into even and odd parts.
Even parts mirror around zero; odd parts flip sign.
This helps simplify signal analysis and processing.
Practice
What is the main property of an even signal x(t) in signal processing?
Solution
Step 1: Recall definition of even signal
An even signal is symmetric about zero, meaning the value attequals the value at-t.Step 2: Apply the property to the signal
This meansx(t) = x(-t)for every timet.Final Answer:
It satisfies x(t) = x(-t) for all t. -> Option DQuick Check:
Even signal = x(t) = x(-t) [OK]
- Confusing even with odd signal definitions
- Thinking even signals must be zero at t=0
- Assuming even signals cannot have negative values
Which of the following is the correct formula to find the odd part x_o(t) of a signal x(t)?
Solution
Step 1: Recall formula for odd part of a signal
The odd part is defined as half the difference between the signal and its time-reversed version:x_o(t) = (x(t) - x(-t)) / 2.Step 2: Verify the formula matches the odd signal property
This formula ensuresx_o(-t) = -x_o(t), which is the odd signal condition.Final Answer:
x_o(t) = (x(t) - x(-t)) / 2 -> Option BQuick Check:
Odd part = (x(t) - x(-t))/2 [OK]
- Using addition instead of subtraction for odd part
- Multiplying signals instead of subtracting
- Dividing by wrong number or not dividing at all
Given a discrete signal x = [2, 3, 4, 3, 2] indexed from -2 to 2, what is the even part x_e of this signal?
Use the formula x_e[n] = (x[n] + x[-n]) / 2.
Solution
Step 1: Identify signal values and indices
Signal x indexed from -2 to 2 is: x[-2]=2, x[-1]=3, x[0]=4, x[1]=3, x[2]=2.Step 2: Calculate even part using formula
Calculate eachx_e[n] = (x[n] + x[-n]) / 2: - n=-2: (x[-2]+x[2])/2 = (2+2)/2=2 - n=-1: (x[-1]+x[1])/2 = (3+3)/2=3 - n=0: (x[0]+x[0])/2 = (4+4)/2=4 - n=1: (x[1]+x[-1])/2 = (3+3)/2=3 - n=2: (x[2]+x[-2])/2 = (2+2)/2=2 But note the signal is symmetric, so values are same as original except at n=1 and n=-1 where average is 3.Final Answer:
[2, 3, 4, 3, 2] -> Option AQuick Check:
Even part averages signal and its mirror [OK]
- Not averaging values correctly
- Mixing indices n and -n
- Using odd part formula instead
Consider the Python code below to compute the odd part of a signal x:
def odd_part(x):
return [(x[i] - x[-i]) / 2 for i in range(len(x))]What is the main error in this code?
Solution
Step 1: Understand indexing in Python lists
Python negative indices count from the end, so-idoes not correspond to-ntime index but to list end positions.Step 2: Identify correct indexing for signal symmetry
For signal indexed from negative to positive, indexing must mapito-iproperly, which this code does not do because list indices are 0-based and-iaccesses wrong elements.Final Answer:
Indexing with negative indices -i is incorrect for this context. -> Option CQuick Check:
Python negative indices ≠ signal negative time [OK]
- Assuming -i indexes negative time correctly
- Ignoring zero-based indexing
- Confusing addition/subtraction in formula
You have a signal x(t) = t^3 + 2t. Decompose it into even and odd parts. What is the even part x_e(t)?
Solution
Step 1: Identify even and odd nature of terms
The termt^3is an odd function because(-t)^3 = -t^3. The term2tis also odd because2(-t) = -2t.Step 2: Calculate even part using formula
Even part isx_e(t) = (x(t) + x(-t)) / 2. Substitute:x_e(t) = (t^3 + 2t + (-t)^3 + 2(-t)) / 2 = (t^3 + 2t - t^3 - 2t) / 2 = 0.Final Answer:
x_e(t) = 0 -> Option AQuick Check:
Sum of odd functions is odd, so even part is zero [OK]
- Assuming polynomial terms are even by default
- Mixing odd and even function properties
- Forgetting to apply formula correctly
Ready to prove it?
Pass the test and this pattern moves unknown
