I am working through this problem, and looking at the answers provided below, I can't seem to understand how the answers are arrived at.
$$u(x,1)=A_0+\sum_{n=1}^\infty A_n\sinh(n)\cos(nx)=1+\cos(2x).$$ Equating coefficients of like terms, $$ A_n=\begin{cases} 1, & n=0,\\ 1/\sinh(2), & n=2,\\ 0 & \text{otherwise}. \end{cases} $$
For instance, for when $n = 0$ and equating coefficients of $A_0$:
I think that the summation on the left hand side is "gone" as the summation starts at $n = 1$, so to equate coefficients of $A_0$ it would be: $1 = 0$ as the RHS does not have any terms involving $A_0$. I can see that the way I am thinking is wrong, because how can $1 = 0$? But I can not seem to find any other way of equating these coefficients. I am also having trouble finding how they arrived at the given answer for $n =2$.
I appreciate your time and help,
thank you.
You are equating coefficients of $\cos(nx)$ (independent of $x$) in $$ A_0+\sum_{n=1}^\infty A_n\sinh(n)\cos(nx) = 1+\cos(2x) $$