Difference between revisions of "Derivative Command"
From GeoGebra Manual
Line 7: | Line 7: | ||
;Derivative[ <Curve> ] | ;Derivative[ <Curve> ] | ||
:Returns the derivative of the curve. | :Returns the derivative of the curve. | ||
− | :{{note|It only works for parametric curves.}} | + | :{{note| 1=It only works for parametric curves.}} |
;Derivative[ <Curve>, <Number n> ] | ;Derivative[ <Curve>, <Number n> ] | ||
:Returns the ''n''<sup>th</sup> derivative of the curve. | :Returns the ''n''<sup>th</sup> derivative of the curve. | ||
− | :{{note|It only works for parametric curves.}} | + | :{{note| 1=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.}} | {{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[ | + | ;Derivative[ <Expression f> ] |
:Returns derivative of ''f'' with respect to ''x''. | :Returns derivative of ''f'' with respect to ''x''. | ||
:{{example|1=<div><code><nowiki>Derivative[x^2]</nowiki></code> yields ''2 x''.</div>}} | :{{example|1=<div><code><nowiki>Derivative[x^2]</nowiki></code> yields ''2 x''.</div>}} | ||
:{{example| 1=<div><code><nowiki>Derivative[a x^3]</nowiki></code> yields ''3 a x<sup>2</sup>''.</div>}} | :{{example| 1=<div><code><nowiki>Derivative[a x^3]</nowiki></code> yields ''3 a x<sup>2</sup>''.</div>}} | ||
− | ;Derivative[ | + | ;Derivative[ <Expression f>, <Variable a> ] |
:Returns derivative of ''f'' with respect to ''a''. | :Returns derivative of ''f'' with respect to ''a''. | ||
:{{example| 1=<div><code><nowiki>Derivative[a x^3, a]</nowiki></code> yields ''x<sup>3</sup>''.</div>}} | :{{example| 1=<div><code><nowiki>Derivative[a x^3, a]</nowiki></code> yields ''x<sup>3</sup>''.</div>}} | ||
− | ;Derivative[ | + | ;Derivative[ <Expression f>, <Variable a>, <Number n> ] |
:Returns the ''n''<sup>th</sup> derivative of ''f'' with respect to ''a''. | :Returns the ''n''<sup>th</sup> derivative of ''f'' with respect to ''a''. | ||
:{{example| 1=<div><code><nowiki>Derivative[a x^3, x, 2]</nowiki></code> yields ''6 a x''.</div>}} | :{{example| 1=<div><code><nowiki>Derivative[a x^3, x, 2]</nowiki></code> yields ''6 a x''.</div>}} |
Revision as of 12:49, 8 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[ <Expression f> ]
- Returns derivative of f with respect to x.
- Example:
Derivative[x^2]
yields 2 x.
- Example:
Derivative[a x^3]
yields 3 a x2.
- Derivative[ <Expression f>, <Variable a> ]
- Returns derivative of f with respect to a.
- Example:
Derivative[a x^3, a]
yields x3.
- Derivative[ <Expression f>, <Variable a>, <Number n> ]
- Returns the nth derivative of f with respect to a.
- Example:
Derivative[a x^3, x, 2]
yields 6 a x.