\documentclass[a4paper,11pt]{book}
\usepackage{graphicx}
\usepackage{makeidx}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{xepersian}
\settextfont[Scale=1]{XB Niloofar}
\setlatintextfont[Scale=1]{XB Niloofar}
\setdigitfont[Scale=1]{XB Niloofar}

\begin{document}
\makeindex
\title{کتاب ساده}
\author{ترجمه‌ی آزاد محمد چهارسوقی}
\maketitle

\tableofcontents

\chapter{فصل اول}

یک متن ساده

\section{زیربخش اول}
این هم یک متن ساده دیگر با یک نمایه \index{نمایه} و حالا یک فرمول ساده

\begin{equation}
N_i/N \longrightarrow P(x_i) \quad \text{برای مقادیر بزرگ N} 
\end{equation}

\printindex

\end{document}