Hello I have the following task:
Let $$ y = \sin(x + \delta) -\ sin (x)$$ and $$\delta > 0$$ is very small. Write down a mathematical equivalent representation of this term which is stable.
I'm not sure if the word "stable" is the right translation (in german it's "gutartig"), I have this definition of it: An operation $$\circ$$ is stable if $$z*=z(1+\epsilon_{x \circ y})$$ with $$|\epsilon_{x \circ y}| \le C_1|\epsilon_x|+C_2|\epsilon_y|$$ with moderate constants $$C_1,C_2$$ which are independant from $$\epsilon_x,\epsilon_y$$
Still I have absolutely no clue how I do solve this task.
Your problem is that if $\delta$ is small, the difference in the sines can be much smaller than either of the sines. You will lose precision, which you should have seen problems about before (maybe without the sine function involved). You should have seen things like $0.5000001-0.50000000$ The cure for this is to do the subtraction analytically. If you expand $\sin(x+\delta)$ what do you get? Now distribute out the factor $\sin x$ and use the small angle approximation for the terms involving $\delta$.