Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Also how can you keep the x constant while varying the time (t) both at a same time? Because If x not changes with time, that means the wave is not moving.
But both of the equations represents wave travelling in +ve x direction, only they differ in y directions. A wave travelling in -ve x direction is given as $y=Asin(wt+kx)$.
So it means that I should use my second method only when I want the difference in potential at two different points, otherwise for finding potential at a point I should use my first method. Am I correct?