I have a circuit similar to the following:
simulate this circuit – Schematic created using CircuitLab
I am trying to find the impulse and step response mathematically. I know I can split the responses up from the time the left part of the circuit switches from positive to negative. Is that the proper way to do it? Also, I am wondering how to find the Laplace Transform of an if statement.
I have the formula from node voltage for the response when the diode is turned on (assuming the diode drops .7V). Problem is when the diode is turned off the stored voltage in C2 determines the output. If this was a function of time, this would be simple, but it is a function of when the diode turns off which is tied to the voltage of the input.
Diode turned on: $$V_o = -1.4V + 0.7(sC_1/(1/R+sC_2))+V_i$$
I'm not sure how to go about finding the response when the diode is turned off.
Update: The input would be a decaying sine wave.