For some reason, when I try to run this code in LaTeX, it gives the error: File ended while scanning use of \frac
I don't see my mistake. Also, my editor gives a warning considering the label: Reference 'eq6' on page 4 undefined. I assume it is, because I am using the reference before the label. But I want to name the formula in the text, before giving the formula.
\documentclass[11pt,a4paper, oneside]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[free-standing-units]{siunitx}
\begin{equation}
D_3 = -10 \log(\frac{P_2(2 f_{1,2} \pm f_{2,1}){P_2({f_1,f_2)})
\label{eq6}
\end{equation}
\frac
braces. Should be\frac{P_2(2 f_{1,2} \pm f_{2,1})}
{
beforef_1
in the denominator.