# 3D representation of a transcendental equation

Given a transcendental equation $F * exp [x] + x * y + sqrt[F-y] = 0$, is there a way for Mathematica to automatically 3D-plot F[x,y] depending on x and y ?

• I wouldn't call that a transcendental equation, for the very reason that you can actually just solve for F in terms of elementary functions, as shown by @Kuba. – march Jan 13 '16 at 16:10
• @Kuba. Oh right! Got the names switched. – march Jan 13 '16 at 17:01

The simplest method would be just

ContourPlot3D[F Exp[x] + x y + Sqrt[F - y] == 0, {x, -2, 2}, {y, -2, 2}, {F, -2, 2}]


Unfortunately there are some problems because the Sqrt term is complex sometimes. A better plot is obtained by squaring the equation and using RegionFunction to eliminate the extra solutions:

ContourPlot3D[(F Exp[x] + x y)^2 == F - y, {x, -2, 2}, {y, -2, 2}, {F, -2, 2},
RegionFunction -> Function[{x, y, F}, F Exp[x] + x y < 0]]


Not a great deal. First you solve it:

    sl = Solve[F*Exp[x] + x*y + Sqrt[F - y] == 0, F]

(*  {{F -> 1/2 E^(-2 x) (1 - 2 E^x x y - Sqrt[
1 - 4 E^(2 x) y - 4 E^x x y])}, {F ->
1/2 E^(-2 x) (1 - 2 E^x x y + Sqrt[1 - 4 E^(2 x) y - 4 E^x x y])}}  *)


and then plot:

 Plot3D[{sl[[1, 1, 2]], sl[[2, 1, 2]]}, {x, -1, 1}, {y, -1, 1},
PlotStyle -> {Blue, Orange}]


and should see this:

Have fun!

• Try evaluating F*Exp[x] + x*y + Sqrt[F - y] /. sl /. {x -> -1, y -> -1}: neither "solution" satisfies the original equation. – user484 Jan 13 '16 at 16:42
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.2862832546234131, "perplexity": 2070.691414479953}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-04/segments/1610703550617.50/warc/CC-MAIN-20210124173052-20210124203052-00133.warc.gz"}