The Trio No. 2 in E-flat major for piano, violin, and violoncello, D. 929, was one of the last compositions completed by Franz Schubert, dated November 1827. It was published by Probst as opus 100 in late 1828, shortly before the composer's death and first performed at a private party in January 1828 to celebrate the engagement of Schubert's school-friend Josef von Spaun. The Trio was among the few of his late compositions Schubert heard performed before his death. It was given its first private performance by Carl Maria von Bocklet on the piano, Ignaz Schuppanzighplaying the violin, and Josef Linke playing cello. Like Schubert's other piano trio, this is a comparatively larger work than most piano trios of the time, taking almost 50 minutes to perform. The second theme of the first movement is based loosely on the opening theme of the Minuet and Trio of Schubert's G major sonata. Scholar Christopher H. Gibbs asserts direct evidence of Beethoven's influence on the Trio. The main theme of the second movement was used as one of the central musical themes in Stanley Kubrick's1975 filmBarry Lyndon. It has also been used in a number of other films, including The Hunger, Crimson Tide, The Piano Teacher, L'Homme de sa vie, Land of the Blind, Recollections of the Yellow House, The Way He Looks, Miss Julie, the HBO miniseries John Adams, The Mechanic, two episodes of American Crime Story, and as the opening piece for the ABC documentary The Killing Season.
The first movement is in sonata form. There is disagreement over the break-up of thematic material with one source claiming six separate units of thematic material while another source divides them into three themes each with two periods. There is to an extent extra thematic material during the recapitulation. At least one of the thematic units is based closely on the opening theme of the third movement of the earlier Piano Sonata in G major, D 894. The development section focuses mainly on the final theme of the exposition.
The second movement takes an asymmetrical-double-ternary form. The principal theme is based in the Swedish folk song , which the composer had heard in the Fröhlich sisters' house, sung by the tenor Isak Albert Berg.
The finale is in sonata-rondo form. Schubert also includes in two interludes the opening theme of the second movement in an altered version. Schubert also made some cuts in this finale, one of which includes the second-movement theme combined contrapuntally with other material from the finale.