MHB Find Intersections of y=sin(x) and y=1-x^2 | Mangoqueen54

Click For Summary
The discussion focuses on finding the intersections of the curves y=sin(x) and y=1-x^2 by equating them to form the equation sin(x) + x^2 - 1 = 0. A numeric root-finding method, specifically Newton's method, is employed to approximate the roots. The smaller root is found to be approximately -1.4096, and the larger root is about 0.6367. Both roots are verified for accuracy, confirming their proximity to the original equations. The final approximated points of intersection are (-1.4096, -0.9870) and (0.6367, 0.5946).
MarkFL
Gold Member
MHB
Messages
13,284
Reaction score
12
Here is the question:

mangoqueen54 said:
What are the intersections of y=sin(x) and y=1-x^2?

I have the Pi/4 side but i don't know what the negative one is

I have posted a link there to this thread so the OP can view my work.
 
Mathematics news on Phys.org
Hello mangoqueen54,

We are given the two curves:

$$y=\sin(x)$$

$$y=1-x^2$$

And we are asked to find the points of intersection.

If we equate the two curves, we get:

$$\sin(x)=1-x^2$$

Which we can arrange as:

$$\sin(x)+x^2-1=0$$

So, if we define:

$$f(x)=\sin(x)+x^2-1$$

We may then find its roots. We will need to use a numeric root finding method since we cannot explicitly solve for $x$. So, we will use Newton's method:

$$x_{n+1}=x_{n}-\frac{f\left(x_{n}\right)}{f'\left(n_{n}\right)}$$

Using our definition of $f$, we obtain:

$$x_{n+1}=x_{n}-\frac{\sin\left(x_{n}\right)+x_{n}^2-1}{\cos\left(x_{n}\right)+2x_{n}}=\frac{x_{n}\cos\left(x_{n}\right)-\sin\left(x_{n}\right)+x_{n}^2+1}{\cos\left(x_{n}\right)+2x_{n}}$$

Next, let's look at a plot of our function $f$ and see how many roots there are and get a rough estimate of their values:

View attachment 2453

Now, ignoring for the moment the root approximations shown on the graph, let's just say we see that the smaller root is about -1.5 and then use Newton's recursive method to get an accurate approximate of this smaller root

$$x_0=-1.5$$

$$x_1\approx-1.41379912599863$$

$$x_2\approx-1.40963375165233$$

$$x_3\approx-1.40962400405597$$

$$x_4\approx-1.40962400400260$$

$$x_5\approx-1.40962400400260$$

Our last two successive approximations agree to 15 digits, so let's now find the other root, which we see is near x=0.5:

$$x_0=0.5$$

$$x_1\approx0.644107890053782$$

$$x_2\approx0.636750907010919$$

$$x_3\approx0.636732650918014$$

$$x_4\approx0.636732650805282$$

$$x_5\approx0.636732650805282$$

Our last two successive approximations agree to 15 digits, so we now have the two root approximations:

$$x\approx-1.40962400400260,\,0.636732650805282$$

Let's now verify that they are close approximations:

$$\sin(-1.40962400400260)\approx-0.987039832660$$

$$1-(-1.40962400400260)^2\approx-0.987039832660$$

$$\sin(0.636732650805282)\approx0.594571531399$$

$$1-(0.636732650805282)^2\approx0.594571531399$$

And so, using 12 decimal places of accuracy, we have found the points of intersection may be approximated by:

$$\bbox[10px,border:2px solid #207498]{(x,y)\approx(-1.409624004003,-0.987039832660),\,(0.636732650805,0.594571531399)}$$
 

Attachments

  • mangoqueen54.jpg
    mangoqueen54.jpg
    16.5 KB · Views: 93
I have been insisting to my statistics students that for probabilities, the rule is the number of significant figures is the number of digits past the leading zeros or leading nines. For example to give 4 significant figures for a probability: 0.000001234 and 0.99999991234 are the correct number of decimal places. That way the complementary probability can also be given to the same significant figures ( 0.999998766 and 0.00000008766 respectively). More generally if you have a value that...

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
4
Views
9K
  • · Replies 6 ·
Replies
6
Views
2K