I know what each of Bandwidth, Signal rate, and Bit rate mean. But I am having trouble in their mathematical relationship with each other. I will use the notation of the textbook I am reading from (which I think is the cause of this confusion, and I don't know if I can name it here or not). Specifically, I am trying to understand how to derive the BW for a certain line code. The book defines \$r = \frac{number~of~data~elements}{number~of~signal~elements}\$ and relates the bit rate \$(N)\$ with the signal rate \$(S)\$ as follows:
\$S = c \times \frac{N}{r}\$ . . . . .(1)
Where \$c\$ is some constant. When calculating the bandwidth \$(BW)\$ of a line code the book uses formula (1) above and seems to substitute \$c\$ with \$\frac{1}{2}\$. My sources of confusion are:
1) \$S\$ is defined as the signal rate not bandwidth
2) Why always \$c=\frac{1}{2}\$?
3) In the plots the X axis units are \$f/N\$ (is this Hz/bps?)
I searched a lot and I think the answer is in Nyquit's bit rate formula which says:
\$N=2\times BW \times \log_2(L) \$
where \$L\$ is the number of signal levels which is equal to \$2^r\$. This means that:
\$BW = N/2r\$ . . . . . (2)
But this suggests that \$BW = S\$ (from (1) and (2)). This is where I get stuck. How should I understand this?
Edit after Mr. Snrub answer:
So if we go back to Nyquit's formula \$N = 2 \times BW \times log_2L\$ and take a look at the units we see that the units for \$2 \times log_2L\$ or equivalently \$2 \times log_22^r = 2r\$ should be bits/cyc, i.e.:
\$\frac{bits}{sec} = \frac{cyc}{sec} \times \frac{bits}{cyc}\$
We know that \$r\$ units are bits/sym. So for everything to line up correctly the units for the \$2\$ should be sym/cyc, i.e.:
\$N(\frac{bits}{sec}) = 2(\frac{sym}{cyc}) \times BW (\frac{cyc}{sec}) \times r(\frac{bits}{sym})\$
This is easy to see for the case with highest frequency for patterns of 101010... or 0101010... in NRZ line coding where we have 2 symbols (one 1 and one 0) per cycle of a pure sine wave. But what if the line coding was polar RZ? In this case a pure sine will not line up with the transmitted bits. So how can we know the symbols/cycle factor for any line code?