%For printing images
%\documentclass[12pt,a4paper]{amsbook}
\documentclass[border=2mm]{standalone}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{appendix}
\usepackage{cancel}
\usepackage{url}
\usepackage{bm} %bold math

\usepackage{tikz,tkz-euclide}
\usetikzlibrary{positioning}
\usetikzlibrary{patterns}
\usepackage{siunitx}
\usetkzobj{all}
\usepackage{subcaption}
%\usepackage{pgfplots}
%\usepackage{pgfmath}
%\usetikzlibrary{calc}

%For GeoGebra pictures

\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}

\definecolor{ududff}{rgb}{0.30196078431372547,0.30196078431372547,1.}
\definecolor{zzttqq}{rgb}{0.6,0.2,0.}
\definecolor{qqwuqq}{rgb}{0.,0.39215686274509803,0.}
\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
\definecolor{xdxdff}{rgb}{0.49019607843137253,0.49019607843137253,1.}
\definecolor{ududff}{rgb}{0.30196078431372547,0.30196078431372547,1.}
\definecolor{qqqqff}{rgb}{0,0,1}

\definecolor{ffqqqq}{rgb}{1.,0.,0.}
\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
\definecolor{xdxdff}{rgb}{0.49019607843137253,0.49019607843137253,1.}
\definecolor{qqqqff}{rgb}{0.,0.,1.}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\R}{\mathbb{R}} % mathbb-fonts
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\Chat}{{\overline{\mathbb{C}}}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\D}{\mathbb{D}}
\renewcommand{\P}{\mathbb{P}}
\newcommand{\HH}{\mathbb{H}}%upper half plane
\def\stackrel#1#2{\mathrel{\mathop{#2}\limits^{#1}}} %stacking expressions

\DeclareMathOperator{\Real}{Re}
\DeclareMathOperator{\Imag}{Im}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}


\begin{tikzpicture}[thick,scale=0.5]
\coordinate (a) at (0,4);
\coordinate (ab) at (2,4);
\coordinate (b) at (4,4);
\coordinate (bd) at (4,2);
\coordinate (d) at (4,0);
\coordinate (dc) at (2,0);
\coordinate (c) at (0,0);
\coordinate (ca) at (0,2);
\coordinate (ad) at (2,2);
\coordinate (aa) at (1.5,2.5);
\coordinate (bb) at (2.5,2.5);
\coordinate (cc) at (1.5,1.5);
\coordinate (dd) at (2.5,1.5);
\draw (a) node[above left]{$a$}
-- (ab) node[above]{$\dfrac{x}{x-1}$}
-- (b) node[above right]{$b$}
-- (bd) node[right]{$\dfrac{1}{x}$}
-- (d) node[below right]{$d$}
-- (dc) node[below]{$\dfrac{x}{x-1}$}
-- (c) node[below left]{$c$}
-- (ca) node[left]{$\dfrac{1}{x}$}
-- cycle;
\draw (ad) node{$1-x$};
\draw[dotted] (a)--(aa);
\draw[dotted] (b)--(bb);
\draw[dotted] (c)--(cc);
\draw[dotted] (d)--(dd);
\end{tikzpicture}

\end{document}