LONDON — Cynthia Lennon, the first wife of former Beatles guitarist John Lennon, died of cancer Wednesday at her home in Spain. She was 75.

Her death was announced on the website and Twitter account of her son, Julian Lennon and confirmed by his representative.

Julian Lennon posted a moving video tribute to his late mother with a song he had written in her honor.

“You gave your life for me, you gave your life for love,” it begins, showing footage of him as a young boy with his parents. It also shows footage of Cynthia with John during the early days of Beatlemania.

“The love you left behind will carry on,” Julian, 51, sings in a style influenced by his late father.

It concludes with the words: “I know you’re safe above.”

A statement from Julian’s representative said Cynthia died at her home in Mallorca “following a short but brave battle with cancer.” It said Julian was at his mother’s bedside throughout.

Cynthia and John Lennon met at art school in Liverpool in 1957 and married shortly before the Beatles shot to worldwide fame. Julian was their only child together.

The couple divorced in 1968 after John Lennon started his much publicized relationship with Japanese artist Yoko Ono. They had spent 10 years together as a couple.

Cynthia remarried several times.

The divorce prompted Paul McCartney to pen the Beatles’ classic “Hey Jude” to help Julian cope with his parents’ separation. He changed the name Julian to Jude in the song.

The line “Take a sad song and make it better,” is about the Lennons’ broken marriage and its impact on their son.

“The news of Cynthia’s passing is very sad,” McCartney wrote on his blog Wednesday.

“She was a lovely lady who I’ve known since our early days together in Liverpool,” he added. “She was a good mother to Julian and will be missed by us all, but I will always have great memories of our times together.”

“Peace and love to Julian Lennon God bless Cynthia love Ringo and Barbaraxx,” Ringo Starr tweeted.

Ono wrote on Facebook that she was saddened by Lennon’s death.

“She was a great person and a wonderful mother to Julian,” she wrote.

Author Hunter Davies, who wrote the only authorized Beatles biography in 1968, described Cynthia as a “lovely woman” who was ill-treated by her famous husband.

He said she wasn’t at all like her husband, but was “quiet and reserved and calm” and “not a hippy at all.”

He said their friends at art school never thought the relationship would last because they were so different.

In her autobiography, Cynthia described John as jealous and insecure. She said he hit her once after she danced with Stu Sutcliffe, then a member of the band.

But in a 2005 interview with “Good Morning America” she recalled his charisma as well.

“You couldn’t resist being around him,” she said. “You couldn’t resist watching what he was up to. I mean, he was a total rebel. Everybody was amazed by him.”