# Hình vẽ TOàn

TIkz
user_2730587709
latex
2 years ago
1.5 kB
10
Indexable
Never
\begin{tikzpicture}[line cap=round,line join=round,font=\footnotesize,>=stealth,scale=1]
\draw[->] (-2.3,0)--(2.3,0) node[above] {$x$};
\draw[->] (0,-1)--(0,3.5) 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$}
(-1,3) circle (1pt) (1,3) circle (1pt)
(0,2) circle (1pt) node [shift={(-40:1.25ex)}] {$2$}
(0,3) circle (1pt) node [shift={(-60:1.25ex)}] {$3$};
\draw [samples=100, domain=-1.73:1.73] plot (\x, {-1*(\x)^4+2*(\x)^2+2});
\draw[dashed] (-1,0)|-(0,3)-|(1,0);
\end{tikzpicture}
\begin{tikzpicture}[line cap=round,line join=round,font=\footnotesize,>=stealth,scale=1]
\clip(-2.3,-0.5) rectangle (2.3,6.5);
\draw[->] (-2.3,0)--(2.3,0) node[above] {$x$};
\draw[->] (0,-0.5)--(0,6.3) node[left] {$y$};
\fill (0,0) circle (1pt) node [below left] {$O$}
(2,0) circle (1pt) node [below] {$2$}
(-0.75,1.25) node {$S_1$}
(-1,0) circle (1pt) node [below] {$-1$}
(2,6) circle (1pt);

\draw [samples=100, domain=-2.01:2.01] plot (\x, {(\x)^4-3*(\x)^2+2});
\draw[dashed] (2,0)--(2,6);
\draw[shorten <= 1.5cm,shorten >= 1.5cm] (-2,-2)--(3,8);
\filldraw[pattern=north east lines] plot[smooth,samples=400,domain=-1:0] (\x, {(\x)^4-3*(\x)^2+2})--(0,2)--(-1,0);
\filldraw[pattern=north west lines] plot[smooth,samples=400,domain=0:2] (\x, {(\x)^4-3*(\x)^2+2})--(2,6)--(0,2);
\draw (1,3) node[fill=white,rectangle,inner sep=1pt]{$S_2$};
\end{tikzpicture}