MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Can I plot y=f(x) and x=f(y) on the same chart?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105538] Re: Can I plot y=f(x) and x=f(y) on the same chart?
  • From: Helen Read <hpr at together.net>
  • Date: Mon, 7 Dec 2009 02:00:49 -0500 (EST)
  • References: <200912051032.FAA08582@smc.vnet.net> <hffj81$6oh$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>

Murray Eisenberg wrote:
> Tyler Shim wrote:
>> I have two functions. Lets say one is y = 3x^5+7x^2-7 and the other is
>> x = 2y^8-5y^7-y
>>
>> How can I plot them on the same chart?
>>
>
> Here's one slightly devious way:
> 
>    ParametricPlot[{{x,3x^5+7x^2-7},{2x^8-5x^7-x,x}},{x,-1,1}]
> 
> Notice the renaming of the parameter from "y" to "x" in the second one 
> so as to fit both within the same ParametricPlot, controlled by a single 
> parameter.

I wouldn't consider that "devious" -- but the notation is confusing. I 
would suggest using a new parameter such as t, as other posters have 
suggested.

y[t_]=3t^5+7t^2-7

x[t_]=2t^8-5t^7-t


ParametricPlot[{{x[t], t}, {t, y[t]}}, {t, -1, 1}]

-- 
Helen Read
University of Vermont


  • Prev by Date: Re: Newbie Qn: Change Directory
  • Next by Date: Re: Zoom Magnify Keyboard Shortcut
  • Previous by thread: Re: Can I plot y=f(x) and x=f(y) on the same chart?
  • Next by thread: Re: Can I plot y=f(x) and x=f(y) on the same chart?