I came up with this differential equation and I don't know how to solve it.
$$f''(x)=f(x)f'(x)$$
I attempted to solve it several times, but they were all fruitless. Wolfram Alpha says that the solution is
$$f(x)=\sqrt{2a} \tan\left({\frac{\sqrt{2a}}{2} \cdot (x+b)}\right),$$ where $a$ and $b$ are constants.
How does one get this solution?

Let us consider your differential equation: $$f''(x)=f(x)\cdot f'(x)$$ Integrate with respect to $x$ on both sides. Recognize that $df'(x)=f''(x)\ dx$ and $df(x)=f'(x)\ dx$: $$\int f''(x)\ dx=\int f(x)\cdot f'(x)\ dx\rightarrow \int df'(x)=\int f(x)\ df(x).$$ It follows that $$f'(x)=\frac{(f(x))^2}{2}+a=\frac{(f(x))^2+2\cdot a}{2}.$$ Divide by $(f(x))^2+2\cdot a$ on both sides: $$\frac{f'(x)}{(f(x))^2+2\cdot a}=\frac{1}{2}.$$ Integrate with respect to $x$ on both sides. Recognize that $df(x)=f'(x)\ dx$: $$\int \frac{f'(x)\ dx}{(f(x))^2+2\cdot a}=\int \frac{dx}{2}\rightarrow \int \frac{df(x)}{(f(x))^2+2\cdot a}=\frac{x}{2}+b=\frac{x+2\cdot b}{2}.$$ Redefine $2\cdot b$ as $b$, since it is a constant: $$\int \frac{df(x)}{(f(x))^2+2\cdot a}=\frac{x+b}{2}.$$ Let $f(x)=\sqrt{2\cdot a}\cdot \tan(s)$ such that $df(x)=\sqrt{2\cdot a}\cdot (\tan^2(s)+1)\ ds$: $$\int \frac{ds}{\sqrt{2\cdot a}}=\frac{x+b}{2}\rightarrow \frac{s}{\sqrt{2\cdot a}}=\frac{x+b}{2}.$$ Isolate $s$ and let $s=\arctan \left (\frac{f(x)}{\sqrt{2\cdot a}}\right)$: $$s=\frac{\sqrt{2\cdot a}}{2}\cdot (x+b)\rightarrow \arctan \left (\frac{f(x)}{\sqrt{2\cdot a}}\right)=\frac{\sqrt{2\cdot a}}{2}\cdot (x+b).$$ Therefore, an expression for your function $f(x)$ can be written as $$f(x)=\sqrt{2\cdot a}\cdot \tan \left (\frac{\sqrt{2\cdot a}}{2}\cdot (x+b)\right).$$ The derived expression is equivalent to what you found with Wolfram Alpha.