Analytic Calculation of Electric Fields of Coherent THz Pulses