Number of solutions of an arithmetic function's equation Say, an equation is given below
\begin{equation}
2\pi(x) - \pi(2x)=\omega(x)
\end{equation}
 where $x$ is a positive integer, $\pi(x)$ is the prime-counting function, and $\omega(x)$ is the number of distinct prime factors of $x$.  I would like to know if this equation holds for finitely many values of $x$ or infinitely many.
If one uses asymptotic formula (from number theory) it can be written that
\begin{equation}
\omega(x) \sim \ln x / \ln \ln(x)
\end{equation}
(from http://www.math.uiuc.edu/~hildebr/ant/main3.pdf)
 and 
\begin{equation}
\pi(x) \sim x/\ln(x),
\end{equation}
so the above equation can be rewritten (after simplification) as
\begin{equation}
2x\ln(2)=\ln(x)\ln\ln(x)\ln(2x) +f(x)
\end{equation}
 where $f(x)$ is an error term.
If  I plot left side (which is linear, supposed to be a straight line) and right side(a curve),assuming $ f(x) $ is 100% accurate, then the equation implies(?!) that the right will intersect left side. Since line can intersect a curve ($ln  $ function) finite times, so there are finite intersection point. So, can I say that there are only finitely many values of $x$?
graph example-

here f(x) is assumed as x + sinx
without the f(x)-

 A: Your proof is wrong, as Erick Wong has explained. Here is a proof of your assertion:
The function $2\pi(x)-\pi(2x)$ is asymptotic to $2x\log 2/\log^2x$ by the Prime Number Theorem (as proved with a stronger error term than just $\sim$). $\omega(n)$ has maximal order $\log n/\log\log n$ on the primorials, and
$$
\lim_{n\to+\infty}\frac{2n\log 2/\log^2n}{\log n/\log\log n}=+\infty.
$$
As a result there can be only finitely many solutions $2\pi(n)-\pi(2n)=\omega(n).$
A: List of errors:


*

*The question is about arithmetic functions.  It doesn't make much sense to talk about asymptotic functions.

*$\omega(x)$ is not asymptotic to $\ln \ln x$.  While this does hold on a set of full density, there are still infinitely many counterexamples and you can't ignore them if your question is whether there are infinitely many solutions. In particular, $\omega(x)$ grows as large as $\ln x/\ln \ln x$ when $x$ is a primorial and as small as $1$ when $x$ is a prime power.

*Your error term $f(x)$ is actually very large so neglecting it completely invalidates your later analysis ($f(x)$ may itself be larger than $2x$).  The fact that $2x \ln 2$ has only finitely many intersections with $\ln x \ln \ln x \ln 2x$ has no bearing on the actual question.

*In the comments you write "Since line can intersect a curve finite times...".  This is false.  Take the curve $x + \sin x$ and the line $x$.
