I have been trying to analyze this circuit and calculate the maximum voltage across the capacitor. Here is the diagram:
And, here are the graphs for various inputs and the resultant outputs:
Even though the diode is not conducting(in cutoff region), the capacitor is getting charged. I don't know why.
What decides the maximum voltage on the capacitor?