How can I explain the unexpected negative voltage in the output signal obtained from half wave rectifier?
The 1N400x type diode has a reverse recovery time (manufacturer dependent) of up to 30 μs and, when your input voltage falls negative, the diode will continue to conduct for up to 30 μs: -