Respuesta :

[tex]3\sin\left(x+\dfrac\pi8\right)[/tex]

or

[tex]3\cos\left(x-\dfrac\pi8\right)[/tex]

should do it.