- #1
karush
Gold Member
MHB
- 3,269
- 5
Code:
\begin{tikzpicture}[xscale=2,yscale=.5]
\draw[->] (-1,0) -- (4,0) node[right] {$x$};
\draw[->] (0,-1) -- (0,5) node[above] {$y$};
\draw[scale=0.5,domain=-1:3.5,smooth,variable=\x,black] plot ({\x},{\x*\x});
\end{tikzpicture}
ok I am actually trying to plot
$f(x)=5x^2-2x$
with the tangent line going thru $(1,3)$ which is $8\left(x-1\right)+3$
I thot I could just change this from an example but does seem to like it
stack exchange had some samples but they got very complex with other features added
anyway mahalo ahead
why is the preview right justified