Prove that between any two real roots of the equation $e^x\sin x-1=0$ the equation $e^x\cos x+1=0$ has at least one root.
My attempts:
By Rolle's theorem, the derivative of $e^x\sin x-1=0$ has at least one root between the roots $(\text{let}\ a,b)$ of $e^x\sin x-1=0$
$$f'(x)=e^x\sin x +e^x\cos x=\overbrace{\underbrace{(e^x\sin x-1)}_{2). \text{ no root in}\ (a,b)} +\underbrace{(e^x\cos x+1)}_{1,2\implies\text{ no root in}\ (a,b)}}^{\text{1). at least one root in}\ (a,b)}=0,\ x\in(a,b)$$
I found alternative proof of this here, but please don't mark this as duplicate as I want to know what's the wrong with what is tried.

$$f'(x)=e^x\sin x +e^x\cos x=\overbrace{\underbrace{(e^x\sin x-1)}_{2). \text{ no root in}\ (a,b)} +\underbrace{(e^x\cos x+1)}_{1,2\implies\text{ no root in}\ (a,b)}}^{\text{1). at least one root in}\ (a,b)}=0,\ x\in(a,b)$$
$$\text{1). at least one root in}\ (a,b)$$
$$\text{2). no root in}\ (a,b)$$
the whole expression has one root in $(a,b)$
the first expression has no root in $(a,b)$
then how will you get that at least one root that you are claiming for the whole expression.
So the 2nd expression gives us that root thus $$1,2\implies\text{ at least one root in}\ (a,b)$$