📈 Vẽ đồ thị hàm số
Vẽ tối đa 3 đồ thị hàm số. Hỗ trợ tô màu vùng giới hạn (miền gạch sọc) giữa các đồ thị.
📐 Giới hạn trục tọa độ
📉 Đồ thị hàm số

Nhập tối đa 3 biểu thức (ví dụ: x^2 - 2*x hoặc sin(deg(x))).

Hàm số 1
Hàm số 2
Hàm số 3
🖌️ Miền gạch sọc

Tô màu vùng giới hạn giữa các đồ thị. Chỉ các hàm số đã nhập mới hiển thị để chọn.

Vùng 1
Vùng 2
⚙️ Cài đặt
👁 Xem trước
Code TikZ được tạo tự động
\usetikzlibrary{patterns}
\usepgfplotslibrary{fillbetween}
\pgfplotsset{compat=1.18}
\begin{tikzpicture}
\begin{axis}[
  axis lines=middle,
  axis on top,
  xmin=-3.2, xmax=5.2,
  ymin=-3.2, ymax=5.2,
  xlabel={$x$}, ylabel={$y$},
  grid=major,
  grid style={dashed, gray!30},
  enlargelimits=false,
  ticklabel style={font=\footnotesize},
  axis equal image,
  width=10cm,
  samples=100
]
  \path[name path=xaxis] (\pgfkeysvalueof{/pgfplots/xmin},0) -- (\pgfkeysvalueof{/pgfplots/xmax},0);
  \addplot[name path=f1, color=blue, domain=-3:5, thick] {x^2 - 2*x};
  \addplot[name path=f2, color=red, domain=-3:5, thick] {x};
  \addplot [pattern=north east lines, pattern color=gray!80] fill between[of=f1 and f2, soft clip={domain=0:3}];
\end{axis}
\end{tikzpicture}