We have the electric field of the electromagnetic wave written as
E=2E0coskzcosωti^.
In free space the fields satisfy Faraday’s law (one of Maxwell’s equations)
∇×E=−∂t∂B.
Because the given E depends only on z and t and points purely along i^, its curl contains only a j^ (y-) component. Writing E=Ex(z,t)i^ we obtain
∇×E=(∂z∂Ex)j^.
So the magnetic field must also point along j^. Let us therefore set
B=By(z,t)j^.
Substituting into Faraday’s law gives
∂z∂Exj^=−∂t∂Byj^,
and hence, dropping the common unit vector j^,
∂z∂Ex=−∂t∂By.
Now insert the explicit form of Ex:
Ex(z,t)=2E0coskzcosωt.
Differentiating with respect to z gives
∂z∂Ex=2E0(−k)sinkzcosωt=−2kE0sinkzcosωt.
Therefore
−2kE0sinkzcosωt=−∂t∂By,
which simplifies to
2kE0sinkzcosωt=∂t∂By.
Integrating both sides with respect to time t, we obtain
By(z,t)=2kE0sinkz∫cosωtdt+g(z),
where g(z) is an arbitrary function of z (the “constant” of integration for the time integral). Evaluating the integral,
∫cosωtdt=ω1sinωt,
so
By(z,t)=ω2kE0sinkzsinωt+g(z).
The physical requirement that the magnetic field be zero when t=0 (because sinωt=0 then) forces g(z)=0. Thus
By(z,t)=ω2kE0sinkzsinωt.
For electromagnetic waves in vacuum we use the dispersion relation
kω=c⟹ωk=c1.
Substituting k/ω=1/c, we finally get
By(z,t)=c2E0sinkzsinωt.
Restoring the unit vector j^, the magnetic field vector is
B=c2E0sinkzsinωtj^.
Hence, the correct answer is Option A.