I am supposed to be using d'Alembert's solution to solve an IVP. I am generally confused with how the book is getting the correct solution. The problem is as follows:
d'Alembert's solution: $u(x,t) = \frac{1}{2}[f(x + at) + f(x-at) + \frac{1}{2a}\int_{x-at}^{x+at}g(s)ds$
Problem: $a^2u_{xx} = u_{tt}$ $; -\infty < x < \infty$ $, t>0$
Initial Conditions: $u(x,0) =f(x) , u_{t=0} = g(x)$
Specific to this problem: $f(x) = \sin(x) , g(x) = 1$
For the first initial condition $u(x,0) = \sin(x)$, I got the following: $$ \sin(x) = \frac{1}{2}[\sin(x) + \sin(x)] + \frac{1}{2a}[\int_x^xg(s)ds]$$ $$::\sin(x) = \sin(x)$$
For the second initial condition $u_{t=0} = 1$, I got the following: $$ u_t = \frac{1}{2}[a\cos(x+at) -a\cos(x-at)] + \frac{\partial}{\partial t}[\frac{1}{2a}\int_{x-at}^{x+at}g(s)ds]$$ $$u_{t=0} =1 : $$ $$ 1 = \frac{1}{2}[(a\cos(x) -a\cos(x)] + \frac{\partial}{\partial t}[\frac{1}{2a}\int_x^xg(s)ds]$$ $$1 = a\cos(x)$$ $$a = \frac{1}{\cos(x)}$$
I think I am missing something because I don't understand how I am supposed to get the solution from here. Am I supposed to plug in what I got for 'a' back into $u(x,t)$ and solve from there? The book has the solution as $u(x,t) = \sin(x)\cos(at) + t$. Can anyone provide a hint or show me where I am misunderstanding something? Thank you!
\sinand\cos. – K.defaoite Aug 25 '21 at 14:53