Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10021

Re: finding inverses of functions

From A Retey <awnl@gmx-topmail.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: finding inverses of functions
Date 2012-05-10 08:56 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jofvs6$fv1$1@smc.vnet.net> (permalink)
References <jod7lu$5f8$1@smc.vnet.net>

Show all headers | View raw


Am 09.05.2012 09:51, schrieb John Accardi:
> Hello,  I am trying to get Mathematica to find the inverse of:
>
> y  = 3x^3 + 2e^(2x)  (which I know is invertible)

but do you know a symbolic solution? I think solving equations of this 
type symbolically is difficult, if not impossible in general.

> InverseFunction only seems to give inverses of built-ins, like Sine.

InverseFunction works as designed for your case, it just doesn't provide 
a simple symbolic expression. But this works as expected:

finv = InverseFunction[3 #^3 + 2 E^(2 #) &]

Plot[finv[x], {x, -10, 10}]

note that the InverseFunction object represents the inverse function 
without the need to actually be able to determine a symbolic expression 
in general. It can be used like any other function definition in most 
functions that work with functions and they will return values when 
given arguments. The same is true for InterpolatingFunction and 
CompiledFunction objects.

In this case InverseFunction returns Root objects for exact numbers 
(e.g. finv[1]) and floating point approximations for floating point 
arguments (e.g. finv[1.]). Probably that's the best a computer program 
can do for a general case like this. TI consider this the true power of 
Mathematica :-)

hth,

albert

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

finding inverses of functions John Accardi <accardi@accardi.com> - 2012-05-09 07:51 +0000
  Re: finding inverses of functions Szabolcs Horvát <szhorvat@gmail.com> - 2012-05-10 09:02 +0000
  Re: finding inverses of functions Peter Breitfeld <phbrf@t-online.de> - 2012-05-10 08:56 +0000
  Re: finding inverses of functions A Retey <awnl@gmx-topmail.de> - 2012-05-10 08:56 +0000

csiph-web