Difference between revisions of "Derivative Command"

From GeoGebra Manual
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|function}}
 
{{command|function}}
; Derivative[<Function>]: Returns the derivative of the function.  
+
;Derivative[ <Function> ]
; Derivative[<Function>, <Number n>]: Returns the ''n''<sup>th</sup> derivative of the function.
+
:Returns the derivative of the function.  
; Derivative[<Curve>]: Returns the derivative of the curve.  
+
;Derivative[ <Function>, <Number n> ]
:{{Note|It only works for parametric curves.}}
+
:Returns the ''n''<sup>th</sup> derivative of the function.
; Derivative[<Curve>, <Number n>]: Returns the ''n''<sup>th</sup> derivative of the curve.  
+
;Derivative[ <Curve> ]
:{{Note|It only works for parametric curves.}}
+
:Returns the derivative of the curve.  
 
+
:{{note|It only works for parametric curves.}}
{{Note| 1=You can use <code>f'(x)</code> instead of <code>Derivative[f]</code>, or <code>f<nowiki>''</nowiki>(x)</code> instead of <code>Derivative[f, 2]</code>, and so on.}}
+
;Derivative[ <Curve>, <Number n> ]
 
+
:Returns the ''n''<sup>th</sup> derivative of the curve.  
 +
:{{note|It only works for parametric curves.}}
 +
{{note| 1=You can use <code><nowiki>f'(x)</nowiki></code> instead of <code><nowiki>Derivative[f]</nowiki></code>, or <code><nowiki>f''(x)</nowiki></code> instead of <code><nowiki>Derivative[f, 2]</nowiki></code>, and so on.}}
 
==CAS Syntax==
 
==CAS Syntax==
 
In [[CAS View]] only following syntax is supported:
 
In [[CAS View]] only following syntax is supported:
 
+
;Derivative[ <Function f> or <Expression f> ]
; Derivative[<Function f> or <Expression f>]: Returns derivative of  ''f'' with respect to ''x''.
+
:Returns derivative of  ''f'' with respect to ''x''.
; Derivative[<Function f> or <Expression f>, <Variable a>]: Returns derivative of ''f'' with respect to ''a''.
+
;Derivative[ <Function f> or <Expression f>, <Variable a> ]
; Derivative[<Function f> or <Expression f>, <Variable a>, <Number n>]: Returns the ''n''<sup>th</sup> derivative of ''f'' with respect to ''a''.
+
:Returns derivative of ''f'' with respect to ''a''.
 
+
;Derivative[ <Function f> or <Expression f>, <Variable a>, <Number n> ]
: {{Example|1=&nbsp;
+
:Returns the ''n''<sup>th</sup> derivative of ''f'' with respect to ''a''.
:* <code>Derivative[x^2]</code> gives you "2x". <br />  <br /> Assuming you've declared ''f'' as <code>f(x):=a*x^3</code>
+
:{{example|1=<div>
:* <code>Derivative[f(x)];</code> gives you ''3a x²''.
+
:* <code><nowiki>Derivative[x^2]</nowiki></code> yields "2 x". <br />  <br /> Assuming you've declared ''f'' as <code>f(x):=a*x^3</code>
:* <code>Derivative[f(x), a];</code> gives you ''''.
+
:* <code><nowiki>Derivative[f(x)]</nowiki></code> yields ''3 a x<sup>2</sup>''.
:* <code>Derivative[f(x), x, 2];</code> gives you ''6a x''.}}
+
:* <code><nowiki>Derivative[f(x), a]</nowiki></code> yields ''x<sup>3</sup>''.
 +
:* <code><nowiki>Derivative[f(x), x, 2]</nowiki></code> yields ''6 a x''.</div>}}

Revision as of 14:07, 7 September 2011


Derivative[ <Function> ]
Returns the derivative of the function.
Derivative[ <Function>, <Number n> ]
Returns the nth derivative of the function.
Derivative[ <Curve> ]
Returns the derivative of the curve.
Note: It only works for parametric curves.
Derivative[ <Curve>, <Number n> ]
Returns the nth derivative of the curve.
Note: It only works for parametric curves.
Note: You can use f'(x) instead of Derivative[f], or f''(x) instead of Derivative[f, 2], and so on.

CAS Syntax

In CAS View only following syntax is supported:

Derivative[ <Function f> or <Expression f> ]
Returns derivative of f with respect to x.
Derivative[ <Function f> or <Expression f>, <Variable a> ]
Returns derivative of f with respect to a.
Derivative[ <Function f> or <Expression f>, <Variable a>, <Number n> ]
Returns the nth derivative of f with respect to a.
Example:
  • Derivative[x^2] yields "2 x".

    Assuming you've declared f as f(x):=a*x^3
  • Derivative[f(x)] yields 3 a x2.
  • Derivative[f(x), a] yields x3.
  • Derivative[f(x), x, 2] yields 6 a x.
© 2024 International GeoGebra Institute