Is an integral itself a function or a constant?
I have three cases:
Q1: Say I have $f:\mathbb R \rightarrow \mathbb R$ and $\int_a^bf(t)\, dt$. Should I write $$ g(t)=\int_a^bf(t)\, dt \tag 1 $$ where $g:\mathbb R\rightarrow \mathbb R$. Or should I write $$ a=\int_a^bf(t)\, dt \tag 2 $$ where $a$ is a constant, $a\in \mathbb R$.
Q2: If I have $x:\mathbb R\rightarrow \mathbb R$ and an improper integral $\int_{-\infty}^{\infty}x(t)\, dt$, should I write $$ h(t)=\int_{-\infty}^{\infty}x(t)\, dt \tag 3 $$ where $h:\mathbb R\rightarrow \mathbb R$. Or with a constant $b\in \mathbb R$ $$ b=\int_{-\infty}^{\infty}x(t)\, dt \tag 4 $$
Q3: Also an improper integral of $y:\mathbb R\rightarrow \mathbb R$, so $\int_{-\infty}^{\infty}\lvert y(t)\rvert ^2\, dt$. Is the following correct $$ p(x)=\int_{-\infty}^{\infty}\lvert y(t)\rvert ^2\, dt \tag 5 $$ where $p:\mathbb R\rightarrow \mathbb R$. Or with a constant $c\in\mathbb R$ $$ c=\int_{-\infty}^{\infty}\lvert y(t)\rvert ^2\, dt \tag 6 $$
Thanks!
In $Q_1, Q_2$ and $Q_3$, the integrals are constants.