So in order to set up a standing wave on string I can set a travelling wave on it first then let this travelling wave get reflected from a fixed end and this reflected wave interferes with the incoming wave to produce a standing wave.
So while superimposing one right travelling wave with another left travelling reflected wave I set the phase difference of the reflected wave ( w.r.t to the incoming wave) as ∆, then when I solve for the boundary conditions ( that y=0 at x=0 for all time ) I get the phase difference ∆ to be zero but the reflected wave should be shifted by π because of reflection from fixed end. Where am I making the mistake?
Edit: I added a image of my calculation, can anyone say what's wrong in it and why (Kx+wt) doesn't give a phase difference of π but ( -kx-wt) does give phase difference of π?