Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[dvipdfmx,uplatex]{jsarticle}
- \usepackage{tikz}
- \usetikzlibrary{patterns,patterns.meta}
- \begin{document}
- \begin{tikzpicture}
- \fill[pattern={Lines[angle=45, distance=10pt]}, domain=0:2.2, variable=\x]
- (0,-1) -- node[left] {$0$} (0,0) -- plot (\x, {\x*\x}) -- (3,2.2*2.2) -- (3,-1) -- cycle;
- \draw[thick, smooth, domain=-2.2:2.2] plot (\x, {\x*\x}) node[left] {$y = x^2$};
- \draw[->] (-3,0) -- (3,0) node[right] {$x$};
- \draw[->] (0,-1) -- (0,5) node[right] {$y$};
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement