In this paper, we write modified Friedman-Robertson-Walkers (FRW) equation in the form of first law of thermodynamics at the apparent horizon. We consider the universe filled with the viscous fluid. Here we employ the general expression of temperature gravity and entropy at the apparent horizon of FRW universe and obtain the generalized first law of thermodynamics at the special condition for the modified FRW equation. The generalized first law of thermodynamics help us to arrange the α1, α2, β1 and β2 in modified FriedmanRobertson-Walkers equation.