Is the question , where is the curve from to , is a constant, and and are unit vectors?
Of course you can. But the problem would be more corectly written where .
In this problem, so . That means that and the dot product gives you an integral of a function of y with respect to y.
Finding "the work integral", given a force vector, is a physics problem which is a special application of "integration on a path". And that is what this problem is asking.
If and the path is given by the parametric equations, , , then
or the path integral which, in turn, is the same as