A word for the urge to do the opposite [duplicate]

It is called reactance in psychology. Moreover, the reverse psychology technique relies on the psychological phenomenon of reactance, in which a person chooses the option being advocated against.

Description:
When people feel that their freedom to choose an action is threatened, they get an unpleasant feeling called ‘reactance’. This also motivates them to perform the threatened behavior, thus proving that their free will has not been compromised.
Research:
Pennebaker and Sanders (1976) put one of two signs on college bathroom walls. One read ‘Do not write on these walls under any circumstances’ whilst the other read ‘Please don’t write on these walls.’ A couple of weeks later, the walls with the ‘Do not write on these walls under any circumstances’ notice had far more graffiti on them.

http://changingminds.org/explanations/theories/reactance.htm

OED definition and the earliest citation:

Psychology. A response of resistance aroused in a person who feels his or her freedom of choice is threatened or impeded.

1966       J. W. Brehm Theory of Psychol. Reactance i. 2         Since this hypothetical motivational state is in response to the reduction (or threatened reduction) of one's potential for acting, and conceptually may be considered a counterforce, it will be called ‘psychological reactance’.


wilfullness OED

The quality or character of being wilful; disposition to assert one's own will against reason, persuasion, etc.; determination to take one's own way; self-will, perversity, obstinacy, stubbornness.

From the 14th C, the sense of wilfullness is 'nefariously' deliberate, knowingly, and on purpose.


recalcitrant was the first thing which came in my mind*.

(of a person) unwilling to obey orders or to do what should be done, or (of an animal) refusing to be controlled. Cambridge Dictionary

*As that is what my father often calls me...