$f(x)=(x-0.5)(\frac{x}{x-1})^(-0.5)-x$
using Tikz. I wrote the following code:Code: Select all
\begin{tikzpicture}[scale=0.7]
\draw[-stealth,ultra thick] (-0.5,0)--(9,0) node[below]{$x$};
\draw[-stealth,ultra thick] (0,-0.5)--(0, 4.5);
\draw[color=blue, thick, domain=0:2] plot (\x, {(\x-0.5)*(\x/(\x-1))^(-0.5)-\x}) node[above, xshift=5pt, yshift=10pt]{$f(x)$};
\end{tikzpicture}