Michelle Obama says she felt alone after a miscarriage 20 years ago and she and Barack Obama underwent fertility treatments to conceive their two daughters, according to her new memoir.

In some of her most extensive public comments on her White House years, the former first lady also lets her fury fly over President Donald Trumpโ€™s โ€œbigotry and xenophobiaโ€ โ€” dangerous, deliberate rhetoric, she wrote, that risked her familyโ€™s safety.

โ€œFor this,โ€ she writes, โ€œIโ€™d never forgive him.โ€

But itโ€™s her deeply personal account of her marriage to the future president that shed new light on the Ivy League-educated coupleโ€™s early struggle with issues of family, ambition and public life.

โ€œWe were trying to get pregnant and it wasnโ€™t going well,โ€ Mrs. Obama, 54, writes in โ€œBecoming.โ€ โ€œWe had one pregnancy test come back positive, which caused us both to forget every worry and swoon with joy, but a couple of weeks later I had a miscarriage, which left me physically uncomfortable and cratered any optimism we felt.โ€

The Obamas opted for IVF, one form of assisted reproduction that typically involves removing eggs from a woman, fertilizing them with sperm in a lab, and implanting the resulting embryo. It costs thousands of dollars for every โ€œcycle,โ€ and many couples require more than one attempt.

Mrs. Obama writes of being alone to administer herself shots to help hasten the process. Her โ€œsweet, attentive husbandโ€ was at the state legislature, โ€œleaving me largely on my own to manipulate my reproductive system into peak efficiency,โ€ she said.

โ€œBecomingโ€ was one of the most anticipated political books in memory, ranking at the top of Amazonโ€™s best-sellers before its release. Thatโ€™s often the case with the memoirs of former first ladies, including Hillary Clinton and Laura Bush. But Mrs. Obama defied her exalted status in the annals of history by cultivating an image of a modern woman with whom many Americans would like to sip wine and chat.

But until now, sheโ€™s not extensively shared so many details. Some family struggles, such as losing a baby, are known by millions of women.

โ€œI felt like I failed because I didnโ€™t know how common miscarriages were because we donโ€™t talk about them,โ€ the former first lady said in an interview on ABCโ€™s โ€œGood Morning America.โ€ โ€We sit in our own pain, thinking that somehow weโ€™re broken.โ€

Mrs. Obama, said they underwent fertilization treatments to conceive daughters Sasha and Malia, now 17 and 20.

She also writes about falling in love. The Obamas met at the Chicago law firm Sidley Austin LLP, and Michelle was skeptical at first. But she was then impressed by his โ€œrich, even sexy baritoneโ€ and by his โ€œstrange, stirring combinationโ€ of serenity and power.

Their first kiss set off a โ€œtoppling blast of lust, gratitude, fulfillment, wonder,โ€ she wrote.

Confronting racism in public life โ€” being the first Black first lady, wife of the nationโ€™s first Black president โ€” has been a bracing experience, in Mrs. Obamaโ€™s telling. She agonized over what she feared was a cartoonish, racist image. She remembered being labeled โ€œangryโ€ and, by the Fox network, โ€œObamaโ€™s Baby Mama.โ€

In the White House, she knew she would be labeled โ€œotherโ€ and would have to earn the aura of โ€œgraceโ€ given freely to her white predecessors. She found confidence in repeating to herself a favorite chant: โ€œAm I good enough? Yes I am.โ€

In the memoir, Mrs. Obama lets loose a blast of anger at Trump.

She writes that Trumpโ€™s questioning of whether her husband was an American citizen was โ€œcrazy and mean-spiritedโ€ โ€” and โ€œdangerous.โ€ Trump suggested Obama was not born in the U.S. but on foreign soil โ€” his father was Kenyan. The former president was born in Hawaii.

โ€œWhat if someone with an unstable mind loaded a gun and drove to Washington? What if that person went looking for our girls?โ€ she writes in the memoir. โ€œDonald Trump, with his loud and reckless innuendos, was putting my familyโ€™s safety at risk. And for this, Iโ€™d never forgive him.โ€