Bob Woodward, the author of an explosive new portrayal of President Trump's White House, tells NPR that administration officials are denying his account out of "political necessity."

In his book Fear, which comes out Tuesday, Woodward describes Trump behaving erratically and impulsively, even on significant issues of national security, and insulting some of his senior officials.

President Trump has repeatedly denounced Woodward's book, calling the veteran journalist an "idiot" and his work a piece of "fiction."

Woodward has consistently said he stands behind his reporting on Trump's actions.

"He was there and said these things and did these things," Woodward tells Morning Edition host Rachel Martin.

The book also depicts staffers and advisers as condemning the president behind his back and actively working to stymie some of his actions, even hiding documents from Trump.

Several prominent figures in the book have denied quotes that Woodward attributes to them. Defense Secretary Jim Mattis denies saying that Trump acted like a fifth- or sixth-grader while discussing North Korea, and chief of staff John Kelly denied calling Trump "an idiot."

Woodward stands by his reporting, telling NPR he attributes the denials to "political necessity."

"You crank out the great Washington denial machine," he says. "I've seen this over the years, going back to the Nixon case." (Woodward's source for the Watergate scandal, Mark Felt, denied for years that he was in fact "Deep Throat.")

"Time and time again people will deny things," Woodward says. "I understand people have to protect their positions. But I've done hundreds of hours of interviews with people. ... These things happened."

Woodward's book is based on "deep background" interviews, which he defines as interviews where "all the information could be used but I would not say who provided it."

"The people are not anonymous to me," he says.

Once one person had described an episode to him, Woodward says, "I would go to other people and say, 'Did this happen? Who else was there?' "

"You can, in an almost microscopic way, establish what occurred — and that's what I've done in this book."

Woodward also addresses the anonymous op-ed published in The New York Times shortly after the first excerpts of his book were circulating. In the piece, an unnamed senior administration official says people within the White House are actively "thwarting Mr. Trump's more misguided impulses."

"I don't know who it is," Woodward says. "It's critical: Who is this person and why are they masking themselves in this way?

"If that person had come to me while I was working on this book or if it were someone I interviewed I would say, 'I need specifics.' The building blocks of journalism, of truth, are specific incidents."

Copyright 2018 NPR. To see more, visit http://www.npr.org/.