i need to plot references point as volgate vs time with theorically, i can do it with ltspice but need theorically calculation, how can i do it ? V1= 4Vpp square wave and f=500 Hz