# How to plot an Ordinary differential equations

Hey guys I'm using mathematica 5 now, and so new to this software thing. May I know how to plot the direction field using PlotVectorField[] and also finding complete solution curve for this equation?

$$\frac{dy}{dx}-\frac{y}{x}=\frac{4x^2}{y}\cos(x)$$

Please do help or give me any tips if possible. Thanks in advance.

• Look up DSolve[] and ListVectorPlot[]. In addition, for this ODE, you should give a boundary condtion. – xyz Mar 18 '16 at 2:59
• Welcome to Mathematica.SE! I suggest the following: 0) Browse the common pitfalls question 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – Dr. belisarius Mar 18 '16 at 3:46
• Mathematica Version 5 is very old. If possible try to grab a newer one. There has been a lot of improvements since then! – Dr. belisarius Mar 18 '16 at 3:47
• DSolve[{y'[x] == y[x]/x + 4 x^2 Cos[x]/y[x], y[a] == b}, y[x], x] // FullSimplify – Dr. belisarius Mar 18 '16 at 3:57
• erm can you explain why i need to add y[a] == b ? cause my lecture didnt say anything about it. thanks – Elven Lim Mar 18 '16 at 4:42

yy[x_, a_, b_] := Evaluate[y[x] /. 