You fail to mention how much the string is initially displaced by at . So let us call that value .
The partial differencial equation is the 1d wave equation:
The initial value problem is:
Where is the function described in your curve, which is,
And the boundary value problem is:
See if you can solve this wave equation from heir.