Partial differential equations are the to use if you want to study quantities varying over time and space. This intro gives a very high-level introduction in the context of vibration.
If the vertical displacement of the string at position $x$ and time $t$ is $u(x,t)$, then $u$ should satisfy
There's a lovely solution:
$$u_{A,x_0}(x,t) = -2 A e^{-d\,t/2} \sum_{n=1}^{\infty} \left(\frac{\sin (\pi n x) \sin (\pi n x_0)\cos\left(\frac{t}{2} \sqrt{4 \pi ^2 c^2 n^2-d^2}\right)}{\pi ^2 n^2 \, x_0 (x_0-1)} + \cdots \right.$$Now the conditions look like
where $f$ and $g$ are arbitrary specifications of initial position and velocity.
And the lovely solution is..
$$\begin{aligned} u(x,t) &= 2 \sum_{n=1}^{\infty} e^{-dt/2} \,\Biggl(\cos\!\left(\frac{t}{2}\sqrt{4c^2n^2\pi^2-d^2}\right) \int_0^1 \sin(n\pi \chi)u_0(\chi)d\chi \cdots \\[25mu] &\qquad + \frac{\sin\!\left(\frac{t}{2}\sqrt{4c^2n^2\pi^2-d^2}\right)}{\sqrt{4c^2n^2\pi^2-d^2}} \int_0^1 \sin(n\pi \chi) (d u_0(\chi) + 2v_0(\chi)) d\chi \Biggr) \sin(n\pi x). \end{aligned}$$There are lots of solutions. The important ones depend largely on the physical problem under consideration.
The fundamental solutions of the wave equation on the unit interval look like
$$u(x,t) = \sin(c n \pi t)\sin(n \pi x).$$