Let $1 \leq p,q \leq \infty$ and $A= (a_{ij})$ be a scalar matrix. Suppose for every $x= (x_j)\in l^p$, the series $\sum_{1}^{\infty}a_{ij}x_j$ is convergent for every $i$ and that $y=(y_i) \in {l}^q$ where $y_i = \sum_{1}^{\infty}a_{ij}x_j = (Ax)_{j}$. I need to show that the map $A : l^p \rightarrow l^q $ is a bounded linear map.
The hint given to me was to use Closed graph theorem but I absolutely don't know how to do it !
As Daniel Fischer suggested: consider a sequence $\left(x^{(n)}, y^{(n)}\right)$ in the graph (that is, $y^{(n)}=Ax^{(n)}$), and such that $\left(x^{(n)}, y^{(n)}\right)\to (x,y)$ in $\ell^p\times \ell^q$. We have to show that $y=Ax$. Considering the sequence $\left(x^{(n)}, y^{(n)}\right)-\left(x,Ax\right)$ instead of the original one, we can assume without loss of generality that $x=0$ and we have to prove that $y=0$. It suffices to prove that for any $i$, $\left(Ax^{(n)}\right)_i\to 0$ as $n$ goes to infinity, that is, $$\tag{*} \lim_{n\to +\infty}\sum_{j=1}^{+\infty}a_{i,j}x_j^{(n)}=0. $$ It is possible to prove (for example using Baire's theorem) that for any $i$, the sequence $\left(a_{i,j}\right)_{j\geqslant 1}$ belongs to $\ell^q$ hence (*) follows by an application of Hölder's inequality.
Here, the advantage of the closed graph theorem is that in order to prove the continuity at $0$, we only have to consider sequences $\left(x^{(n)}\right)$ which go to $0$ such that $\left(Ax^{(n)}\right)$ converges to something, which is much easier to do than treating all the sequences going to $0$.