Difference between revisions of "Derivative Command"
From GeoGebra Manual
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> ] |
− | :{{ | + | :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> ] |
− | :{{ | + | :Returns the derivative of the curve. |
− | + | :{{note|It only works for parametric curves.}} | |
− | {{ | + | ;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> ] | |
− | : {{ | + | :Returns the ''n''<sup>th</sup> derivative of ''f'' with respect to ''a''. |
− | :* <code>Derivative[x^2]</code> | + | :{{example|1=<div> |
− | :* <code>Derivative[f(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><nowiki>Derivative[f(x)]</nowiki></code> yields ''3 a x<sup>2</sup>''. |
− | :* <code>Derivative[f(x), x, 2] | + | :* <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 asf(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.