Slope Fields with Mathematica - Exercise 3.4

Making Slope Fields by Yourself

A Post Exercise Discussion of

dy/dxÌý=Ìýy2Ìý+Ìýy/x, on the region -1 ≤ÌýxÌý≤ 1, and -1 ≤ÌýyÌý≤ 1

Don't cheat! If you didn't do the exercise inÌýMathematicaÌýbefore you came here to see the discussion,Ìýgo backÌýand do it now!

Assuming that you did the exercise correctly, you should have produced a picture like this:

Slope Field Graph
Slope Field forÌýdy/dxÌý=Ìýy2Ìý+Ìýy/x
Ìý

It should be clear that there is some kind of origin symmetry evident in the slope field.

Moving more quickly, since we've had so much experience by now, we know the equation of the isocline family is:

y2Ìý+Ìýy/xÌý=ÌýC,

which is kind of unrecognizable. ItÌýisÌýpossible to solve this forÌýyÌýusing the quadratic formula, and then make a graph, but that looks like more trouble than it's worth, especially ifÌýMathematicaÌýcan be pressed into service for the task. Doing this, we produce a plot looking much like the following:

Isocline Graph
Slope Field forÌýdy/dxÌý=Ìýy2Ìý+Ìýy/x
with superimposed isoclinesÌýy2Ìý+Ìýy/xÌý=ÌýC

Try to verify from this image that as you trace along any particular one of theÌýred isoclines, the slopes of the vectors which intersect it are all the same.


Mathematica Logo You will not be asked to graph isoclines like this on lab exams, but if you'd like to see theÌýMathematicaÌýnotebook that was used to make the above plot, click on the icon to the left. If you do, please try to read it carefully, and try to understand what each command is being used for. Feel free to experiment with it a little. Don't forget to return here when you are done.

What about finding an analytic solution? This problem is of a class of differential equations referred to asÌýBernoulli equations, (named after Swiss mathematician Jakob Bernoulli.) You may or may not have learned how to solve Bernoulli equations analytically in the lecture part of your course yet.

Using Bernoulli's technique, it can be shown that the actual analytic solution to this problem is:

yÌý= -2x /Ìý(x2Ìý+ÌýC).

Again,ÌýMathematicaÌýcan be talked into helping with the plot, producing:

Solutions Graph
Slope Field forÌýdy/dxÌý=Ìýy2Ìý+Ìýy/x
with superimposed solution curvesÌýyÌý= -2x /Ìý(x2Ìý+ÌýC)
Ìý

As you can see, theÌýsolution curvesÌýthat we just calculated theoretically fit the slope field that we made earlier quite well.


Mathematica Logo You will not be asked to graph solutions curves over slope fields like this on lab exams, but if you'd like to see theÌýMathematicaÌýnotebook that was used to make the above plot, click on the icon to the left. If you do, please try to read it carefully, and try to understand what each command is being used for. Feel free to experiment with it a little. Don't forget to return here when you are done.

We're done with the discussion of this problem, so let's go back to theÌýexercises.

Ìý


Compass If you're lost, impatient, want an overview of this laboratory assignment, or maybe even all three, you can click on the compass button on the left to go to the table of contents for this laboratory assignment.