Two solutions of correlation function of entangled photon pair in quantum optics are introduced.The first method uses the commutation relation of raising and lowering operator;the second method is called the second quantization.For the latter,one does not need to use any commutation relation,thus it is very convenient.