"The Goldberg Variation" is the sixth episode of the seventh season of the science fiction television series The X-Files. It premiered on the Fox network in the United States on December 12, 1999. It was written by Jeffrey Bell, directed by Thomas J. Wright, and featured guest appearances by Willie Garson and Shia LaBeouf. The episode is a "Monster-of-the-Week" story, unconnected to the series' wider mythology. "The Goldberg Variation" earned a Nielsen household rating of 8.8, being watched by 14.49 million people in its initial broadcast. The episode received mixed-to-positive reviews.
The show centers on FBI special agents Fox Mulder (David Duchovny) and Dana Scully (Gillian Anderson) who work on cases linked to the paranormal, called X-Files. Mulder is a believer in the paranormal, while the skeptical Scully has been assigned to debunk his work. In this episode, Mulder and Scully investigate a mysterious man named Henry Weems, who appears to be the luckiest man in the world. The title is a dual reference to Rube Goldberg machines and the Goldberg Variations by Johann Sebastian Bach.
The Goldberg Variations, BWV 988, is a work written for harpsichord by Johann Sebastian Bach, consisting of an aria and a set of 30 variations. First published in 1741, the work is considered to be one of the most important examples of variation form. The Variations are named after Johann Gottlieb Goldberg, who may have been the first performer.
The tale of how the variations came to be composed comes from an early biography of Bach by Johann Nikolaus Forkel:
Forkel wrote his biography in 1802, more than 60 years after the events related, and its accuracy has been questioned. The lack of dedication on the title page also makes the tale of the commission unlikely. Goldberg's age at the time of publication (14 years) has also been cited as grounds for doubting Forkel's tale, although it must be said that he was known to be an accomplished keyboardist and sight-reader. Williams (2001) contends that the Forkel story is entirely spurious.
Arnold Schering has suggested that the aria on which the variations are based was not written by Bach. More recent scholarly literature (such as the edition by Christoph Wolff) suggests that there is no basis for such doubts.
The seventh season of the American science fiction television series The X-Files commenced airing on the Fox network in the United States on November 7, 1999, concluded on May 21, 2000, and consists of twenty-two episodes. Taking place after the destruction of the Syndicate, this season marks the end of various other story lines; during this season, Fox Mulder (David Duchovny) learned the true fate of his sister, Samantha. The season concludes with Mulder being abducted by aliens and Dana Scully (Gillian Anderson) learning that she is pregnant.
Before the broadcasting for the season began, Duchovny sued Fox and eventually announced his decision to leave the show. As a result, the season would be the last to feature Duchovny in a full-time capacity, although he would return in later seasons as an intermittent main character. Due to this eventual character change, this season would be the last to feature the original opening sequence for the series, as the two later years updated the intro in an attempt to renew and revive the series.