How Do CAS and Programmable Calculators Evaluate Derivatives?

  • Context: Undergrad 
  • Thread starter Thread starter matqkks
  • Start date Start date
  • Tags Tags
    Cas Derivatives
Click For Summary

Discussion Overview

The discussion revolves around how Computer Algebra Systems (CAS) and programmable calculators evaluate the derivative of a function, specifically focusing on symbolic evaluation methods.

Discussion Character

  • Exploratory
  • Technical explanation

Main Points Raised

  • One participant inquires whether CAS and programmable calculators use matrix representations of linear transformations for derivative evaluation.
  • Another participant suggests clarifying whether the evaluation is numerical or symbolic, and what form the result takes (formula, graph, or numerical table).
  • A participant clarifies that they are specifically interested in symbolic evaluation.
  • One hypothesis proposes that CAS may convert expressions into Taylor series, differentiate them, and then match the results to Taylor series representing elementary functions for substitution.
  • Another participant mentions that CAS stores information as directed graphs and provides an example using Mathematica's FullForm command to illustrate how expressions are represented and manipulated, including the application of derivative rules.

Areas of Agreement / Disagreement

Participants have not reached a consensus on the specific methods used by CAS for symbolic differentiation, and multiple hypotheses regarding the process are presented without resolution.

Contextual Notes

There are assumptions regarding the internal workings of CAS and the specific rules they apply, which remain unresolved. The discussion does not clarify the limitations of the proposed methods or the general applicability of the examples provided.

matqkks
Messages
283
Reaction score
6
How do CAS systems and programmable calculators evaluate the derivative of a function?
Do they use matrix representation of linear transformations?
 
Physics news on Phys.org
I don't know the answer, but you should specify whether you are asking how they evaluate derivatives numerically or how they evaluate them symbollically. Is the result of the evaluation a formula? Or a graph? Or a numerical table?
 
Sorry for being vague but I meant symbolically.
 
I suspect that they convert whatever expression you want to differentiate into taylor series, differentiate (in the obvious way), then match the result to a taylor series that represents an elementary function and substitute back. Maybe not, but I can't imagine how else it would be done.
 
From what I heard CAS stores the information as a directed graph. In Mathematica you can use the FullForm command to see it directly for example
[itex]\sin(x^2)+3[/itex]
would be
Plus[3,Sin[Power[x,2]]]
It then has rules for how to manipulate these objects. So the derivative operator D (I'm assuming wrt x) interacts with Plus via the rule
D[Plus[f,g]] = Plus[D[f],D[g]]
Mathematica knows that 3 is constant and so D[3]=0. It then reduces Plus[0,?] to just ?.
So we now have
D[Sin[Power[x,2]]]
It allies its chain rule and is programmed so that D[Sin] = Cos:
Multiply[Cos[Power[x,2]],D[Power[x,2]]]
And we know that the derivative of Power[x,2] as Multiply[2,x]
 

Similar threads

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