0
$\begingroup$

For example I want to plot the vector <7, 20> on the same plot as the line {t, 6t+10}

$\endgroup$
0

1 Answer 1

1
$\begingroup$
Plot[
 Tooltip[6 t + 10], {t, 0, 8},
 Epilog -> {Red,
   Tooltip[
    Arrow[{{0, 0}, {7, 20}}],
    "Vector <7, 20>"]},
 AxesOrigin -> {0, 0},
 AxesLabel -> (Style[#, 14, Bold] & /@
    {"t", "y[t]"})]

enter image description here

EDIT: For a parametric curve rather than a line use ParametricPlot

ParametricPlot[
 Tooltip[{t + 5 t^2, 6 t + 10}], {t, 0, 3/2}, 
 Epilog -> {Red, Tooltip[Arrow[{{0, 0}, {7, 20}}], "Vector <7, 20>"]},
  AxesOrigin -> {0, 0}, 
 AxesLabel -> (Style[#, 14, Bold] & /@
    {"x[t]", "y[t]"}),
 AspectRatio -> 1/GoldenRatio]

enter image description here

$\endgroup$
2
  • $\begingroup$ What if I want to plot the vector <7, 20> on the same plot as the line {t + 5t^2, 6t+10} $\endgroup$
    – Nika
    Commented Sep 26, 2015 at 16:04
  • $\begingroup$ To plot a curve rather than a line, use ParametricPlot $\endgroup$
    – Bob Hanlon
    Commented Sep 26, 2015 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.