سلام
با استفاده از بسته tikz
، بصورت زیر:
\documentclass[a4paper,12pt]{report}
\usepackage{tikz,xcolor}
\usetikzlibrary{shapes}
\tikzstyle{vertex}=[circle,draw,inner sep=0pt,minimum size=2pt]
\newcommand{\vertex}{\node[vertex]}
\tikzstyle{block}=[rectangle,draw,fill=white,text width=1.1cm,text centered,rounded corners,minimum height=0.25cm]
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=2]
\draw[very thin,color=gray,step=.1cm] (-2.5,-2.5) grid (2.5,2.5);
\draw[thin,color=gray,step=.5cm] (-2.5,-2.5) grid (2.5,2.5);
\draw[->,>=stealth,thick] (-3,0) -- (3,0) node[below] {$x$};
\draw[->,>=stealth,thick] (0,-3) -- (0,3) node[left] {$y$};
\foreach \x/\xtext in {-2.5,-2,...,-0.5,0.5,1,...,2.5}
\draw (\x,-.15) node{$\xtext$};
\foreach \y/\ytext in {0.5,1,...,2.5}
\draw (-.15,\y) node{$\ytext$};
\foreach \y/\ytext in {-2.5,-2,...,-0.5}
\draw (-.25,\y) node{$\ytext$};
\draw [blue,domain=-0.68233:1.5,samples=1000] plot (\x,{sqrt(\x^3+\x+1)});
\draw [blue,domain=-0.68233:1.5,samples=1000] plot (\x,{-sqrt(\x^3+\x+1)});
\draw [red,domain=-2.5:2.5] plot (\x,{0.615537*(\x+.68233)});
\draw [red,domain=-2.5:2.5] plot (\x,{-0.615537*(\x+.68233)});
\draw [->,line width=2.5pt,green] (1.25,1.2)..controls(1.15,1.6) ..(1,1.7);
\draw [->,line width=2.5pt,green] (1.25,-1.2)..controls(1.15,-1.6) ..(1,-1.7);
\vertex [fill](a) at (-0.68233,0) []{};
\node (b) at (-0.45,.2) [block]{{\tiny (-0.682,0)}};
\end{tikzpicture}
\end{center}
\end{document}
توضیح:
برای رسم محور طول(x):
\draw[->,>=stealth,thick] (-3,0) -- (3,0) node[below] {$x$};
برای قرار دادن مقدار زیر محور افقی:
\foreach \x/\xtext in {-2.5,-2,...,-0.5,0.5,1,...,2.5}
\draw (\x,-.15) node{$\xtext$};
برای تقسیم بندی به طول 0.1:
\draw[very thin,color=gray,step=.1cm] (-2.5,-2.5) grid (2.5,2.5);
برای رسم تابع:
\draw [blue,domain=-0.68233:1.5,samples=1000] plot (\x,{sqrt(\x^3+\x+1)});
برای رسم رأس دستور زیر رو نوشتم:
\tikzstyle{vertex}=[circle,draw,inner sep=0pt,minimum size=2pt]
\newcommand{\vertex}{\node[vertex]}
برای قرار دادن مستطیل از کتابخانه shapes
استفاده کردم:
\tikzstyle{block}=[rectangle,draw,fill=white,text width=1.1cm,text centered,rounded corners,minimum height=0.25cm]
برای رسم پیکان سبز رنگ از دستور زیر:
\draw [->,line width=2.5pt,green] (1.25,1.2)..controls(1.15,1.6) ..(1,1.7);
خروجی:
موفق باشید