Derivation and simulation of source function for acoustic logging