Let us start with the Fourier series of a periodic function with period T:
$$a{\left[k\right]}=\frac{2}{T}\int_{T}x_T{\left(t\right)}\cos{\left(k\frac{2\pi}{T}t\right)}, a{\left[0\right]}=1,$$ $$b{\left[k\right]}=\frac{2}{T}\int_{T}x_T{\left(t\right)}\sin{\left(n\frac{2\pi}{T}t\right)}, \ b{\left[0\right]}=0, $$ $$
x_T{\left(t\right)}=\ \sum_{k=0}^{\infty}a{\left[k\right]}\cos{\left(n\frac{2\pi}{T}t\right)}+b{\left[k\right]}\sin{\left(n\frac{2\pi}{T}t\right)}
$$
We set $\omega_0=\frac{2\pi}{T}$
$$a{\left[k\right]}=\frac{2}{T}\int_{T}x_T{\left(t\right)}\cos{\left(k\omega_0t\right)}, a{\left[0\right]}=1,$$ $$ b{\left[k\right]}=\frac{2}{T}\int_{T}x_T{\left(t\right)}\sin{\left(k\omega_0t\right))},$$ $$ b{\left[0\right]}=0,
x_T{\left(t\right)}=\ \sum_{k=0}^{\infty}a{\left[k\right]}\cos{\left(k\omega_0t\right)}
$$
We define $a{\left[k\omega_0\right]} = Ta{\left[k\right]}$
$$x_T{\left(t\right)}=\frac{1}{T}\ \sum_{k=0}^{\infty}a{\left[k\omega_0\right]}\cos{\left(k\omega_0t\right)}+b{\left[k\omega_0\right]}\sin{\left(k\omega_0t\right)}$$
Since $\omega_0=\frac{2\pi}{T}\Longleftrightarrow\frac{\omega_0}{2\pi}=\frac{1}{T}$ we can write:
$$x_T{\left(t\right)}=\frac{\omega_0}{2\pi}\ \sum_{k=0}^{\infty}a{\left[k\omega_0\right]}\cos{\left(k\omega_0t\right)}+b{\left[k\omega_0\right]}\sin{\left(k\omega_0t\right)}$$
Now we stretch the period T till infinity: $T\longrightarrow\ \infty\ \Longrightarrow\ \omega_0\longrightarrow\ 0$
$$x{\left(t\right) \equiv \lim_{T\to \infty}{x_T{\left(t\right)}}}=\lim_{\omega_0\to 0}{x_T{\left(t\right)}}=\lim_{\omega_0\to 0}\frac{1}{2\pi}\ \sum_{k=0}^{\infty}\left(a{\left[k\omega_0\right]}\cos{\left(k\omega_0t\right)}+b{\left[k\omega_0\right]}\sin{\left(k\omega_0t\right)}\right)\omega_0$$
$$x\left(t\right)=\lim_{\omega_0\to 0}\frac{1}{2\pi}\ \sum_{k=0}^{\infty}\left(a{\left[k\omega_0\right]}\cos{\left(k\omega_0t\right)}+b{\left[k\omega_0\right]}\sin{\left(k\omega_0t\right)}\right)\omega_0$$
Since we move between frequencies using the step $\omega_0$,
we can consider $\omega_0$ being a frequency interval: $\omega_0\equiv\Delta\omega$
We use the following property:
$$\lim_{\Delta\omega\to 0}{\sum_{k=0}^{\infty}f{\left(k\Delta\omega\right)}}\Delta\omega=\int_{0}^{\infty}f\left(\omega\right){d\omega)}$$
This leads to:
$$x{\left(t\right)=\ \lim_{T\to\infty}{x_T{\left(t\right)}}}=\lim_{\omega_0\to0}{x_T{\left(t\right)}}=\frac{1}{2\pi}\int_{0}^{\infty}\left(a{\left(\omega\right)}\cos{\left(\omega t\right)}+b{\left(\omega\right)}\sin{\left(\omega t\right)}\right)\ d\omega$$
We now do the same trick for the coefficients:
$$a{\left(\omega\right)}=\lim_{T\to\infty}a{\left[k\omega_0\right]}=\lim_{T\to\infty}Ta{\left[k\right]}=\lim_{T\to\infty}2\int_{T}x_T{\left(t\right)}\cos{\left(k\omega_0t\right))}$$
$$a{\left(\omega\right)}=\lim_{T\to\infty}2\int_{T}x_T{\left(t\right)}\cos{\left(k\omega_0t\right)}=2\int_{0}^{\infty}x{\left(t\right)}\cos{\left(\omega t\right)}$$
We finally arrive at the 'real Fourier transform':
$$a{\left(\omega\right)}=2\int_{0}^{\infty}x{\left(t\right)}\cos{\left(\omega t\right)} \ and \ b{\left(\omega\right)}=2\int_{0}^{\infty}x{\left(t\right)}\sin{\left(\omega t\right)}$$
The 'inverse real transform' is:
$$x{\left(t\right)}=\frac{1}{2\pi}\int_{0}^{\infty}\left(a{\left(\omega\right)}\cos{\left(\omega t\right)}+b{\left(\omega\right)}\sin{\left(\omega t\right)}\right)\ d\omega$$
We can also express the inverse transform as a decomposition of the function in phase-shifted cosines:
$$x{\left(t\right)}=\frac{1}{2\pi}\int_{0}^{\infty}{c{\left(\omega\right)}\cos{\left(\omega t+\varphi\left(\omega\right)\right)}}\ d\omega$$
with $c{\left(\omega\right)}=\sqrt{{a{\left(\omega\right)}}^2+{b{\left(\omega\right)}}^2},\ \varphi\left(\omega\right)=atan2{\left(b{\left(\omega\right)},a{\left(\omega\right)}\right)}$
Now we jump to complex numbers by using the complex exponential notation for cosine:
$$x{\left(t\right)}=\frac{1}{2\pi}\int_{0}^{\infty}{c{\left(\omega\right)}\frac{\left(e^{j\left(\omega t+\varphi\left(\omega\right)\right)}+e^{-j\left(\omega t+\varphi\left(\omega\right)\right)}\right)}{2}}\ d\omega$$
$$x{\left(t\right)}=\frac{1}{2\pi}\int_{-\infty}^{\infty}{c{\left(\omega\right)}\frac{\left(e^{j\left(\omega t+\varphi\left(\omega\right)\right)}\right)}{2}}\ d\omega$$
$$x{\left(t\right)}=\frac{1}{2\pi}\int_{-\infty}^{\infty}{c{\left(\omega\right)e^{j\varphi\left(\omega\right)}}\ \frac{e^{j\omega t}}{2}}\ d\omega$$
$$x{\left(t\right)}=\frac{1}{2\pi}\int_{-\infty}^{\infty}{\left(a{\left(\omega\right)}+j\ b{\left(\omega\right)}\ \right)\ \frac{e^{j\omega t}}{2}}\ d\omega$$
$c\left(\omega\right)e^{j\varphi\left(\omega\right)}$ or
$a\left(\omega\right)+j\ b\left(\omega\right)$
is the Fourier transform of $x\left(t\right)$.