I'm trying to solve the below problem. It's from an exam in real analysis. Thus, only such methods may be used.
Let $f\in C^1(\mathbb{R})$ and $f(0)=0$. Show that $\frac{f(x)}{x}$ is in $C(\mathbb{R})$.
This is my attempt. Is it correct?
We start by introducing the denotation $$g(x)=\frac{f(x)}{x}.$$ We may use L'Hôpital's rule since $f(0)=0$ and $x=0$, and both $f(x)$ and $x$ are continuous functions that form the quotient $0/0$ when $x=0$. Here \begin{align*} \lim_{x\to0}g(x)=\lim_{x\to0}\frac{f(x)}{x}=\lim_{x\to0}\frac{f'(x)}{1}=f'(x), \end{align*} and $f'(x)\in C(\mathbb{R})$ since $f(x)\in C^1(\mathbb{R})$.
The rule is applicable here as the numerator and the denominator only need to be differentiable separately, and the denominator needs to have a nonzero derivative on the domain. This also means that the limit only needs to be valid for the denominator and the numerator separately.
This is true here as the denominator is $x$, and the numerator belongs to $C^1(\mathbb{R})$ by assumption. Thus, the limit exists and is the derivative of the function at that point.
One way to do this is to say that by theorem a pair of continuous functions $f$ and $g$ form continuous functions $\alpha f+\beta g$, $fg$, or $f/g$, given that $g(x)\neq0$ for $f/g$, which was just covered.
Is there any other way to do the last part? I don't know if my professor will be fine with me just referring to some theorem in the book.
By the fundamental theorem and the chain rule, $$ f(x)=\int_0^1 f'(tx)x\,dt $$ so that $$ \frac{f(x)}{x}=\int_0^1 f'(tx)\,dt $$ and the right side is a continuous function of $x$.