|
| 1 | +\begin{tikzpicture}[scale=1.2] |
| 2 | + \draw[->] (-5.5, 0) -- (5.5, 0) node[right] {\(x\)}; |
| 3 | + \draw[->] (0, -5.5) -- (0, 5.5) node[above] {\(y\)}; |
| 4 | + |
| 5 | + % 1st Quardrant (x, y) |
| 6 | + \draw[smooth, samples=200, domain=0:1] plot ({sqrt(sqrt(\x^4 - 5*\x^2 + 4) + 2)}, \x) -- ({sqrt(2)}, 1); |
| 7 | + \draw[smooth, samples=200, domain=0:1] plot ({sqrt(-sqrt(\x^4 - 5*\x^2 + 4) + 2)}, \x) -- ({sqrt(2)}, 1); |
| 8 | + \draw[smooth, samples=200, domain=2:sqrt(5)] plot ({sqrt(-sqrt(\x^4 - 5*\x^2 + 4) + 2)}, \x) -- (0, {sqrt(5)}); |
| 9 | + \draw[smooth, samples=200, domain=2:5] plot ({sqrt(sqrt(\x^4 - 5*\x^2 + 4) + 2)}, \x); |
| 10 | + |
| 11 | + % 2nd Quardrant (-x, y) |
| 12 | + \draw[smooth, samples=200, domain=0:1] plot ({-sqrt(sqrt(\x^4 - 5*\x^2 + 4) + 2)}, \x) -- ({-sqrt(2)}, 1); |
| 13 | + \draw[smooth, samples=200, domain=0:1] plot ({-sqrt(-sqrt(\x^4 - 5*\x^2 + 4) + 2)}, \x) -- ({-sqrt(2)}, 1); |
| 14 | + \draw[smooth, samples=200, domain=2:sqrt(5)] plot ({-sqrt(-sqrt(\x^4 - 5*\x^2 + 4) + 2)}, \x) -- (0, {sqrt(5)}); |
| 15 | + \draw[smooth, samples=200, domain=2:5] plot ({-sqrt(sqrt(\x^4 - 5*\x^2 + 4) + 2)}, \x); |
| 16 | + |
| 17 | + % 3rd Quardrant (-x, -y) |
| 18 | + \draw[smooth, samples=200, domain=0:1] plot ({-sqrt(sqrt(\x^4 - 5*\x^2 + 4) + 2)}, -\x) -- ({-sqrt(2)}, -1); |
| 19 | + \draw[smooth, samples=200, domain=0:1] plot ({-sqrt(-sqrt(\x^4 - 5*\x^2 + 4) + 2)}, -\x) -- ({-sqrt(2)}, -1); |
| 20 | + \draw[smooth, samples=200, domain=2:sqrt(5)] plot ({-sqrt(-sqrt(\x^4 - 5*\x^2 + 4) + 2)}, -\x) -- (0, {-sqrt(5)}); |
| 21 | + \draw[smooth, samples=200, domain=2:5] plot ({-sqrt(sqrt(\x^4 - 5*\x^2 + 4) + 2)}, -\x); |
| 22 | + |
| 23 | + % 4th Quardrant (x, -y) |
| 24 | + \draw[smooth, samples=200, domain=0:1] plot ({sqrt(sqrt(\x^4 - 5*\x^2 + 4) + 2)}, -\x) -- ({sqrt(2)}, -1); |
| 25 | + \draw[smooth, samples=200, domain=0:1] plot ({sqrt(-sqrt(\x^4 - 5*\x^2 + 4) + 2)}, -\x) -- ({sqrt(2)}, -1); |
| 26 | + \draw[smooth, samples=200, domain=2:sqrt(5)] plot ({sqrt(-sqrt(\x^4 - 5*\x^2 + 4) + 2)}, -\x) -- (0, {-sqrt(5)}); |
| 27 | + \draw[smooth, samples=200, domain=2:5] plot ({sqrt(sqrt(\x^4 - 5*\x^2 + 4) + 2)}, -\x); |
| 28 | + |
| 29 | + \draw[dotted] ({sqrt(2)}, 2) -- ({sqrt(2)}, -2) -- (-{sqrt(2)}, -2) -- (-{sqrt(2)}, 2) -- cycle; |
| 30 | + \draw[dotted] ({-sqrt(2)}, 1) -- ({sqrt(2)}, 1); |
| 31 | + \draw[dotted] ({-sqrt(2)}, -1) -- ({sqrt(2)}, -1); |
| 32 | + |
| 33 | + \node at (0, 0) [below left] {\(O\)}; |
| 34 | + |
| 35 | + \filldraw (2, 0) circle (0.8pt) node [below right] {\(2\)}; |
| 36 | + \filldraw ({sqrt(2)}, 0) circle (0.8pt) node [below left] {\(\sqrt{2}\)}; |
| 37 | + |
| 38 | + \filldraw (-2, 0) circle (0.8pt) node [below left] {\(-2\)}; |
| 39 | + \filldraw ({-sqrt(2)}, 0) circle (0.8pt) node [below right] {\(-\sqrt{2}\)}; |
| 40 | + |
| 41 | + \filldraw (0, 1) circle (0.8pt) node [above left] {\(1\)}; |
| 42 | + \filldraw (0, 2) circle (0.8pt) node [below left] {\(2\)}; |
| 43 | + \filldraw (0, {sqrt(5)}) circle (0.8pt) node [above left] {\(\sqrt{5}\)}; |
| 44 | + |
| 45 | + \filldraw (0, -1) circle (0.8pt) node [below left] {\(-1\)}; |
| 46 | + \filldraw (0, -2) circle (0.8pt) node [above left] {\(-2\)}; |
| 47 | + \filldraw (0, {-sqrt(5)}) circle (0.8pt) node [below left] {\(-\sqrt{5}\)}; |
| 48 | + |
| 49 | + \draw[dashed] (-5, -5) -- (5, 5) node[right] {\(y = x\)}; |
| 50 | + \draw[dashed] (-5, 5) -- (5, -5) node[right] {\(y = -x\)}; |
| 51 | + |
| 52 | + \draw[dashed] (-5, {-2*sqrt(5)}) -- (5, {2*sqrt(5)}) node [right] {\(y = \frac{2}{\sqrt{5}}x\)}; |
| 53 | + \draw[dashed] (-5, {2*sqrt(5)}) -- (5, {-2*sqrt(5)}) node [right] {\(y = -\frac{2}{\sqrt{5}}x\)}; |
| 54 | +\end{tikzpicture} |
0 commit comments