i'm having trouble with the following questions:
1)let $f$ be a continuous function in $\mathbb R$. prove that if $|f|$ is monotonous and rising in $\mathbb R$, then $f$ is monotonous in $\mathbb R$. what i tried to do is to first use the characteristics of a continuous function, and by knowing it's well defined in $\mathbb R$ and that $\lim $ where $x\to x_0$ equals $\lim f(x_0)$, i tried to show $|f|$ is raising in $\mathbb R$, thus $f$ is monotonous. but my problem is that i can't actually show how i can conclude that f is monotonous. if you can please show me how to prove it correctly, because i am not sure of the right way or how to prove such things correctly(how should it be written).
2)prove that $ f(x)= \frac{1}{\sin x}+\frac{1}{x-1} $ can obtain in $(0,1)$ every value in $\mathbb R$. here i first tried to find where it is not defined, then tried to find its limits at both $x\to 0,1$ and then tried to show that $\lim_(x\to x_0) f(x) = f(x_0)$. but i think it's totally wrong. please show me how to do it correctly, and show me the right way to write mathmatical proves, so that i can learn the right way to prove claims.
thank you very much for your help.