The genetics
The film turns on a popular assumption about heredity. Lenny is convinced that Max's intelligence must come from his biological parents, and he sets out to find the brilliant mother he imagines, only to find a woman he considers anything but brilliant. The joke undermines his simple view that talent is passed directly from parent to child, while the story leaves open where Max's gifts come from. The final twist mirrors the opening: each of them unknowingly ends up raising the other's biological child, an ironic reversal of the nature and nurture roles that Lenny was so preoccupied with. There are no scientists or genetic tests in the film; genetics is a matter of the characters' beliefs. In reality, intelligence is influenced by many genes and by the environment, and a child's abilities cannot be predicted from those of one parent, so the gap between Max and Linda is not as paradoxical as Lenny thinks.
The story
Narrated by a Greek chorus in an ancient theatre, the film follows Lenny Weinrib, a Manhattan sportswriter married to Amanda, an ambitious art curator. The couple adopt a baby boy, Max, who turns out to be remarkably gifted. Lenny becomes obsessed with finding out who Max's biological mother is, and eventually discovers that she is Linda Ash, a good-natured but not very bright prostitute and part-time porn actress. Rather than revealing who he is, he befriends her and tries to change her life, helping her escape her pimp and trying to match her with a young boxer, Kevin, who leaves her when he learns about her past. Meanwhile, Lenny's marriage falters as Amanda begins an affair. Lenny and Linda sleep together once before he reconciles with Amanda. A year later they meet by chance in a toy store, each with a child: Linda, now married, is raising Lenny's daughter without telling him, just as he is raising her son.