The Piano Sonata No. 31 in A major, Op. 110, by Ludwig van Beethoven was composed in 1821 and published in 1822. It is the middle piano sonata in the group of three (Opp. 109, 110, and 111) that he wrote between 1820 and 1822, and is the penultimate of his piano sonatas. Though the sonata was commissioned in 1820, Beethoven did not begin work on Op. 110 until the latter half of 1821, and final revisions were completed in early 1822. The delay was due to factors such as Beethoven's work on the Missa solemnis and his deteriorating health. The original edition was published by Schlesinger in Paris and Berlin in 1822 without dedication, and an English edition was published by Muzio Clementi in 1823.

The work is in three movements. The Moderato first movement follows a typical sonata form with an expressive and cantabile opening theme. The Allegro second movement begins with a terse but humorous scherzo, which Martin Cooper believes is based on two folk songs, followed by a trio section. The last movement comprises multiple contrasting sections: a slow introductory recitative, an arioso dolente, a fugue, a return of the arioso, and a second fugue that builds to a passionate and heroic conclusion. William Kinderman finds parallels between the last movement's fugue and other late works by Beethoven, such as the fughetta in the Diabelli Variations and sections of the Missa solemnis, and Adolf Bernhard Marx favourably compares the fugue to those of Bach and Handel. The sonata is the subject of musical analyses including studies by Donald Tovey, Denis Matthews, Heinrich Schenker, and Charles Rosen. It has been recorded by pianists such as Artur Schnabel, Glenn Gould, Alfred Brendel and Hélène Grimaud.

Background In the summer of 1819, Adolf Martin Schlesinger, from the Schlesinger firm of music publishers based in Berlin, sent his son Maurice to meet Beethoven to form business relations with the composer. The two met in Mödling, where Maurice left a favourable impression on the composer. After some negotiation by letter, the elder Schlesinger offered to purchase three piano sonatas for 90 ducats in April 1820, though Beethoven had originally asked for 120 ducats. In May 1820, Beethoven agreed, and he undertook to deliver the sonatas within three months. These three sonatas are the ones now known as Opp. 109, 110, and 111, the last of his piano sonatas.

The composer was prevented from completing the promised sonatas on schedule by several factors, including his work on the Missa solemnis (Op. 123), rheumatic attacks in the winter of 1820, and a bout of jaundice in the summer of 1821. Barry Cooper notes that Op. 110 "did not begin to take shape" until the latter half of 1821. Although Op. 109 was published by Schlesinger in November 1821, correspondence shows that Op. 110 was still not ready by the middle of December 1821. The sonata's completed autograph score bears the date 25 December 1821, but Beethoven continued to revise the last movement and did not finish until early 1822. The copyist's score was presumably delivered to Schlesinger around this time, since Beethoven received a payment of 30 ducats for the sonata in January 1822.

Adolf Schlesinger's letters to Beethoven in July 1822 confirm that the sonata, along with Op. 111, was being engraved in Paris. The sonata was published simultaneously in Paris and Berlin that year, and it was announced in the Bibliographie de la France on 14 September. Some copies of the first edition reached Vienna as early as August, and the sonata was announced in the Wiener Zeitung that month. The sonata was published without a dedication, though there is evidence that Beethoven intended to dedicate Opp. 110 and 111 to Antonie Brentano. In February 1823, Beethoven sent a letter to the composer Ferdinand Ries in London, informing him that he had sent manuscripts of Opp. 110 and 111 so that Ries could arrange their publication in Britain. Beethoven noted that while Op. 110 was already available in London, the edition had mistakes that would be corrected in Ries's edition. Ries persuaded Muzio Clementi to acquire the British rights to the two sonatas, and Clementi published them in London that year.

Form

The sonata is in three movements, though Schlesinger's original edition separated the third movement into an Adagio and a Fuga. Alfred Brendel characterises the main themes of the sonata as all derived from the hexachord – the first six notes of the diatonic scale – and the intervals of the third and fourth that divide it. He also points out that contrary motion is a feature in much of the work, and is particularly prominent in the second movement.

The main themes of each movement begin with a phrase covering the range of a sixth. Another point of significance is the note F, which is the sixth degree of the A major scale. F forms the peak of the first phrase of the sonata and acts as the tonic of the second movement. Fs in the right hand also begin the second movement's trio section and the third movement's introduction.

The sonata lasts 19 minutes.

I. Moderato cantabile molto espressivo

The first movement in A major is marked Moderato cantabile molto espressivo ("at a moderate speed, in a singing style, very expressively"). Denis Matthews describes the first movement as "orderly and predictable sonata form", and Charles Rosen calls the movement's structure Haydnesque. Its opening is marked con amabilità (amiably). After a pause on the dominant seventh, the opening is extended in a cantabile theme. This leads to a light arpeggiated demisemiquaver transition passage. The second group of themes in the dominant E includes appoggiatura figures, and a bass which descends in steps from E to G three times while the melody rises by a sixth. The exposition ends with a semiquaver cadential theme.

The development section (which Rosen calls "radically simple") consists of restatements of the movement's initial theme in a falling sequence, with underlying semiquaver figures. Donald Tovey compares the artful simplicity of the development with the entasis of the Parthenon's columns.

The recapitulation begins conventionally with a restatement of the opening theme in the tonic (A major), Beethoven combining it with the arpeggiated transition motif. The cantabile theme gradually modulates via the subdominant to E major (a seemingly remote key which both Matthews and Tovey rationalise by viewing it as a notational convenience for F major). The harmony soon modulates back to the home key of A major. The movement's coda closes with a cadence over a tonic pedal.

II. Allegro molto

The scherzo is marked Allegro molto (very fast). Matthews describes it as "terse", and William Kinderman as "humorous", even though it is in the F minor key. The rhythm is complex with many syncopations and ambiguities. Tovey observes that this ambiguity is deliberate: attempts to characterise the movement as a gavotte are prevented by the short length of the bars implying twice as many accented beats – and had he wanted to, Beethoven could have composed a gavotte.

Beethoven uses antiphonal dynamics (four bars of piano contrasted against four bars of forte), and opens the movement with a six-note falling-scale motif. Martin Cooper finds that Beethoven indulged the rougher side of his humour in the scherzo by using motifs from two folk songs, "Unsa kätz häd kaz'ln g'habt" ("Our cat has had kittens") and "Ich bin lüderlich, du bist lüderlich" ("I am a draggle-tail, you are a draggle-tail"). Tovey earlier decided that such theories of the themes' origins were "unscrupulous", since the first of these folk songs was arranged by Beethoven some time before this work's composition in payment for a publisher's trifling postage charge – the nature of the arrangement making it clear that the folk songs were of little importance to the composer.

The trio in D major juxtaposes "abrupt leaps" and "perilous descents", ending quietly and leading to a modified reprise of the scherzo with repeats, the first repeat written out to allow for an extra ritardando. After a few syncopated chords the movement's short coda comes to rest in F major (a Picardy third) via a long broken arpeggio in the bass.

III. Adagio ma non troppo – Allegro ma non troppo

The third movement's structure alternates two slow arioso sections with two faster fugues. In Brendel's analysis, there are six sections – recitative, arioso, first fugue, arioso, fugue inversion, homophonic conclusion. In contrast, Martin Cooper describes the structure as a "double movement" (an Adagio and a finale).

The scherzo's concluding ritardando F major bass arpeggio resolves to B minor in the third movement's beginning, indicating a departure from the humour of the scherzo. Following three bars of introduction is the unbarred recitative, during which the tempo changes multiple times. This then leads to an A minor arioso dolente, a lament whose initial melodic contour is similar to the opening of the scherzo (although Tovey dismisses this as insignificant). The arioso is marked "Klagender Gesang" (Song of Lamentation) and is supported by repeated chords. Commentators (including Kinderman and Rosen) have seen the initial recitative and arioso as "operatic", and Brendel writes that the lament resembles the aria "Es ist vollbracht" (It is finished) from Bach's St John Passion. The New Grove Dictionary of Music and Musicians notes that the term "arioso" is rarely used in instrumental music.

The arioso leads into a three-voice fugue in A major, whose subject is constructed from three parallel rising fourths separated by two falling thirds . The opening theme of the first movement carries within it elements of this fugue subject (the motif A–D–B–E), and Matthews sees a foreshadowing of it in the alto part of the first movement's third-to-last bar. The countersubject moves by smaller intervals. Kinderman finds a parallel between this fugue and the fughetta of the composer's later Diabelli Variations (Op. 120), and also notes similarities with the "Agnus Dei" and "Dona nobis pacem" sections of the contemporaneous Missa solemnis. Gould contrasts this fugue, which is used in a "lyric, idyllic, contemplative" context, with the violent but disciplined fugue from the Hammerklavier sonata (Op. 106) that "revealed the turbulent, forceful Beethoven".

The fugue is broken off by a dominant seventh of A major, which resolves enharmonically onto a G minor chord in second inversion. This leads into a reprise of the arioso dolente in G minor marked ermattet (exhausted). Kinderman contrasts the perceived "earthly pain" of the lament with the "consolation and inward strength" of the fugue – which Tovey points out had not reached a conclusion. Rosen finds that G minor, the tonality of the leading note, gives the arioso a flattened quality befitting exhaustion, and Tovey describes the broken rhythm of this second arioso as being "through sobs".