Resolvent method on the single-photon optomechanical cooling