How would you be able to solve for n in this setup?
$$8n^2=64n\cdot \log_2(n)$$
I tried tons of online step-by-step solutions but the only one who got it right was wolfram, but I can't watch the step-by-step solution.
Any help will be appreciated!
How would you be able to solve for n in this setup?
$$8n^2=64n\cdot \log_2(n)$$
I tried tons of online step-by-step solutions but the only one who got it right was wolfram, but I can't watch the step-by-step solution.
Any help will be appreciated!
You may simplify $n$ from both sides ($n=0$ is not an acceptable solution) to get $$8n=64\log_2{n}\iff \frac{8n}{64}=\log_2{(n)}\iff2^{\frac{n}8}=2^{\log_2(n)}\iff 2^{\frac{n}{8}}=n\iff2^n=n^8$$ So, you are looking for the zeros of $f(n)=2^n-n^8$. This function has two solutions, which are approximately $n_1=1.0999$ and $n_2=43.559$. However, I do not think that there are methods other than numerical that can solve this problem.
We certainly cannot have $n=0$, so a division is safe. Upon dividing by $8n$ we obtain
$$ n = 8 \log_2 n $$
which is a nonlinear equation. You can try fixed-point methods or even Newton's Method to solve this. As Jimmy says, I don't think this can be done analytically.
Instead of numerical methods, you can also express the solution in terms of the Lambert W function. In some sense, you can think of this idea as someone has tabulated the solution to the Lambert W function numerically and you are simply reusing his work. The W function is defined by the relation, $W(z e^z) = z$. Another way to understand this relation is that if $W(k) = z$ then $k = z e^z$.
Going back to your question,
$n = 8\log_2(n) \Leftrightarrow \frac{n}{8} = \frac{\ln(n)}{\ln(2)} \Leftrightarrow -\frac{\ln(2)}{8} = -\ln(n)\frac{1}{n} \Leftrightarrow -\frac{\ln(2)}{8} = \ln(\frac{1}{n})e^{\ln(\frac{1}{n})}$
Thus by noting that $z = \ln(\frac{1}{n})$ and $k = -\frac{\ln(2)}{8}$, we get
$W(-\frac{\ln(2)}{8}) = \ln(\frac{1}{n}) \Leftrightarrow n = e^{-W(-\frac{\ln(2)}{8})} $
Consider the equation $$0=8x^2-64x\, \log_2(x)=8x(x-8\;\log_2(x))=8 x \left(x-\frac{8 \log (x)}{\log (2)}\right)$$ So, there is the trivial solution $x=0$.
Now, consider the function $$f(x)=x-\frac{8 \log (x)}{\log (2)}\implies f'(x)=1-\frac{8}{x \log (2)}\implies f''(x)=\frac{8}{x^2 \log (2)}$$ The first derivative cancels at $x=\frac{8}{\log (2)}$ and the second derivative test shows that this point corresponds to a minimum $$f\left(\frac{8}{\log (2)}\right)=\frac{8 }{\log (2)}\left(1+\log \left(\frac{\log (2)}{8}\right)\right)\approx -16.6886 <0$$ So, there are two roots to $f(x)=0$.
As already said in comments and answers, to compute the roots, one of the solutions is based on numerical methods (Newton being probably the simplest). A quick plot of the function shows a root close to $1$ and another close to $50$.
Starting at a "reasonable" guess $x_0$, Newton method will update it according to $$x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}$$ In your case, this would give $$x_{n+1}=\frac{8 x_n (\log (x_n)-1)}{x_n \log (2)-8}$$
For the first root, let us start using $x_0=1$. Newton method will generate the following iterates $$\left( \begin{array}{cc} n & x_n \\ 0 & 1.0000000000000000000 \\ 1 & 1.0948626170101320293 \\ 2 & 1.0999837708827475300 \\ 3 & 1.0999970301492763006 \\ 4 & 1.0999970302376094009 \end{array} \right)$$
For the second root, let us start using $x_0=50$. Newton method will generate the following iterates $$\left( \begin{array}{cc} n & x_n \\ 0 & 50.000000000000000000 \\ 1 & 43.695596437287775210 \\ 2 & 43.559336941386572072 \\ 3 & 43.559260436905874322 \\ 4 & 43.559260436881656414 \end{array} \right)$$
The other solution is to use Lambert function and the solutions are then given by $$x_1=-\frac{8 }{\log (2)}W\left(-\frac{\log (2)}{8}\right)\qquad , \qquad x_2=-\frac{8 }{\log (2)}W_{-1}\left(-\frac{\log (2)}{8}\right)$$
Sooner or later, you will learn that any equation which can write or rewrite as $$A+Bx+C\log(D+Ex)=0$$ has solution(s) which can be expressed in terms of Lambert function.