In this study, the homotopy analysis method is developed to give periodic solutions of delayed differential equations that describe time-delayed position feedback on the Duffing system. With this technique, some approximate analytical solutions of high accuracy for some possible solutions are captured, which agree well with the numerical solutions in the whole time domain. Two examples of dynamic systems are considered, focusing on the periodic motions near a Hopf bifurcation of an equilibrium point. It is found that the current technique leads to higher accurate prediction on the local dynamics of time-delayed systems near a Hopf bifurcation than the energy analysis method or the traditional method of multiple scales.