Solution: With this problem, one must choose which trigonometric rule to follow. In this case, it is the following

 ò cos(u) du = sin(u) + C

Applying this rule gives

ò cos(x) dx = -sin(x) + C,

where C is an arbitrary constant.