% X. Rendtel
% Letzte Aenderung: 23.09.2008

\documentclass[10pt, a4paper]{article}
\usepackage[utf8x]{inputenc} 
\usepackage[tight]{units}
\usepackage{euler}
\usepackage{calc}
\usepackage{pstricks}
\usepackage{rotating}

\usepackage{pst-pdf}
\usepackage{pst-node}

\usepackage{xcolor}
\usepackage{graphicx}
%\usepackage{multido}
\usepackage{pst-circ}
\usepackage{pst-func}
\usepackage{pst-math}

\usepackage{pst-eucl}
\usepackage{fancyhdr}
\pagestyle{fancyplain}

\usepackage{pstricks-add}
\usepackage[greek,german]{babel}

%%% Nicht benötigte Pakete:
%\usepackage{pst-plot}
%\usepackage{pst-grad}
%\usepackage[all]{xy}
%\usepackage{rotating}
%\usepackage{pst-text}
\usepackage{pst-tree}
%\usepackage{wasysym}

%\usepackage{pst-xkey}
%\usepackage{mathe} % Mathematische Mengen und Symbole werden definiert












\thispagestyle{empty}
\pagestyle{empty}

%\SpecialCoor

\usepackage[LGR,T1]{fontenc}
\usepackage{mathpazo,avant,courier}
\newcommand{\EUR}{\textgreek{\euro}}

\makeatletter
\newcommand{\psxpoint}[3][black]{%
  \psline[linewidth=.5pt]{-}(#2,\pst@xticksizeB)(#2,\pst@xticksizeA)
  \rput[t](! #2 \pst@number\pslabelsep \pst@number\pst@xticksizeB add 
	\pst@number\psyunit div neg ){\color{#1}#3}}
\makeatother


\makeatletter
\newcommand{\psypoint}[3][black]{%
  \psline[linewidth=.5pt]{-}(\pst@yticksizeB,#2)(\pst@yticksizeA,#2)
  \rput[r](! \pst@number\pslabelsep \pst@number\pst@yticksizeA sub 
	\pst@number\psxunit div neg #2){\color{#1}#3}}
\makeatother

\def\myLine#1(#2)(#3)#4{{%
  \pnode(#2){myA}\pnode(#3){myB}%
  \pcline[linestyle=dashed,tbarsize=15pt]{#1}(myA)(myB)%
  \ncput*{#4}}}



\newcommand{\knoten}[2][white]
{\Tr{\psframebox[fillcolor=#1!50,fillstyle=solid]{#2}}}

\begin{document}
\psset{xunit=1cm,yunit=1cm,dotstyle=*,dotsize=3pt
0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}

\psset{xunit=2cm,yunit=2cm}
\begin{pspicture}(-1,-4)(7,5)


 \pscustom{
    \gsave
    \psplot[linecolor=black, linewidth=1.5pt,algebraic]%
    {0}{0.75}{-(x-2)^2+4}
    \psline(0.75,2.5)(2,0)(3,-2)(0.75,-2)(0,-2)(0,0)
    \fill[fillcolor=blue,fillstyle=solid]
    \grestore
  }


 \pscustom{
    \gsave
	 \psplot[linecolor=black, linewidth=1.5pt,algebraic]%
    {0}{0.75}{-(x-2)^2+4}
    \psline(0.75,2.5)(0,4)(0,0)
    \fill[fillcolor=red,fillstyle=solid]
    \grestore
  }



 \pscustom{
    \gsave

	 \psplot[linecolor=black, linewidth=1.5pt,algebraic]%
    {0.75}{2}{-(x-2)^2+4}
    \psplot[linecolor=black, linewidth=1.5pt,algebraic]%
    {0.75}{2}{-(x-2)^2+4}
	\psline(0.75,2.5)(2,0)(2,4)

    \fill[fillcolor=green,fillstyle=solid]
    \grestore
  }

 \pscustom{
    \gsave

	 \psplot[linecolor=black, linewidth=1.5pt,algebraic]%
    {2}{4.45}{-(x-2)^2+4}
	\psline(2,4)(2,0)(3,-2)(4.45,-2)

    \fill[fillcolor=green,fillstyle=solid]
    \grestore
  }




\psaxes[]{->}(0,0)(0,-3)(6,5)
\uput[-45](6,0){$x$}
\uput[-45](0,5){$y$}
\psplot[algebraic=true]{0}{6}{-2}
\psplot[algebraic=true]{0}{4.45}{-(x-2)^2+4}
\psplot[algebraic=true]{0}{3}{4-2*x}
\rput[c](0.35,2.5){\LARGE $1$}
\rput[c](1,1){\LARGE $2$}
\rput[c](3,1){\LARGE $3$}
\rput[c](1,-1){\LARGE $4$}
\rput[c](3,-1){\LARGE $5$}


\end{pspicture}
\end{document}
