Consider the wave equation for linearly $x$ polarized waves travelling in the $\pm z$ directions:
$$\frac{\partial^2\vec E_x}{\partial t^2}=c^2\frac{\partial^2\vec E_x}{\partial z^2}\tag{1}$$ The general solution to equation $(1)$ is $$\vec E_x=\vec E_{+}(q)+\vec E_{-}(s)$$ where $\vec E_{+}$ and $\vec E_{-}$ are arbitrary functions. $$q=z-ct$$ & $$s=z+ct$$
Calculate the general form of the magnetic field in terms of $\vec E_{+}$ and $\vec E_{-}$
I am stuck at the very beginning.
I have the solution to this question, but the problem is I cannot understand the author's solution.
So instead I will ask questions about the author's solution which is as follows:
We can obviously write $$\vec B_y=\vec B_{+}(q)+\vec B_{-}(s)\tag{a}$$ and $$\frac{\partial \vec B_y}{\partial t}=-\frac{ \partial \vec E_x}{\partial z}\tag{b}$$ then $$\frac{\partial q}{\partial t}\Bigg |_z\cdot\frac{d\vec B_{+}}{dq}+\frac{\partial s}{\partial t}\Bigg |_z\cdot\frac{d\vec B_{-}}{ds}=-\left(\frac{\partial q}{\partial z}\Bigg |_t\cdot\frac{d\vec E_{+}}{dq}+\frac{\partial s}{\partial z}\Bigg |_t\cdot\frac{d \vec E_{-}}{ds}\right)\tag{c}$$ $$\implies -c\frac{d\vec B_{+}}{dq}+c\frac{d\vec B_{-}}{ds}=-\frac{d\vec E_{+}}{dq}-\frac{d\vec E_{-}}{ds}\tag{d}$$ therefore $$\vec B_y=\frac{1}{c}\left[\vec E_{+}(q)-\vec E_{-}(s)\right]\tag{e}$$
I understand completely how $(\mathrm{d})$ follows from $(\mathrm{c})$.
I don't understand why you "can obviously write $\vec B_y=\vec B_{+}(q)+\vec B_{-}(s)$"; What is the origin of this equation: $(\mathrm{a})$? It is far from obvious to me that you can write $\vec B_y=\vec B_{+}(q)+\vec B_{-}(s)$.
Also, what is the origin of equation $(\mathrm{b})$? What does it mean? Is it a reformulation of one of Maxwell's equations?
Lastly, how does $(\mathrm{c})$ follow from $(\mathrm{b})$? I note that the author is using the chain rule here, but I'm not sure about the logic.
If anyone could help me by giving hints or explanations to any of the questions I have raised then I would be most grateful.
EDIT:
Thanks to @Farcher I now understand part $(\mathrm{a})$ and was able to write an answer of my own elaborating on parts $(\mathrm{b})$ and $(\mathrm{c})$.
EDIT 2:
The only part of the authors solution which I still don't understand is how $(\mathrm{e})$ follows from $(\mathrm{d})$.
Rearranging $(\mathrm{d})$ we have that $$c\left(\frac{d\vec B_{-}}{ds}-\frac{d\vec B_{+}}{dq}\right)=-\left(\frac{d\vec E_{-}}{ds}+\frac{d\vec E_{+}}{dq}\right)\tag{d}$$ we know that $$\vec E_x=\vec E_{+}(q)+\vec E_{-}(s)$$ and $$\vec B_y=\vec B_{+}(q)+\vec B_{-}(s)$$
Rearranging $(\mathrm{d})$ further I find that
$$c\frac{d\vec B_{-}}{ds}+\frac{d\vec E_{-}}{ds}=c\frac{d\vec B_{+}}{dq}-\frac{d\vec E_{+}}{dq}\tag{d}$$
My first thought was to integrate both sides but since the LHS depends on $s$ and the RHS on $q$ it cannot be correct to write
$$\int \left(c\frac{d\vec B_{-}}{ds}+\frac{d\vec E_{-}}{ds}\right)ds=\int \left(c\frac{d\vec B_{+}}{dq}-\frac{d\vec E_{+}}{dq}\right)dq\tag{?}$$
So I am stuck at this point.
Could someone please explain to me how I can obtain the result $$\bbox[5px,border:2px solid red]{\vec B_y=\frac{1}{c}\left[\vec E_{+}(q)-\vec E_{-}(s)\right]}\tag{e}$$ from $$\bbox[yellow]{-c\frac{d\vec B_{+}}{dq}+c\frac{d\vec B_{-}}{ds}=-\frac{d\vec E_{+}}{dq}-\frac{d\vec E_{-}}{ds}}\tag{d}\,\,?$$