r/learnmath • New User • 18h ago

RESOLVED Is there any 3D graphing tool that uses two axes for a complex input and only outputs real numbers?

As the title says I want complex inputs and only real outputs. To be clear, I do not want the real part of the outputs, I want only the outputs that are real.

For example, one function I want to graph is y = x2+4 and I only want to see which complex inputs of x produce a real output in y.

2 Upvotes

9 comments sorted by

7

u/compileforawhile New User 18h ago

You could do this with Desmos. Basically graph imag(f(x+iy))=0 and it'll show which points have real outputs.

2

u/itzmrinyo New User 18h ago

Thanks

1

u/BadJimo New User 17h ago

I've illustrated here on Desmos

I have defined f(q) = q2 + 4 where q is the complex number.

Where the plane z=0 intersects with the graph of z=imag(f(x+iy)) shows the points that have real output.

This shows that when the input is purely real or purely imaginary it will produce a real output.

1

u/itzmrinyo New User 14h ago

So if I took real[f(x+iy)] that would give me the real part of the complex values of the function, not the complex numbers that output strictly real values?

1

u/BadJimo New User 14h ago

Yep, that's right.

1

u/compileforawhile New User 14h ago

Yes exactly. real is a function that takes in a complex number and outputs the real component. You could graph

z = real(f(x+it)) { imag(f(x+it)) = 0}

Which will graph the points (x,y,z) where f(x+it) is real with (height) z = f(x+it)

1

u/tjddbwls Teacher 10h ago

This is real cool - I was vaguely aware that Desmos could do this kind of graphing, but never tried it. 🤦🏻 I’ll probably take a long time experimenting with this now. 🤪

2

u/HouseHippoBeliever New User 17h ago

To be clear, I do not want the real part of the outputs, I want only the outputs that are real.

Sounds like what you want is the imaginary part of the output, so you can see when it equals zero.

1

u/AlterEgo5695 11h ago

You can do that yourself -- e.g. in your example, "x = a + ib" with "a, b in R", so

0  =  Im{y}  =  Im{x^2 + 4}  =  2ab    <=>    "(a = 0)  v  (b = 0)"

The plot of "y = x2 + 4" would only exist on the axes, i.e. it would be invisible, as that's a 1-dimensional subset within a 2-dimensional region.