I know what dx is, but I didn't really express my question in the best way. If you like though, in terms of integrals, dx is the infinitesimal parts that the area of a curve is split up into.
The thing is, du isn't just equal to dx. I mean it represents something else, in this case cos(x)...