# Latex / PsTricks [closed]

1. Generate Graphical Representation of Lagrange Mean Value theorem.

You can take the function f(x) = x(x-1)(x-2) over the itnerval [0, 1/2].

## closed as off-topic by user36296, Werner, Stefan Pinnow, dexteritas, Phelype OleinikOct 26 '18 at 17:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – user36296, Werner, Stefan Pinnow, dexteritas, Phelype Oleinik
If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to TeX.SE! What is precisely the question here? (Note that this is not TeXing service, but a Q & A site.) – marmot Oct 26 '18 at 15:37
• This looks like taken directly from a homework question – user36296 Oct 26 '18 at 15:43
• \documentclass[tikz,border=3.14mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \begin{tikzpicture}[declare function={f(\x)=\x*(\x-1)*(\x-2);}] \begin{axis}[axis lines=center,enlargelimits=0.3,xlabel=$x$,ylabel=$f(x)$] \addplot[domain=0:1/2] {f(x)}; \end{axis} \end{tikzpicture} \end{document} – marmot Oct 26 '18 at 16:13

run with xelatex

\documentclass{article}
\usepackage{pst-plot}
\begin{document}

\psset{llx=-0.5cm,lly=-0.5cm,labelFontSize=\footnotesize}
\begin{psgraph}[xticksize=-4pt 0,Dx=0.2,Dy=0.2,
arrows=->](0,0)(-0.1,-0.1)(0.6,0.6){5cm}{5cm}
\psplot[linewidth=2pt,linecolor=blue,algebraic]{0}{0.5}{x*(x-1)*(x-2) }
\end{psgraph}

\end{document}