Is it permissible for a woman who has become pure before the end of forty days of confinement to perform different acts of worship? and is it lawful for her husband to have sex with her?
Once postpartum bleeding ceases and she is certain that it won`t happen again, she becomes pure, and so she should perform Ghusl (ritual bath), pray, and fast. She can also have sex with her husband even before the end of (40) days because the minimum of postpartum bleeding is a moment, and the maximum is (60) days. However, the postpartum bleeding for the majority of women is (40) days, but this does not apply to rest of them.
Can someone who begins a voluntary fast break it?
It is preferable for someone who begins an act of worship not to break it.
Allah the Exalted has said {what means}: "and let not your [good] deeds come to nought!" [Muhammad/33].
However, if a person starts a voluntary fast (nafl) and needs to break it, they are going against what is preferable, but there is no sin upon them.
What is the ruling on speaking while relieving oneself?
It is disliked for one relieving himself to speak while doing so, except out of necessity. And Allah the Almighty knows best.
When is supplication (du‘a) more likely to be accepted: before or after breaking the fast in Ramadan?
Du‘a is accepted at all times, and this is part of Allah’s mercy and generosity toward His servants.
The Prophet ﷺ said: "No Muslim makes a supplication that does not involve sin or severing family ties except that Allah grants them one of three things: either He grants their supplication immediately, or He stores it for them in the Hereafter, or He averts from them an equivalent harm." [Narrated by Ahmad]
However, in Ramadan, du‘a is especially likely to be accepted shortly before breaking the fast.
The Prophet ﷺ said: "Three supplications are never rejected: the supplication of a fasting person until they break their fast, the supplication of a just leader, and the supplication of an oppressed person. Allah raises it above the clouds, opens the gates of heaven for it, and says: ‘By My might, I will surely grant you victory, even if after a while.’" [Narrated by Al-Tirmidhi]