External SSD no longer bootable
You can use the image inline by simply removing \begin{figure}...\end{figure}
. It you don't want to change the \svgwidth
for the whole document, you can wrap it into a group ussing {...}
.
\documentclass{book}%
\usepackage{graphicx}
\begin{document}
\begin{figure}
\def\svgwidth{2cm}
\input{name.pdf_tex}
\caption{sdj}
\end{figure}
This is an apple {\def\svgwidth{2cm}\input{name.pdf_tex}} and more text
\end{document}
If you think about it, then on $[0,2\pi)$, the function $2\cos(t)$ takes all the values in $[-2,2]$, with multiplicity $2$ (except for $\pm 2$ which have multiplicity $1$). So the claim seems very plausible. The exercise now is to pick the correct unitary, which is basically a "change of variables" problem.
The unitary you want (assuming my rusty Calculus is okay) is $$ U : L^2([0,2\pi), dt/2\pi) \rightarrow L^2([-2,2],dx) \oplus L^2([-2,2],dx); \quad \xi\mapsto (f,g), $$ where \begin{align*} f(2\cos(t)) &= \xi(t) / \sqrt{4\pi\sin(t)} \quad (0\leq t\leq \pi), \\ g(2\cos(t)) &= \xi(t) / \sqrt{-4\pi\sin(t)} \quad (\pi < t < 2\pi) \end{align*} Notice that $g(\pm 2)$ is not defined, but we are in an $L^2$ space, so it's okay to not define a function at some isolated points. Similarly, where $\sin(t)=0$ the functions are not defined.
Similarly let $U(\eta) = (h,k)$. Then \begin{align*} (U^*(B\oplus B)U\xi|\eta) = \int_{-2}^2 x f(x) \overline{h(x)} \ dx + \int_{-2}^2 x g(x) \overline{k(x)} \ dx \end{align*} Change variables to see that this equals \begin{align*} \int_{\pi}^0 2\cos(t) f(2\cos(t)) \overline{h(2\cos(t))} (-2)\sin(t) \ dt \\ + \int_\pi^{2\pi} 2\cos(t) g(2\cos(t)) \overline{k(2\cos(t))} (-2)\sin(t) \ dt. \end{align*} Now substitute in, and see why the strange $\sin$ parts occurred before, \begin{align*} \int_0^\pi 2\cos(t) \frac{\xi(t)}{\sqrt{4\pi\sin(t)}} \frac{\overline{\eta(t)}}{\sqrt{4\pi\sin(t)}} 2\sin(t) \ dt \\ + \int_\pi^{2\pi} 2\cos(t) \frac{\xi(t)}{\sqrt{-4\pi\sin(t)}} \frac{\overline{\eta(t)}}{\sqrt{-4\pi\sin(t)}} (-2)\sin(t) \ dt \end{align*} This cancels down to $$ \int_0^{2\pi} 2\cos(t) \xi(t) \overline{\eta(t)} \ \frac{dt}{2\pi}, $$ as we want.
Edit: Here I have written $(\cdot|\cdot)$ for the inner-product. (A sort of mix between maths and physics notation; but I often write papers which need to consider both bilinear, and sesquilinear, pairings, and it's nice to have a notational difference between these). $\xi,\eta$ are members of $L^2([0,2\pi), dt/2\pi)$ (so functions, or equivalence classes thereof).
A similar calculation shows that $U$ is a unitary. More accurately, repeat the calculation without the operator $B\oplus B$ to show that $U^*U=1$. To see that $UU^*=1$, equivalently, $U$ has dense range, one could argue that "this is clear"; or you could compute $U^*$ (use change of variable again) which has a similar form.
I think this question has some merit. Even though it is asked from the standpoint of not understading harmonic Fourier decomposition, it serves for a few mental exercises. First of all, to address the true goal of the question:
I need to know how my circuit will behave with square input.
Square waves can be given by the summation of all odd harmonics of a fundamental sine wave. If the square wave is input to a linear system, then superposition principle applies, and the output signal can be reconstructed with the appropriate gain/attenuation and phase shift of each individual harmonic component.
For a matlab example, here is how to build a square wave using harmonic components up to 99th order:
t = 0:.01:20;
x = zeros(1,length(t));
for i = 1:2:99
h = (1/i)*sin(i*t);
x = x+h;
end
plot(t,x)
To find the output signal, if this wave is to be input of a RC filter, one could use the bode plot of the filter, find the attenuation and phase delay for every single harmonic component, and reconstruct the signal. A bode plot for an example filter:
sys = zpk([],-1,1);
bode(sys)
And the related system output:
lsim(sys,x,t)
Let's attempt to reconstruct the output using data from the bode diagram:
y = zeros(1,length(t));
for i = 1:2:99
[MAG,PHASE] = bode(sys,i);
PHASE = pi*PHASE/180;
h = (MAG/i)*sin(i*t+PHASE);
y = y+h;
end
plot(t,y)
Hope this covers the aspects of Fourier decomposition and Bode analysis. Now, to explain why the question has more merit than first meets the eye:
How to do the same analysis as above (i.e. finding cutoff point) for a square input. I mean, what should I insert as f_c? Doesn't square wave contain all frequencies?
Cutoff point can be defined as the frequency in which the output signal has half the power of the input signal. For sine inputs, this equals the -3dB frequency. Sine power is proportional to amplitude squared, and -3dB equals a \$.707\$ attenuation, which when squared equals \$.5\$. But what is the power of a square wave? And at which frequency is the output signal half the power of the input? This stands as a separate question which is tangential to the problem, but can serve as a "fun" mathematical exercise.