Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How can I plot the vector function $r(t) = i + j + t\;k$, where i, j, k are unit vectors, and t is the parameter of the function r.

share|improve this question
    
you want the vector field or just the vector bundle? –  Spawn1701D Apr 11 '13 at 22:44
    
belisarus answered my question. thank you. –  MathStudent Apr 11 '13 at 22:49
3  
And you really couldn't find this in the documentation? –  Sjoerd C. de Vries Apr 11 '13 at 22:50
    
@MathStudent you are welcomed. –  Spawn1701D Apr 11 '13 at 22:54

2 Answers 2

up vote 4 down vote accepted
ParametricPlot3D[{1, 1, t}, {t, 0, 2}]

enter image description here

share|improve this answer
    
thank you, belisarius. you saved my life. –  MathStudent Apr 11 '13 at 22:49
5  
@MathStudent No, I just answered a very simple question. I suggest you to read a few coding examples in the Help system. –  belisarius Apr 11 '13 at 23:10
1  
... if you want to live safe –  belisarius Apr 12 '13 at 11:33
    
Hmm... That's not really the graph of the requested function but rather the image of the function (over an interval of the domain, of course). To plot the actual function would be to plot a function from (some subinterval) of the reals R to 3-space [latex]R^3[/latex], and that would require working in 4-space; or it would require creating an animation or dynamic display in which the domain is represented by time. –  murray Apr 12 '13 at 12:37
    
@murray Yep, but it is the only thing that I was able to produce in **R**^3 –  belisarius Apr 12 '13 at 12:41

Even though belisarius has answered the question to OP's satisfaction, I figured I'd throw this in there in case someone came to this question looking to plot a vector field in three dimensions like murray suggested.

Animate[        
   VectorPlot3D[{1, 1, t}, {x, -1, 1}, {y, -1, 1}, {z, -1, 1},          
   VectorScale -> Medium, RegionFunction -> ((#1 #2 #3 > 0) &)],      
{t, 0, 2}]  

Information about the options I applied (to make the plot look a bit easier to understand) is in the documentation for VectorPlot3D.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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