Solve the following:
$$u_t + \frac{1}{1+0.5\cos x} u_x = 0$$
where $u(x,0) = \cos (x-1+0.5\sin (x+1)).$
My attempt:
I applied method of characteristics directly.
$$\frac {dt}{1}=(1+0.5\cos x)dx, \frac {du}{ds} = 0$$
From the equations, I obtain
$$x + 0.5\sin x - t = c$$ $$\Rightarrow u(x,t) = g(x+0.5 sin x - t)$$ where g is an arbitrary function to be determined.
By $u(x,0)$, $$\cos (x-1+0.5\sin (x+1)) = g(x+0.5\sin x)$$
At this point, I can already feel that things may get hairy. Nevertheless, I tried to expand the sine term on the left hand side using trigonometric identities, but to no avail.
How do I proceed from here?