Temperomandibular joint dysfunction is a problem that occurs in the jaw. It can produce headaches, limited opening of the mouth , and pain. It can be a problem in the joint, muscles, or alignment of the teeth. Treatment can be complex and must start by finding the source of the problem.