Haydn 's Symphony No. 98 , which had both trumpet and timpani , is known as the first symphony that anyone had written in that key . Joseph Haydn 's Symphony No. 98 is credited as the first symphony he ( or anyone else ) wrote in that key in which he included trumpet and timpani parts .