If $\vec E(\vec r,t)=\vec E_0sin(\vec k \vec r- \omega t)$ and also that $\rho(\vec r,t)=0$ and $\vec j(\vec r,t)=0$
I was asked to find $\vec A(\vec r,t)$ and $\phi (\vec r,t)$ which satisfy both the Lorenz and Coulomb gauge. So the first thing I do is that I transform the potentials:
$$\vec A(\vec r,t)'= \vec A(\vec r,t) + \nabla f(\vec r,t)$$
$$\phi(\vec r,t)'=\phi(\vec r,t) - \frac{\partial f(\vec r,t)}{\partial t}.$$
In lorenz gauge:
$$\nabla \vec A(\vec r,t)'+\frac{1}{c^2}\frac{\partial \phi(\vec r,t)'}{\partial t}=0$$
And because I also assumed that simultaneously the Coulomb gauge is satisfied ($\nabla \vec A(\vec r,t)'=0$) then I get that $\frac{1}{c^2}\frac{\partial \phi(\vec r,t)'}{\partial t}=0$ .
Then in order to find an expression for $\vec A(\vec r,t)'$:
$$\vec E(\vec r,t)=-\frac{\partial \vec A(\vec r,t)'}{\partial t}- \nabla \phi(\vec r,t)'$$ $$\frac{\partial}{\partial t}\vec E(\vec r,t)=-\frac{\partial^2 \vec A(\vec r,t)'}{\partial t^2}- \nabla \frac{\partial}{\partial t}\ \phi(\vec r,t)'$$
Since $\frac{1}{c^2}\frac{\partial \phi(\vec r,t)'}{\partial t}=0$ then:
$$\frac{\partial}{\partial t}\vec E(\vec r,t)=-\frac{\partial^2 \vec A(\vec r,t)'}{\partial t^2}$$
From here, plugging in the expression for the electric field and integrating we get:
$$\vec A(\vec r,t)'=-\frac{\vec E_0}{\omega}\cos(\vec k \vec r- \omega t) + C_1(\vec r)t + C_2(\vec r)$$
Because $$\vec B(\vec r,t)=\nabla \times \vec A(\vec r,t)'=\nabla \times \vec A(\vec r,t)$$
We find out that $\nabla \times (C_1(\vec r)t + C_2(\vec r))=0$ and that is possible when we do the curl of the gradient hence we can say that $C_1(\vec r)t= \nabla c_1(\vec r)t$ and $C_2(\vec r)= \nabla c_2(\vec r)t$. From here we can say that $f(\vec r,t)=c_1(\vec r)t + c_2(\vec r)$
I also found that $\phi(\vec r,t)'=-\frac{\partial f(\vec r,t)}{\partial t}$.
Then I rename my potentials in the following manner:
$$\vec A(\vec r,t)=-\frac{\vec E_0}{\omega}\cos(\vec k \vec r- \omega t) + \nabla(c_1(\vec r)t + c_2(\vec r))$$
$$\phi(\vec r,t)=-\frac{\partial f(\vec r,t)}{\partial t}$$.
What I am unable to solve is, starting from these transformed potentials, I need to find the potentials which now solve the lorenz gauge but not the Coulomb gauge. Can someone help me, or give me a hint as to how I should proceed?