I need help with determining voltage wave form of LM317
The LM317 is a linear voltage regulator.  It expects a DC input voltage at least 2 volts above the desired output voltage for proper operation.
If you give it a sine wave input as shown, it will produce a pulsed, varying voltage, with a maximum voltage of 5 volts.