approximation of trigonometric functions in form $a + bx + cx^2 +…$
up vote
1
down vote
favorite
Is there any way to express the trigonometric functions as infinitely long polinomials? If so, how? If not why?
Obviously doing $x(x-pi)(x-2pi)(x-3pi)...$ does not work as it doesn't match for values in between the zeroes.
trigonometry
add a comment |
up vote
1
down vote
favorite
Is there any way to express the trigonometric functions as infinitely long polinomials? If so, how? If not why?
Obviously doing $x(x-pi)(x-2pi)(x-3pi)...$ does not work as it doesn't match for values in between the zeroes.
trigonometry
2
There is indeed a way. I would suggest looking at 3Blue1Brown's video on Taylor series (youtube.com/watch?v=3d6DsjIBzJ4) for the general idea and derivation. Taylor series require a little knowledge of calculus but they are probably the best way to approximate various functions by polynomials.
– Eevee Trainer
Nov 26 at 23:16
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is there any way to express the trigonometric functions as infinitely long polinomials? If so, how? If not why?
Obviously doing $x(x-pi)(x-2pi)(x-3pi)...$ does not work as it doesn't match for values in between the zeroes.
trigonometry
Is there any way to express the trigonometric functions as infinitely long polinomials? If so, how? If not why?
Obviously doing $x(x-pi)(x-2pi)(x-3pi)...$ does not work as it doesn't match for values in between the zeroes.
trigonometry
trigonometry
edited Nov 26 at 23:23
Eevee Trainer
3,295224
3,295224
asked Nov 26 at 23:13
dino
83
83
2
There is indeed a way. I would suggest looking at 3Blue1Brown's video on Taylor series (youtube.com/watch?v=3d6DsjIBzJ4) for the general idea and derivation. Taylor series require a little knowledge of calculus but they are probably the best way to approximate various functions by polynomials.
– Eevee Trainer
Nov 26 at 23:16
add a comment |
2
There is indeed a way. I would suggest looking at 3Blue1Brown's video on Taylor series (youtube.com/watch?v=3d6DsjIBzJ4) for the general idea and derivation. Taylor series require a little knowledge of calculus but they are probably the best way to approximate various functions by polynomials.
– Eevee Trainer
Nov 26 at 23:16
2
2
There is indeed a way. I would suggest looking at 3Blue1Brown's video on Taylor series (youtube.com/watch?v=3d6DsjIBzJ4) for the general idea and derivation. Taylor series require a little knowledge of calculus but they are probably the best way to approximate various functions by polynomials.
– Eevee Trainer
Nov 26 at 23:16
There is indeed a way. I would suggest looking at 3Blue1Brown's video on Taylor series (youtube.com/watch?v=3d6DsjIBzJ4) for the general idea and derivation. Taylor series require a little knowledge of calculus but they are probably the best way to approximate various functions by polynomials.
– Eevee Trainer
Nov 26 at 23:16
add a comment |
3 Answers
3
active
oldest
votes
up vote
2
down vote
accepted
I have heard that there are ways of making your approach work, but I don't know anything about it personally.
The standard approach would be Taylor series. The idea of Taylor series is to make an "infinite degree" polynomial for which the function value and all derivatives agree with those of your function.
Specifically, for $sin$, we have
$$
sin(x)=x-frac{x^3}{3!}+frac{x^5}{5!}-frac{x^7}{7!}+cdots
$$
For any given $x$, the factorial $n!$ eventually grows much faster than the power $x^n$, so the series will converge.
A Taylor series is an expression like the above (we do allow even degree terms, it's just that $sin$ happens to not have them), possibly with $x$ replaced by $(x-a)$ for some real number $a$. We say that such a Taylor series is centered around $a$. The above series for $sin$ is centered at $0$.
In general, in order to have a Taylor series, a function must be infinitely differentiable. And even then, there is no guarantee that the Taylor series converges, or that it converges to the function it is derived from. And even if it does, the series may not converge everywhere.
A function which for each point $a$ in its domain has a Taylor series centered at $a$ which converges on some open neighborhood of $a$ is called analytic. Many (most?) named functions that one learn about in school are analytic. Trigonometric functions like $sin$ are analytic, as are polynomials, $sqrt{phantom x}$, $e^x$, and rational functions, to name a few.
add a comment |
up vote
1
down vote
Another answer has mentioned the infinite sum Taylor series for sine. Here is the infinite product Weierstrass factorization for sine:
$$ sin(x) = x left(1 - left(frac{x}{pi}right)^2 right)
left(1 - left(frac{x}{2pi}right)^2 right)
left(1 - left(frac{x}{3pi}right)^2 right) cdots. $$
There is a similar factorization for cosine.
add a comment |
up vote
0
down vote
You already received good answers to the question.
In this area, we can do other things which are amazing. If you look here, being myself fascinated by the approximation $$sin(x) simeq frac{16 (pi -x) x}{5 pi ^2-4 (pi -x) x}qquad (0leq xleqpi)$$ which wasproposed, more than $1400$ years ago by Mahabhaskariya of Bhaskara I (a seventh-century Indian mathematician), I wrote
$$sin(x)=sum_{k=1}^n a_k [(pi-x)x]^k$$ which respects the value of $0$ at $x=0$ and $x=pi$. The first coefficients are
$$left(
begin{array}{cc}
k & a_k \
1 & frac{1}{pi } \
2 & frac{1}{pi ^3} \
3 & frac{12-pi ^2}{6 pi ^5} \
4 & frac{10-pi ^2}{2 pi ^7} \
5 & frac{1680-180 pi ^2+pi ^4}{120 pi ^9} \
6 & frac{1008-112 pi ^2+pi ^4}{24 pi ^{11}} \
7 & frac{665280-75600 pi ^2+840 pi ^4-pi ^6}{5040 pi ^{13}} \
8 & frac{308880-35640 pi ^2+450 pi ^4-pi ^6}{720 pi ^{15}}
end{array}
right)$$ The maximum error is at $x=frac pi 2$; for example, using $n=8$, the error is just $4.99 times 10^{-13}$.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3015082%2fapproximation-of-trigonometric-functions-in-form-a-bx-cx2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
I have heard that there are ways of making your approach work, but I don't know anything about it personally.
The standard approach would be Taylor series. The idea of Taylor series is to make an "infinite degree" polynomial for which the function value and all derivatives agree with those of your function.
Specifically, for $sin$, we have
$$
sin(x)=x-frac{x^3}{3!}+frac{x^5}{5!}-frac{x^7}{7!}+cdots
$$
For any given $x$, the factorial $n!$ eventually grows much faster than the power $x^n$, so the series will converge.
A Taylor series is an expression like the above (we do allow even degree terms, it's just that $sin$ happens to not have them), possibly with $x$ replaced by $(x-a)$ for some real number $a$. We say that such a Taylor series is centered around $a$. The above series for $sin$ is centered at $0$.
In general, in order to have a Taylor series, a function must be infinitely differentiable. And even then, there is no guarantee that the Taylor series converges, or that it converges to the function it is derived from. And even if it does, the series may not converge everywhere.
A function which for each point $a$ in its domain has a Taylor series centered at $a$ which converges on some open neighborhood of $a$ is called analytic. Many (most?) named functions that one learn about in school are analytic. Trigonometric functions like $sin$ are analytic, as are polynomials, $sqrt{phantom x}$, $e^x$, and rational functions, to name a few.
add a comment |
up vote
2
down vote
accepted
I have heard that there are ways of making your approach work, but I don't know anything about it personally.
The standard approach would be Taylor series. The idea of Taylor series is to make an "infinite degree" polynomial for which the function value and all derivatives agree with those of your function.
Specifically, for $sin$, we have
$$
sin(x)=x-frac{x^3}{3!}+frac{x^5}{5!}-frac{x^7}{7!}+cdots
$$
For any given $x$, the factorial $n!$ eventually grows much faster than the power $x^n$, so the series will converge.
A Taylor series is an expression like the above (we do allow even degree terms, it's just that $sin$ happens to not have them), possibly with $x$ replaced by $(x-a)$ for some real number $a$. We say that such a Taylor series is centered around $a$. The above series for $sin$ is centered at $0$.
In general, in order to have a Taylor series, a function must be infinitely differentiable. And even then, there is no guarantee that the Taylor series converges, or that it converges to the function it is derived from. And even if it does, the series may not converge everywhere.
A function which for each point $a$ in its domain has a Taylor series centered at $a$ which converges on some open neighborhood of $a$ is called analytic. Many (most?) named functions that one learn about in school are analytic. Trigonometric functions like $sin$ are analytic, as are polynomials, $sqrt{phantom x}$, $e^x$, and rational functions, to name a few.
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
I have heard that there are ways of making your approach work, but I don't know anything about it personally.
The standard approach would be Taylor series. The idea of Taylor series is to make an "infinite degree" polynomial for which the function value and all derivatives agree with those of your function.
Specifically, for $sin$, we have
$$
sin(x)=x-frac{x^3}{3!}+frac{x^5}{5!}-frac{x^7}{7!}+cdots
$$
For any given $x$, the factorial $n!$ eventually grows much faster than the power $x^n$, so the series will converge.
A Taylor series is an expression like the above (we do allow even degree terms, it's just that $sin$ happens to not have them), possibly with $x$ replaced by $(x-a)$ for some real number $a$. We say that such a Taylor series is centered around $a$. The above series for $sin$ is centered at $0$.
In general, in order to have a Taylor series, a function must be infinitely differentiable. And even then, there is no guarantee that the Taylor series converges, or that it converges to the function it is derived from. And even if it does, the series may not converge everywhere.
A function which for each point $a$ in its domain has a Taylor series centered at $a$ which converges on some open neighborhood of $a$ is called analytic. Many (most?) named functions that one learn about in school are analytic. Trigonometric functions like $sin$ are analytic, as are polynomials, $sqrt{phantom x}$, $e^x$, and rational functions, to name a few.
I have heard that there are ways of making your approach work, but I don't know anything about it personally.
The standard approach would be Taylor series. The idea of Taylor series is to make an "infinite degree" polynomial for which the function value and all derivatives agree with those of your function.
Specifically, for $sin$, we have
$$
sin(x)=x-frac{x^3}{3!}+frac{x^5}{5!}-frac{x^7}{7!}+cdots
$$
For any given $x$, the factorial $n!$ eventually grows much faster than the power $x^n$, so the series will converge.
A Taylor series is an expression like the above (we do allow even degree terms, it's just that $sin$ happens to not have them), possibly with $x$ replaced by $(x-a)$ for some real number $a$. We say that such a Taylor series is centered around $a$. The above series for $sin$ is centered at $0$.
In general, in order to have a Taylor series, a function must be infinitely differentiable. And even then, there is no guarantee that the Taylor series converges, or that it converges to the function it is derived from. And even if it does, the series may not converge everywhere.
A function which for each point $a$ in its domain has a Taylor series centered at $a$ which converges on some open neighborhood of $a$ is called analytic. Many (most?) named functions that one learn about in school are analytic. Trigonometric functions like $sin$ are analytic, as are polynomials, $sqrt{phantom x}$, $e^x$, and rational functions, to name a few.
edited Nov 26 at 23:27
answered Nov 26 at 23:18
Arthur
110k7104186
110k7104186
add a comment |
add a comment |
up vote
1
down vote
Another answer has mentioned the infinite sum Taylor series for sine. Here is the infinite product Weierstrass factorization for sine:
$$ sin(x) = x left(1 - left(frac{x}{pi}right)^2 right)
left(1 - left(frac{x}{2pi}right)^2 right)
left(1 - left(frac{x}{3pi}right)^2 right) cdots. $$
There is a similar factorization for cosine.
add a comment |
up vote
1
down vote
Another answer has mentioned the infinite sum Taylor series for sine. Here is the infinite product Weierstrass factorization for sine:
$$ sin(x) = x left(1 - left(frac{x}{pi}right)^2 right)
left(1 - left(frac{x}{2pi}right)^2 right)
left(1 - left(frac{x}{3pi}right)^2 right) cdots. $$
There is a similar factorization for cosine.
add a comment |
up vote
1
down vote
up vote
1
down vote
Another answer has mentioned the infinite sum Taylor series for sine. Here is the infinite product Weierstrass factorization for sine:
$$ sin(x) = x left(1 - left(frac{x}{pi}right)^2 right)
left(1 - left(frac{x}{2pi}right)^2 right)
left(1 - left(frac{x}{3pi}right)^2 right) cdots. $$
There is a similar factorization for cosine.
Another answer has mentioned the infinite sum Taylor series for sine. Here is the infinite product Weierstrass factorization for sine:
$$ sin(x) = x left(1 - left(frac{x}{pi}right)^2 right)
left(1 - left(frac{x}{2pi}right)^2 right)
left(1 - left(frac{x}{3pi}right)^2 right) cdots. $$
There is a similar factorization for cosine.
answered Nov 27 at 1:56
Somos
12.8k11034
12.8k11034
add a comment |
add a comment |
up vote
0
down vote
You already received good answers to the question.
In this area, we can do other things which are amazing. If you look here, being myself fascinated by the approximation $$sin(x) simeq frac{16 (pi -x) x}{5 pi ^2-4 (pi -x) x}qquad (0leq xleqpi)$$ which wasproposed, more than $1400$ years ago by Mahabhaskariya of Bhaskara I (a seventh-century Indian mathematician), I wrote
$$sin(x)=sum_{k=1}^n a_k [(pi-x)x]^k$$ which respects the value of $0$ at $x=0$ and $x=pi$. The first coefficients are
$$left(
begin{array}{cc}
k & a_k \
1 & frac{1}{pi } \
2 & frac{1}{pi ^3} \
3 & frac{12-pi ^2}{6 pi ^5} \
4 & frac{10-pi ^2}{2 pi ^7} \
5 & frac{1680-180 pi ^2+pi ^4}{120 pi ^9} \
6 & frac{1008-112 pi ^2+pi ^4}{24 pi ^{11}} \
7 & frac{665280-75600 pi ^2+840 pi ^4-pi ^6}{5040 pi ^{13}} \
8 & frac{308880-35640 pi ^2+450 pi ^4-pi ^6}{720 pi ^{15}}
end{array}
right)$$ The maximum error is at $x=frac pi 2$; for example, using $n=8$, the error is just $4.99 times 10^{-13}$.
add a comment |
up vote
0
down vote
You already received good answers to the question.
In this area, we can do other things which are amazing. If you look here, being myself fascinated by the approximation $$sin(x) simeq frac{16 (pi -x) x}{5 pi ^2-4 (pi -x) x}qquad (0leq xleqpi)$$ which wasproposed, more than $1400$ years ago by Mahabhaskariya of Bhaskara I (a seventh-century Indian mathematician), I wrote
$$sin(x)=sum_{k=1}^n a_k [(pi-x)x]^k$$ which respects the value of $0$ at $x=0$ and $x=pi$. The first coefficients are
$$left(
begin{array}{cc}
k & a_k \
1 & frac{1}{pi } \
2 & frac{1}{pi ^3} \
3 & frac{12-pi ^2}{6 pi ^5} \
4 & frac{10-pi ^2}{2 pi ^7} \
5 & frac{1680-180 pi ^2+pi ^4}{120 pi ^9} \
6 & frac{1008-112 pi ^2+pi ^4}{24 pi ^{11}} \
7 & frac{665280-75600 pi ^2+840 pi ^4-pi ^6}{5040 pi ^{13}} \
8 & frac{308880-35640 pi ^2+450 pi ^4-pi ^6}{720 pi ^{15}}
end{array}
right)$$ The maximum error is at $x=frac pi 2$; for example, using $n=8$, the error is just $4.99 times 10^{-13}$.
add a comment |
up vote
0
down vote
up vote
0
down vote
You already received good answers to the question.
In this area, we can do other things which are amazing. If you look here, being myself fascinated by the approximation $$sin(x) simeq frac{16 (pi -x) x}{5 pi ^2-4 (pi -x) x}qquad (0leq xleqpi)$$ which wasproposed, more than $1400$ years ago by Mahabhaskariya of Bhaskara I (a seventh-century Indian mathematician), I wrote
$$sin(x)=sum_{k=1}^n a_k [(pi-x)x]^k$$ which respects the value of $0$ at $x=0$ and $x=pi$. The first coefficients are
$$left(
begin{array}{cc}
k & a_k \
1 & frac{1}{pi } \
2 & frac{1}{pi ^3} \
3 & frac{12-pi ^2}{6 pi ^5} \
4 & frac{10-pi ^2}{2 pi ^7} \
5 & frac{1680-180 pi ^2+pi ^4}{120 pi ^9} \
6 & frac{1008-112 pi ^2+pi ^4}{24 pi ^{11}} \
7 & frac{665280-75600 pi ^2+840 pi ^4-pi ^6}{5040 pi ^{13}} \
8 & frac{308880-35640 pi ^2+450 pi ^4-pi ^6}{720 pi ^{15}}
end{array}
right)$$ The maximum error is at $x=frac pi 2$; for example, using $n=8$, the error is just $4.99 times 10^{-13}$.
You already received good answers to the question.
In this area, we can do other things which are amazing. If you look here, being myself fascinated by the approximation $$sin(x) simeq frac{16 (pi -x) x}{5 pi ^2-4 (pi -x) x}qquad (0leq xleqpi)$$ which wasproposed, more than $1400$ years ago by Mahabhaskariya of Bhaskara I (a seventh-century Indian mathematician), I wrote
$$sin(x)=sum_{k=1}^n a_k [(pi-x)x]^k$$ which respects the value of $0$ at $x=0$ and $x=pi$. The first coefficients are
$$left(
begin{array}{cc}
k & a_k \
1 & frac{1}{pi } \
2 & frac{1}{pi ^3} \
3 & frac{12-pi ^2}{6 pi ^5} \
4 & frac{10-pi ^2}{2 pi ^7} \
5 & frac{1680-180 pi ^2+pi ^4}{120 pi ^9} \
6 & frac{1008-112 pi ^2+pi ^4}{24 pi ^{11}} \
7 & frac{665280-75600 pi ^2+840 pi ^4-pi ^6}{5040 pi ^{13}} \
8 & frac{308880-35640 pi ^2+450 pi ^4-pi ^6}{720 pi ^{15}}
end{array}
right)$$ The maximum error is at $x=frac pi 2$; for example, using $n=8$, the error is just $4.99 times 10^{-13}$.
answered Nov 27 at 5:19
Claude Leibovici
118k1156131
118k1156131
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3015082%2fapproximation-of-trigonometric-functions-in-form-a-bx-cx2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
There is indeed a way. I would suggest looking at 3Blue1Brown's video on Taylor series (youtube.com/watch?v=3d6DsjIBzJ4) for the general idea and derivation. Taylor series require a little knowledge of calculus but they are probably the best way to approximate various functions by polynomials.
– Eevee Trainer
Nov 26 at 23:16