hinh ve

 avatar
user_2730587709
latex
2 years ago
896 B
4
Indexable
Never
\begin{tikzpicture}[line cap=round,line join=round,font=\footnotesize,>=stealth,scale=1]
	\draw[->] (-3,0)--(2,0) node[above] {$x$};
	\draw[->] (0,-1)--(0,3) node[left] {$y$};
	\fill (0,0) circle (1pt) node [below left] {$O$}
	(-1,0) circle (1pt) node [below] {$-1$}
	(1,0) circle (1pt) node [below] {$1$}
	(-2,0) circle (1pt) node [shift={(140:2ex)}] {$-2$};
	\draw [samples=100, domain=-2.88:1.72] plot (\x, {(1/4*(\x)^4+1/3*(\x)^3-(\x)^2+2});
	\draw [samples=100, domain=-2.15:1.54] plot (\x, {(\x)^3+(\x)^2-2*(\x)});
	\draw [pattern=north west lines] (-2,0)--plot[domain=-2:-1] (\x, {(\x)^3+(\x)^2-2*(\x)})--(-1,2)--plot[domain=-1:-2] (\x, {(1/4*(\x)^4+1/3*(\x)^3-(\x)^2+2})--(-2,0);
	\draw [pattern=north west lines] (0,2)--plot[domain=0:1] (\x, {(1/4*(\x)^4+1/3*(\x)^3-(\x)^2+2})--(1,0)--plot[domain=1:0] (\x, {(\x)^3+(\x)^2-2*(\x)})--(0,2);
	\draw[dashed] (-1,1)--(-1,0);
\end{tikzpicture}