A tangent line to the sine function at the point $\{x_0, \sin(x_0)\}$, will intersect the sine at the points where $$(x-x_0)\cos(x_0)+\sin(x_0)-\sin(x)=0$$ The solutions to that equation looks like this:
There's the obvious $x_0=x$ solution, and all the other solutions are the same function, only shifted along the $x_0=x$ line. I'm interested in these solutions, but since they're all the same function but shifted, I'm focusing on the middle one.
If I plot just the middle one:
I've tried finding it analytically, to no avail, and functions I thought looked similar (for example $\mathrm{Si}(x)$) are not solutions to the equation.
Can anyone help me to be able to plot this function without just doing Newton steps to solve it?
I'm interested in the solution for all values of $x_0$ in the range $\left[-\frac{1}{2}\pi; \frac{1}{2}\pi\right]$ and all $x\in \mathbb{R}$ (the same as my second plot)


Let $$P(x_0,\sin(x_0))$$ then the equation of the tangent line is given by $$y=\cos(x_0)(x-x_0)+\sin(x_0)$$ so we get $$\sin(x)=\cos(x_0)(x-x_0)+\sin(x_0)$$ Substituting $x=a$ we get $$\sin(a)=\cos(x_0)(a-x_0)+\sin(x_0)$$ there is a difference to your equation, you have $$(a-x)\cos(a)+\sin(x)-\sin(a)=0$$?