Signal Forensics is the art of detecting likely culprits from the time and frequency spectrum of signals. I made that up, but whatever you want to call it, this is an extremely useful skill, especially for reverse engineering waveforms and identifying likely culprits of hardware implementation issues.
That said, today's Signal Forensic challenge is to identify the most likely culprits for the waveforms plotted in "Exhibit A" and "Exhibit B" below.
What we start with (the known) is a Real Bandpass Signal that has been quantized (it really doesn't matter what frequency it is at or how many bits of quantization, but the following time and frequency domain plots illustrate the test waveform):
This is a two part challenge with an easier question, and then an advanced question. Even though the waveform itself was quantized and real, all subsequent operations were done to have a complex output and be at a much higher precision such that those numerical rounding effects would not be visible. The outputs are given by the transformation:
$$y[n] = g(x[n])$$
(And formally as RBJ points out, the relationship would be given as $y[n]= g\{ x(\cdot), n\}$ since one of the solutions is linear but time variant.)
where $x[n]$ is the real quantized input and $y[n]$ is a complex floating point output. $g(\cdot)$ is the mystery function and the answer to this puzzle. Importantly, $g(\cdot)$ is a linear function and all information within the passband waveform is efficiently preserved (without redundancy). The processing is not overly complicated and all done in floating point. There is a different $g(\cdot)$ used for Exhibit A and Exhibit B.
First the easier of the two, Exhibit A: Below is the real vs imaginary plot of the complex output. What is the general function $g(\cdot)$ in this case that could result in such a plot?
Now the trickier one (I assume), for the DSP Elite: Below is Exhibit B as the real vs imaginary plot of the complex output. What is the general function $g(\cdot)$ in this case that could result in such a plot, while meeting the criteria I introduced?
This is a “DSP Puzzle”, please preface your answer with spoiler notation by typing ythe following two characters first ">!"