Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6204083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:01:48+00:00 2026-05-24T05:01:48+00:00

How does one plot the solutions to a set of equations in Mathematica? Even

  • 0

How does one plot the solutions to a set of equations in Mathematica? Even if there are only two variables, these equations are sufficiently complicated that they cannot be rearranged so that one of the variables can be set equal to a function of the other (and thus be of the correct form for Plot).

The specific example I am interested in is the following:

  • Fix a b in (0,1).
  • Let g >= 1 and d >= 1 vary.
  • Then there is a unique x (which happens to be in (0,1]) such that x = [(b x + 1) / (x + g)]^d (proof omitted).
  • I want a plot of pairs (d, g) that (1 – b g) x d / [(b x + 1) (x + g)] = 1.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:01:49+00:00Added an answer on May 24, 2026 at 5:01 am

    I imagine you’re looking for some elegant method, but for now here’s how to brute-force it:

    Clear[findx];findx[d_,g_,b_]:=x/.First@FindRoot[x\[Equal]((b x+1)/(x+g))^d,{x,0,1},PrecisionGoal\[Rule]3]
    ClearAll[plotQ];
    plotQ[d_,g_,b_,eps_]:=Module[
        {x=findx[d,g,b]},
        Abs[(1-b g) x d/((b x+1) (x+g))-1.]<eps]
    
    tbl=Table[{d,g,plotQ[d,g,.1,.001]},{d,4,20,.05},{g,1,1.12,.001}];
    

    (this should take of the order of 10s). Then draw the points as follows:

    Reap[
        Scan[
            If[#[[3]] == True,
                Sow@Point[{#[[1]], #[[2]]}]] &,
                Flatten[tbl, 1]]] // Last // Last // 
     Graphics[#, PlotRange -> {{1, 20}, {1, 1.1}}, Axes -> True,
        AspectRatio -> 1, AxesLabel -> {"d", "g"}] &
    

    enter image description here

    Painfully ugly way to go about it, but there it is.

    Note that I just quickly wrote this up so I make no guarantees it’s correct!

    EDIT: Here is how to do it with only providing b and a stepsize for d:

    Clear[findx]; 
    findx[d_, g_, b_] := 
     x /. First@
       FindRoot[x \[Equal] ((b x + 1)/(x + g))^d, {x, 0, 1}, 
        PrecisionGoal \[Rule] 3]
    ClearAll[plotQ];
    plotQ[d_, g_, b_, eps_] := 
     Module[{x = findx[d, g, b]}, 
      Abs[(1 - b g) x d/((b x + 1) (x + g)) - 1.] < eps]
    
    tbl = Table[{d, g, plotQ[d, g, .1, .001]}, {d, 4, 20, .05}, {g, 1, 
        1.12, .001}];
    
    ClearAll[tmpfn];
    tmpfn[d_?NumericQ, g_?NumericQ, b_?NumericQ] := 
     With[{x = findx[d, g, b]},
        (1 - b g) x d/((b x + 1) (x + g)) - 1.
      ]
    

    then

    stepsize=.1
    
    (tbl3=Table[
        {d,g/.FindRoot[tmpfn[d,g,.1]\[Equal]0.,
            {g,1,2.},PrecisionGoal\[Rule]2]},
        {d,1.1,20.,stepsize}]);//Quiet//Timing
    
    ListPlot[tbl3,AxesLabel\[Rule]{"d","g"}]
    

    giving

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can one plot() a regular 2D plot in Matlab, and
How does one set the color of a line in matplotlib with scalar values
Does anyone know how I go about putting a line chart for one set
After these instructions in the Python interpreter one gets a window with a plot:
Consider the following definition: f[x_]=Piecewise[{{0,x<1/2},{Interval[{0,1}],x==1/2},{1,x>1/2}}]; Then when one does the Plot[f[x],{x,0,1}] of the function,
Does anyone have sample code for plotting ellipsoids? There is one for sphere on
I need to plot two data vectors with errorbars on one figure. errorbar() function
does one perform better over the other in terms of indexing/quering etc ? e.g.
How does one go about authoring a Regular Expression that matches against all strings
How does one go about referencing a class's static properties in xaml? In other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.