I'm currently using generalized Eisenstein series to construct weight 2 modular forms under $\Gamma\_1(N)$. They are defined as


$E\_2^{\psi,\phi}(\tau) = \delta(\psi) L(-1,\phi) + 2\sum\_{n=1}^{\infty} \sigma^{\psi,\phi}(n) q^n$, $q=e^{2\pi i \tau}$, where $\psi, \phi$ are Dirichlet characters (The Definition is taken from Diamond & Shurman).


Maybe I'm just not seeing it due to lack of experience (I'm a physicist) but now I would like to calculate the S-transformation ($\tau\mapsto{-1\over\tau}$) of these functions.
Can somebody point me in the right direction?


Thanks!



S-transformation of generalized Eisenstein series
As BR notes, the $q$-expansion presentation of Eisenstein series is unhelpful for determining what happens under $z\rightarrow -1/z$. (The weight-two aspect creates some additional complications, but these are not the crucial ones here. Let's ignore convergence issues, at least for a while.)


Another way to describe level-$N$ Eisenstein series is as
$$
E\_{c\_o,d\_o,N}(z) = \sum\_{c=c\_o (N),\;d=d\_o (N)} {1\over (cz+d)^{2k}}
$$
where $2k>2$ for convergence. It's immediate that $z\rightarrow -1/z$ interchanges $c\_o$ and $d\_o$, so the transformation of such Eisenstein series is clear.


For weights $>2$, the Fourier coefficients are readily computed, as in many standard sources (probably Diamond-Shurman, too). Various devices (often called "Hecke summation") extend this to the weight-two case.


Suitable linear combinations of these, summed over $c\_o,d\_o$ mod $N$, give the type desired. But there are complications depending on whether the characters are primitive or not mod $N$, probably a necessity of inverting matrices of Dirichlet $L$-function values, things like that. Do-able, but detail-y.


(That book-keeping is very nicely packaged by rewriting everything as modular forms on adele groups. This may be too pricey for your purposes.)


D. Bump's book on automorphic forms also does some such computations.


