DSolve[d - c*Cos[y[x]] + (b + a*Cos[y[x]])*Derivative[1][y][x]^2 == 0,y[x],x]