How can I find the inverse function for a given approximation?

Click For Summary
SUMMARY

The discussion focuses on finding the inverse functions for the equation $$a = \frac{\cos x}{3x^2 - \pi^2}$$ within the interval $$0 \le x \le \pi$$, specifically near $$a \approx -0.086 \pm 0.01$$. The participants suggest using the Newton-Raphson method to derive the inverse functions $$x(a)$$, defining the function $$f(x) = a(3x^2 - \pi^2) - \cos(x)$$. It is noted that two distinct inverse functions exist in this region due to the non-bijection of the original function.

PREREQUISITES
  • Understanding of inverse functions and their properties
  • Familiarity with the Newton-Raphson method for numerical root finding
  • Basic knowledge of calculus, particularly derivatives
  • Experience with polynomial approximation techniques
NEXT STEPS
  • Research the Newton-Raphson method in depth, including convergence criteria
  • Explore polynomial approximation techniques for function fitting
  • Study the properties of non-bijective functions and their inverses
  • Learn about power series expansions and their applications in function approximation
USEFUL FOR

Mathematicians, students studying calculus, and anyone interested in numerical methods for solving equations and approximating functions.

Theia
Messages
121
Reaction score
1
Hello all

I was doing some approximation to solve another problem, but got stuck when trying to figure out a suitable inverse functions for this:

$$a = \frac{\cos x}{3x^2 - \pi^2}$$, where $$0 \le x \le \pi$$.

What I need is the two functions $$x(a)$$ at least near $$a \approx -0.086 \pm 0.01$$ but I'm not quite sure how to do it well.

Thus far I tried some sort of numerical way, meaning that I put $$a = $$ something and made a table of the results, then tried to fit some sort of simple polynomial (quadratic and cubic), but the results were not very convincing. So now I'm wondering should I still continue playing with the numerics and try to find some good function shape to fit, or should I try some other way, e.g. write the functions $$x(a)$$ in terms of power serie. :confused:

Thank you!
 
Physics news on Phys.org
Theia said:
Hello all

I was doing some approximation to solve another problem, but got stuck when trying to figure out a suitable inverse functions for this:

$$a = \frac{\cos x}{3x^2 - \pi^2}$$, where $$0 \le x \le \pi$$.

What I need is the two functions $$x(a)$$ at least near $$a \approx -0.086 \pm 0.01$$ but I'm not quite sure how to do it well.

Thus far I tried some sort of numerical way, meaning that I put $$a = $$ something and made a table of the results, then tried to fit some sort of simple polynomial (quadratic and cubic), but the results were not very convincing. So now I'm wondering should I still continue playing with the numerics and try to find some good function shape to fit, or should I try some other way, e.g. write the functions $$x(a)$$ in terms of power serie. :confused:

Thank you!

Hey Theia! ;)

The first notion that springs to my mind is to apply Newton-Raphson.

What are you thinking btw with "two" functions?
The graph is smooth near $$a \approx -0.086 \pm 0.01$$.

To apply Newton-Raphson, we can for instance define:
$$f(x) = a(3x^2-\pi^2) - \cos(x)$$
To find the inverse $x(a)$, we can now apply:
$$x_{k+1} = x_k - \frac{f(x_k)}{f'(x_k)} = x_k - \frac{a(3x_k^2 - \pi^2) - \cos x_k}{6ax_k + \sin x_k}$$
 
I like Serena said:
Hey Theia! ;)

The first notion that springs to my mind is to apply Newton-Raphson.

What are you thinking btw with "two" functions?
The graph is smooth near $$a \approx -0.086 \pm 0.01$$.

To apply Newton-Raphson, we can for instance define:
$$f(x) = a(3x^2-\pi^2) - \cos(x)$$
To find the inverse $x(a)$, we can now apply:
$$x_{k+1} = x_k - \frac{f(x_k)}{f'(x_k)} = x_k - \frac{a(3x_k^2 - \pi^2) - \cos x_k}{6ax_k + \sin x_k}$$

Thank you for your reply. And thank you for reminding me that method. I think I've even used it in some problem but it seems I simply can't remember all usefull things... *oops*

As for your question why two functions, there are two distinct inverse functions for $$a \approx -0.086 \pm 0.01$$ because the original function is not a bijection in that region. Somewhat similar situation as in case of inverting $$y = x^2$$, but not as simple as that one.
 
Theia said:
Thank you for your reply. And thank you for reminding me that method. I think I've even used it in some problem but it seems I simply can't remember all usefull things... *oops*

That's why we have sites like MHB to remind us of the things we're not thinking of, or even worse, have forgotten. ;)

As for your question why two functions, there are two distinct inverse functions for $$a \approx -0.086 \pm 0.01$$ because the original function is not a bijection in that region. Somewhat similar situation as in case of inverting $$y = x^2$$, but not as simple as that one.

Ah, of course. (Nod)
If we pick a negative initial value, say $x_0=-1$, for Newton-Raphson, we'll get the one, and with $x_0=+1$ we'll get the other.Oh, oh, and now that we have TikZ pictures, here's how the graph looks - just because we can:
\begin{tikzpicture}
%preamble \usepackage{pgfplots}
\begin{axis}[xmin=-1.5,xmax=1.5,samples=101]
\addplot[blue, ultra thick] (x,{cos(deg(x)) / (3*x*x - 10)});
\end{axis}
\end{tikzpicture}
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
7
Views
2K