From "Linear Partial Differential Equations for Scientists and Engineers", Tyn Myint U..
In deriving D'Alemberts formula for the one dimensional wave equation the following equations occur on page 123:
Given the general solution
$$u(x,t) = \phi(x+ct)+\psi(x-ct) \tag{5.3.4}$$
and the initial conditions $$u(x,0) = f(x) = \phi(x)+\psi(x) \tag{5.3.5}$$
$$u_t(x,0) = g(x) = c\phi '(x)-c\psi '(x). \tag{5.3.6}$$
Then integrating the previous equation gives:
$$\phi(x)-\psi(x) = \frac{1}{c}\int_{x_0}^{x}g(\tau)d\tau + K \tag{5.3.7}$$
I am having problems deriving the last equation, 5.3.7. In the derivation, the previous equation, 5.3.6, appears to be integrated with respect to two different variables on the left and right sides. I think maybe separation of variables is being used, but if so I need help in understanding how it is used in this case. I would really appreciate being shown in small (simple) steps how this integral is produced.
Although I have referenced a particular book, all the D'Alembert formula derivations that I have seen are similar to this particular derivation, and leave me with the same question:
My Question is: How is the integral derived? That is: how is equation 5.3.7 derived from equation 5.3.6?
Except for this I understand the derivation of D'Alemberts Formula.
References for D'Alemberts formula:
http://mathworld.wolfram.com/dAlembertsSolution.html
https://en.wikipedia.org/wiki/D%27Alembert%27s_formula
http://www.jirka.org/diffyqs/htmlver/diffyqsse32.html
http://people.uncw.edu/hermanr/pde1/dAlembert/dAlembert.htm
References for separation of variables:
Integrating each side of an equation w.r.t. to a different variable?
Integrating with respect to different variables
Can anyone explain the intuitive meaning of 'integrating on both sides of the equation' when solving differential equations?
sepvar.pdf
Links to other related questions on math.stackexchange:
How to separate variables to integrate on both side
Integrating both sides of an equation with respect to different variables
Why are the limits of the integral $0$ and $s$, and not $-\infty$ and $+\infty$??