A married Harvard-trained cardiologist killed his Brooklyn mistress’s baby in a jealous rage after she got pregnant by another man, authorities say.

Dr. Vignendra Ariyarajah, who is set to appear in Brooklyn court Tuesday, is accused of enlisting a female cohort and another person to trap lover Paul Marie Raymond in a Ditmas Park home.

The pair then starved her, feeding her water only through a syringe, and induced the 7-1/2-months-pregnant woman early with fentanyl and possibly PCP to kill the child — all while Ariyarajah and his wife were on vacation skiing in Montana, according to court documents and law enforcement sources.

The alleged plot worked.

The baby boy was born alive Christmas Eve 2016 but died hours later of an infection caused by the prolonged labor that Raymond suffered for four days, as well as a lack of medical intervention, court records said, citing an autopsy report.

Meanwhile, EMTs found the 30-year-old Raymond with chemical burns to her face, ligature marks to her arms and leg and torn-off fingernails, officials said.

“This is a very disturbing case,’’ said a source close to the investigation.

The Malaysian-born Ariyarajah, who completed a fellowship at Harvard University Medical School, was finally indicted last month on criminally negligent homicide, manslaughter, assault and other raps after the second helper turned on him and cooperated with authorities, officials and sources said.

The doctor had been in regular contact with his unnamed co-defendant and the third uncharged helper throughout the heinous saga, according to a law enforcement source.

Investigators suspect that the co-defendant administered the highly potent narcotic fentanyl and possibly PCP at the doctor’s direction. The dead child tested positive for both, authorities said.

The cardiologist, who lives in Bergen, NJ, also had instructed his cohort not give Raymond “any food and to only administer juice or water through a syringe,” the criminal complaint said.

At one point, the distraught mom-to-be was able to flee the apartment, but the co-defendant pursued her and forced her to return on Dec. 23, 2016, authorities said.

The next day, realizing that the victim was in bad shape, the co-defendant finally called 911 for an ambulance — then canceled it at the urging of Ariyarajah, authorities said.

When EMTs still showed up, they found “Raymond had already given birth and a newborn baby boy was lying on the bed with the umbilical cord still attached.”

A law enforcement source said Ariyarajah and Raymond’s affair had started when Raymond worked for him at MedCare Consultant Multi-Specialty Clinic, which has offices in Manhattan, Brooklyn and the Bronx.

The source said Ariyarajah supported her financially but was very controlling. At one point, she left him and got pregnant by another man, whom the cardiologist pressured her to leave, the law enforcement source said.

After Ariyarajah’s indictment, he was released on $750,000 bond arranged by bail bondsman Ira Judelson.

The doctor’s lawyer, Matt Myers, insisted that Ariyarajah never had a romantic relationship with Raymond and is innocent.

“The case was taken to the grand jury in a slightly rushed fashion,” the lawyer said. “The doctor is an outstanding physician.”

Ariyarajah is set to appear in court Tuesday as part of a routine hearing, sources said.

Raymond was unable to be reached for comment.