\documentclass[12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\RequirePackage{amsmath,amssymb,latexsym}
\pagestyle{empty}
\begin{document}
$  q_{1}(a_{11}p1+a_{12}p_{2})+q_{2}(a_{21}p_{1}+a_{22}p_{2})=0  $
\end{document}
