Paul McCartney wrote the song on his own, likely around January 1958 and possibly at
George Harrison's family home in Upton Green. The song uses the B7 chord, which McCartney discovered with Harrison after a multi-bus trip across
Liverpool to the home of a stranger who knew the chord. Harrison wrote both of the song's guitar solos, and so McCartney gave him a joint credit. In
The Beatles Anthology, McCartney describes it as, "a self-penned little song very influenced by
Elvis [Presley]." In an interview with Beatles historian
Mark Lewisohn, McCartney goes further and explains that the song is very similar to a specific Elvis song, though he avoids mentioning which particular one. Lewisohn writes that, though McCartney wrote the track on his own, it is heavily based on the melody of Elvis's "
Tryin' to Get to You", which also includes the similar lyric, "[in] spite of all that I've been through."
Musicologist Walter Everett agrees, writing that "its cadence comes close". Chris Ingram says it was "clearly inspired" by it, and John C. Winn says it was "fashioned after" it. Everett writes that most of the Beatles' earliest compositions were "thoroughly diatonic, grounded solidly in the major scale," and includes this song as an example. The song is in the
key of E and follows a standard I-I7-IV-V7-I-IV-I (E-E7-A-B7-E-A-E)
progression. Here the harmonic development initially arises with the move (in
bar 5 on "I'll do anything for
you") to a
subdominant or IV (a
chord built on the 4th
degree of the E major scale), but without the intervening range of chords prolonging harmonic tension that so characterised later Beatles songwriting. The
resolution back to
the tonic comes as the V chord (B7 in bar 8 on "you want me
to") shifts to the I (E chord on "true to
me"). Everett writes that the bridge "[culminates] in a
stop-time retransition on a
blue-note colored V." This "dramatic placement of stop time... at the end of the bridge" was something the Beatles saw regularly, including in "
Come Go with Me", before they used it in "In Spite of All the Danger". They used the technique again in their later compositions "
There's a Place" and "
This Boy". ==Recording==