I was trying to do the following:
$$
\begin{cases}
a, & n=1\\
$\Phi^{-1}x(n-1)$, & x(n)=x(n-1)
$\Phi^{-1}\x(n-1)+c$, & x(n)=x(n-1)+1
\end{cases}
$$
But I keep getting errors. Is there an obvious syntax error that I'm not aware of?
I was trying to do the following:
$$
\begin{cases}
a, & n=1\\
$\Phi^{-1}x(n-1)$, & x(n)=x(n-1)
$\Phi^{-1}\x(n-1)+c$, & x(n)=x(n-1)+1
\end{cases}
$$
But I keep getting errors. Is there an obvious syntax error that I'm not aware of?
When using the cases environment, you don't need to have inline math delimiters wrapped inside.
One can simply write,
\documentclass{article}
\usepackage{mathtools}
%-----The font code I use----------------
\usepackage[utf8]{inputenc}
\renewcommand{\rmdefault}{ppl}
\linespread{1.05}
\usepackage[scaled]{helvet}
\usepackage{courier}
\usepackage{eulervm}
\normalfont
\usepackage[T1]{fontenc}
\usepackage{textcomp}
%------------------------------------
\begin{document}
\begin{displaymath}
\begin{cases}
a, & n=1\\
\Phi^{-1}x(n-1), & x(n)=x(n-1)\\
\Phi^{-1}x(n-1)+c, & x(n)=x(n-1)+1
\end{cases}
\end{displaymath}
\end{document}
and if you would like to have the math inside the cases to be display style, you can change the environment to \begin{dcases}...\end{dcases}.
Also, you had \Phi^{-1}\x(n-1)+c which could be causing other errors unless you have defined \x somewhere.
Per Gonzalo Medina's comment, we need \usepackage{mathtools} to use the dcases environment and cases should be used in the displaymath environment or \[...\].

$$...$$in LaTeX documents. The following works: `\documentclass{article} \usepackage{amsmath}\begin{document}
[ \begin{cases} a, &\qquad n=1.\Phi^{-1}x(n-1), &\qquad x(n)=x(n-1). \Phi^{-1}x(n-1)+c, &\qquad x(n)=x(n-1)+1. \end{cases} ]
\end{document}`
– Gonzalo Medina Jul 15 '13 at 00:10$...$. The recommendation I made is for displayed math. There are a couple of answers here addressing this; let me see if I can find them. – Gonzalo Medina Jul 15 '13 at 00:15caseshas to be used within math mode, and therefore using$within it will get an error unless it's explicitly within a\text{...}argument. (making the other points was definitely good advice though.) – barbara beeton Jul 15 '13 at 14:15\documentclass{...}and ending with\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to help you. Help them help you: remove that one hurdle between you and a solution to your problem. – Martin Schröder Jul 15 '13 at 18:14