I am preparing slides using beamer. However, my equation has exceeded the page margin. I have tried several solutions given on this website, but with those solutions, my .tex file is not compiling. Here is the code of my original beamer slide:
\documentclass{beamer}
\usepackage[english]{babel}
\usefonttheme[onlymath]{serif}
\usepackage{color}
\usepackage{graphicx}
\usepackage{amssymb,amsmath}
\usepackage{tikz}
\usepackage{epstopdf}
\begin{document}
\begin{frame}
\begin{itemize}
\item whenever $k$ is of the form $2^i$, where $i\in\mathbb{N}$, then
\begin{equation}
0.5(\sqrt[3]{n+\sqrt{n^2-1/27}}+ \sqrt[3]{n-\sqrt{n^2-1/27}})
\leq k < 0.125 (\sqrt{n}+\sqrt{n+16(\sqrt{n}+1)})
\end{equation}
\end{itemize}
\end{frame}
\end{document}
And I am getting the following output:
Please help me resolve this issue!
x = \sqrt{n^2 - 1/27}
), or introduce line breaks (there are environments for multi line maths, likealign
,split
, ...).k
andn
?