Maclaurin formula: finding a delta for a given error

Click For Summary

Homework Help Overview

The discussion revolves around approximating the function f(x)=sin(x) using the Maclaurin polynomial P_5(x) and determining a value of δ such that the remainder R_5(x) satisfies |R_5(x)|<0.0005 for all x in the interval (0, δ). Participants express confusion regarding the order of the polynomial and the remainder, and they explore the implications of using different polynomial degrees.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the notation and the relationship between the polynomial and the remainder. They explore how to find δ by analyzing the remainder term R_6(x) and consider using inequalities to bound the error. There is also discussion about the appropriateness of using x^6 or x^7 as upper bounds for sin(x).

Discussion Status

The discussion is active, with participants sharing their thoughts and questioning the validity of their approaches. Some guidance has been offered regarding the use of inequalities, and there is an ongoing exploration of the implications of different approximations. Participants are considering the impact of their choices on the bounds they are trying to establish.

Contextual Notes

Participants note that the sine function is always less than one and discuss the implications of this in the context of their approximations. There is also mention of the potential for approximations to exceed the desired error bounds, prompting further inquiry into the validity of their methods.

Telemachus
Messages
820
Reaction score
30
Approximate the function [tex]f(x)=\sin(x)[/tex] using the corresponding Maclaurin polynomial: [tex]P_5(x)[/tex], in a bound [tex]\epsilon(0,\delta)[/tex]. Determine a value of [tex]\delta>0[/tex], so that the rest [tex]R_5(x)[/tex] verifies [tex]|R_5(x)|<0.0005[/tex] for all [tex]x\in{\epsilon(0,\delta)}[/tex]

Well, the first thing that puzzles me a bit is that the order for [tex]P_5[/tex] and [tex]R_5[/tex] is the same. I assume that it is a mistake, and that the polynomial must be [tex]P_4[/tex], or the rest [tex]R_6[/tex]. I have chosen to leave the degree of the polynomial as it was and turn up one grade to the rest.

So I have to find a delta for which any value within the environment [tex](0,\delta)[/tex] is less than the error 0.0005

So I did:

[tex]R_6(x)=|\displaystyle\frac{\sin(\alpha)x^6}{6!}|<0.0005[/tex] [tex]0<\alpha<x[/tex]

So I must find x:

[tex]R_6(x)=|\sin(\alpha)x^6|<0.36[/tex] [tex]0<\alpha<x[/tex]

I must find x that satisfies the equation: [tex]\sin(x)x^6<0.36[/tex]

I don't know how to go ahead.

Bye there.
 
Last edited:
Physics news on Phys.org
Telemachus said:
Approximate the function [tex]f(x)=\sin(x)[/tex] using the corresponding Maclaurin polynomial: [tex]P_5(x)[/tex], in a bound [tex]\epsilon(0,\delta)[/tex]. Determine a value of [tex]\delta>0[/tex], so that the rest [tex]R_5(x)[/tex] verifies [tex]|R_5(x)|<0.0005[/tex] for all [tex]x\in{\epsilon(0,\delta)}[/tex]

Well, the first thing that puzzles me a bit is that the order for [tex]P_5[/tex] and [tex]R_5[/tex] is the same. I assume that it is a mistake, and that the polynomial must be [tex]P_4[/tex], or the rest [tex]R_6[/tex]. I have chosen to leave the degree of the polynomial as it was and turn up one grade to the rest.
I think you're just getting confused by the notation. The usual notation is

[tex]R_n(x) = f(x)-P_n(x)[/tex]

The remainder term turns out to depend on xn+1 and f(n+1)(x).
So I have to find a delta for which any value within the environment [tex](0,\delta)[/tex] is less than the error 0.0005

So I did:

[tex]R_6(x)=|\displaystyle\frac{\sin(\alpha)x^6}{6!}|<0.0005[/tex] [tex]0<\alpha<x[/tex]

So I must find x:

[tex]R_6(x)=|\sin(\alpha)x^6|<0.36[/tex] [tex]0<\alpha<x[/tex]

I must find x that satisfies the equation: [tex]\sin(x)x^6<0.36[/tex]

I don't know how to go ahead.

Bye there.
Hint: Use the fact that x ≥ sin x when x ≥ 0.
 
I don't get it. I know that 1≥sin(x) how should I use the fact you mentioned? I wouldn't noted it if you weren't.

Thanks vela.
 
The fact that x ≥ sin x for x ≥ 0 is one of those things you pick up along the way, typically when you do a problem like this one.

You're trying to solve for x, right? And the difficulty is that you can't solve an equation of the form xn sin x = c. So you use the usual approach. Instead of solving the equation exactly, you look for an upper bound that you can solve that gives you a good estimate. In this case, you know that x6 sin x ≤ x7.
 
Thanks man!

One doubt. I was thinking that as the sine is always less than one I could use x⁶ as an upper bound too. Right?
 
Telemachus said:
Thanks man!

One doubt. I was thinking that as the sine is always less than one I could use x⁶ as an upper bound too. Right?

What does this say - x⁶ ?
 
Telemachus said:
Thanks man!

One doubt. I was thinking that as the sine is always less than one I could use x⁶ as an upper bound too. Right?
Yes, you can. So what is the difference between the two choices? Why would you choose one over the other?
 
Telemachus said:
the sine is always less than one
sin(x) = 1 for x = pi/2 + 2k*pi, k an integer.

What is x⁶? I can't read the exponent.
 
Telemachus's idea is to replace sin x by 1, so he'd end up with the inequality x^6 ≤ 0.36.

It's weird. His exponent is in a smaller font than mine.
 
  • #10
Sorry, I was studying :P

x⁶ is [tex]x^6[/tex]

I think I would choose [tex]x^6[/tex] cause its a better approximation than [tex]x^7[/tex], so I got [tex]|x<\sqrt[6]{\frac{9}{25}}[/tex]

Edit: Ok, I've seen that I was wrong, and that [tex]x^7[/tex] is a better approximation. But now I have more doubts, damn. For this: x ≥ sin x, or even using x^6 ≥ x^6 sin x, couldn't it happen that using that approximation I would get outside the boundary I was looking for? In this case I've noted that it works, but in general I would like to know what could happens. I mean, while using the substitution it could happens that the new value could be bigger than the error I was looking for, right? cause, I know that [tex]x^7\geq{x^6 sin x}[/tex] and so [tex]x^8\geq{x^6 sin x}[/tex] it is, and even for any n>6 [tex]x^n\geq{x^6}[/tex] right?

Mmm ok, I am wrong for values of x, such that [tex]x\leq{1}[/tex]. I've tried with x^8 and it seems to work too, and its a better approximation for the boundary I am looking for.

http://www.wolframalpha.com/input/?i=x^6+sin(x)+=+9/25

From here I get x ~~ 0.8807530939284029...

And http://www.wolframalpha.com/input/?i=(9/25)^(1/8)

0.88011173679339339727
 
Last edited:
  • #11
Telemachus said:
But now I have more doubts, damn. For this: x ≥ sin x, or even using x^6 ≥ x^6 sin x, couldn't it happen that using that approximation I would get outside the boundary I was looking for? In this case I've noted that it works, but in general I would like to know what could happens. I mean, while using the substitution it could happens that the new value could be bigger than the error I was looking for, right?
Nope. As long as your steps are reversible, which they usually are when you're doing these algebraic manipulations, you can start with the condition you found for x and deduce that the error will be within the given bound.
 
  • #12
Thanks vela, this is really helpful and very useful.
 

Similar threads

Replies
4
Views
2K
Replies
8
Views
1K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
7
Views
2K