Dual Number for derivation of tangens to power of arbitrary number

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have recently stumbled across dual numbers and thought they may help me to solve a problem. What I ultimately want to do is root finding of a polynomial of an arbitrary degree. The polynomial is of form



$f(x) = sum_i=0^n k_i (g(x))^i$



where $g(x)$ can be just $x$ or a trigonometric function (including $tan(x)$) and $g(x)^i$ is the $g$ to the power of $i$ (rather than $g$ applied to itself $i$ times).



Currently I'm assuming $g(x)=x$ and use Newton's method which works fine, but obviously this won't work as easily with $g(x)=tan(x)$. Now I could use regula falsi to avoid having to calculate the derivative of $f$, but since I need two points $x_1$ and $x_2$ to start the algorithm with I have problem, because if my $x_2$ is too great then I end up with $f(x_1) <0$ and $f(x_2) < 0$.



Now come the dual numbers into play, because I have a rough estimate of where the root is, if it exists. I want to use them for Newton's method to calculate the root I'm looking for but I'm uncertain of how to actually apply this.



In my research so far I couldn't find how to "extend" my function $f$ to dual numbers in order to solve for both the value at $x$ and the derivative $x$. In a blog and a few other resources they "just use" the value of x and add $1epsilon$ (or at least that's how far my understanding of the texts goes).
Is this correct in my case, when using $g(x)=tan(x)$ and thus



$f(x) = sum_i=0^n k_i tan(x+1epsilon)^i$



? This just seems way to easy, but I have no feeling for this method yet.







share|cite|improve this question



















  • You are correct. It is that easy. In general, since $epsilon^2=0$, we have $f(x+epsilon) = f(x)+f'(x)epsilon.$ Or else, as you did, just substitute $x+epsilon$ for $x$.
    – Somos
    Aug 6 at 14:52















up vote
0
down vote

favorite












I have recently stumbled across dual numbers and thought they may help me to solve a problem. What I ultimately want to do is root finding of a polynomial of an arbitrary degree. The polynomial is of form



$f(x) = sum_i=0^n k_i (g(x))^i$



where $g(x)$ can be just $x$ or a trigonometric function (including $tan(x)$) and $g(x)^i$ is the $g$ to the power of $i$ (rather than $g$ applied to itself $i$ times).



Currently I'm assuming $g(x)=x$ and use Newton's method which works fine, but obviously this won't work as easily with $g(x)=tan(x)$. Now I could use regula falsi to avoid having to calculate the derivative of $f$, but since I need two points $x_1$ and $x_2$ to start the algorithm with I have problem, because if my $x_2$ is too great then I end up with $f(x_1) <0$ and $f(x_2) < 0$.



Now come the dual numbers into play, because I have a rough estimate of where the root is, if it exists. I want to use them for Newton's method to calculate the root I'm looking for but I'm uncertain of how to actually apply this.



In my research so far I couldn't find how to "extend" my function $f$ to dual numbers in order to solve for both the value at $x$ and the derivative $x$. In a blog and a few other resources they "just use" the value of x and add $1epsilon$ (or at least that's how far my understanding of the texts goes).
Is this correct in my case, when using $g(x)=tan(x)$ and thus



$f(x) = sum_i=0^n k_i tan(x+1epsilon)^i$



? This just seems way to easy, but I have no feeling for this method yet.







share|cite|improve this question



















  • You are correct. It is that easy. In general, since $epsilon^2=0$, we have $f(x+epsilon) = f(x)+f'(x)epsilon.$ Or else, as you did, just substitute $x+epsilon$ for $x$.
    – Somos
    Aug 6 at 14:52













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have recently stumbled across dual numbers and thought they may help me to solve a problem. What I ultimately want to do is root finding of a polynomial of an arbitrary degree. The polynomial is of form



$f(x) = sum_i=0^n k_i (g(x))^i$



where $g(x)$ can be just $x$ or a trigonometric function (including $tan(x)$) and $g(x)^i$ is the $g$ to the power of $i$ (rather than $g$ applied to itself $i$ times).



Currently I'm assuming $g(x)=x$ and use Newton's method which works fine, but obviously this won't work as easily with $g(x)=tan(x)$. Now I could use regula falsi to avoid having to calculate the derivative of $f$, but since I need two points $x_1$ and $x_2$ to start the algorithm with I have problem, because if my $x_2$ is too great then I end up with $f(x_1) <0$ and $f(x_2) < 0$.



Now come the dual numbers into play, because I have a rough estimate of where the root is, if it exists. I want to use them for Newton's method to calculate the root I'm looking for but I'm uncertain of how to actually apply this.



In my research so far I couldn't find how to "extend" my function $f$ to dual numbers in order to solve for both the value at $x$ and the derivative $x$. In a blog and a few other resources they "just use" the value of x and add $1epsilon$ (or at least that's how far my understanding of the texts goes).
Is this correct in my case, when using $g(x)=tan(x)$ and thus



$f(x) = sum_i=0^n k_i tan(x+1epsilon)^i$



? This just seems way to easy, but I have no feeling for this method yet.







share|cite|improve this question











I have recently stumbled across dual numbers and thought they may help me to solve a problem. What I ultimately want to do is root finding of a polynomial of an arbitrary degree. The polynomial is of form



$f(x) = sum_i=0^n k_i (g(x))^i$



where $g(x)$ can be just $x$ or a trigonometric function (including $tan(x)$) and $g(x)^i$ is the $g$ to the power of $i$ (rather than $g$ applied to itself $i$ times).



Currently I'm assuming $g(x)=x$ and use Newton's method which works fine, but obviously this won't work as easily with $g(x)=tan(x)$. Now I could use regula falsi to avoid having to calculate the derivative of $f$, but since I need two points $x_1$ and $x_2$ to start the algorithm with I have problem, because if my $x_2$ is too great then I end up with $f(x_1) <0$ and $f(x_2) < 0$.



Now come the dual numbers into play, because I have a rough estimate of where the root is, if it exists. I want to use them for Newton's method to calculate the root I'm looking for but I'm uncertain of how to actually apply this.



In my research so far I couldn't find how to "extend" my function $f$ to dual numbers in order to solve for both the value at $x$ and the derivative $x$. In a blog and a few other resources they "just use" the value of x and add $1epsilon$ (or at least that's how far my understanding of the texts goes).
Is this correct in my case, when using $g(x)=tan(x)$ and thus



$f(x) = sum_i=0^n k_i tan(x+1epsilon)^i$



? This just seems way to easy, but I have no feeling for this method yet.









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Aug 6 at 7:31









Tare

1011




1011











  • You are correct. It is that easy. In general, since $epsilon^2=0$, we have $f(x+epsilon) = f(x)+f'(x)epsilon.$ Or else, as you did, just substitute $x+epsilon$ for $x$.
    – Somos
    Aug 6 at 14:52

















  • You are correct. It is that easy. In general, since $epsilon^2=0$, we have $f(x+epsilon) = f(x)+f'(x)epsilon.$ Or else, as you did, just substitute $x+epsilon$ for $x$.
    – Somos
    Aug 6 at 14:52
















You are correct. It is that easy. In general, since $epsilon^2=0$, we have $f(x+epsilon) = f(x)+f'(x)epsilon.$ Or else, as you did, just substitute $x+epsilon$ for $x$.
– Somos
Aug 6 at 14:52





You are correct. It is that easy. In general, since $epsilon^2=0$, we have $f(x+epsilon) = f(x)+f'(x)epsilon.$ Or else, as you did, just substitute $x+epsilon$ for $x$.
– Somos
Aug 6 at 14:52
















active

oldest

votes











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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873664%2fdual-number-for-derivation-of-tangens-to-power-of-arbitrary-number%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873664%2fdual-number-for-derivation-of-tangens-to-power-of-arbitrary-number%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?