Difference between revisions of "Invert Command"

From GeoGebra Manual
Jump to: navigation, search
(→‎CAS Syntax: modified math visualization as in CAS View)
Line 19: Line 19:
 
:{{example|1=<div><code><nowiki>Invert[{{a, b}, {c, d}}]</nowiki></code> yields <math>
 
:{{example|1=<div><code><nowiki>Invert[{{a, b}, {c, d}}]</nowiki></code> yields <math>
 
\begin{pmatrix}
 
\begin{pmatrix}
\frac{d}{a* d- b* c} & \frac{-b}{a* d- b* c}\\
+
\frac{d}{ad- bc} & \frac{-b}{ad- bc}\\
\frac{-c}{a* d- b* c}& \frac{a}{ a* d- b* c}
+
\frac{-c}{ad- bc}& \frac{a}{ ad- bc}
 
\end{pmatrix}
 
\end{pmatrix}
 
</math>, the inverse matrix of <math>
 
</math>, the inverse matrix of <math>

Revision as of 09:36, 18 September 2012


Invert[ <Matrix> ]
Inverts the given matrix.
Example:
Invert[{{1, 2}, {3, 4}}] yields

\begin{pmatrix} -2 & 1\\ 1.5 & -0.5 \end{pmatrix} , the inverse matrix of

\begin{pmatrix} 1 & 2\\ 3 & 4 \end{pmatrix}

.

CAS Syntax

Invert[ <Matrix> ]
Inverts the given matrix.
Example:
Invert[{{a, b}, {c, d}}] yields

\begin{pmatrix} \frac{d}{ad- bc} & \frac{-b}{ad- bc}\\ \frac{-c}{ad- bc}& \frac{a}{ ad- bc} \end{pmatrix} , the inverse matrix of

\begin{pmatrix} a & b\\ c & d \end{pmatrix}

.
Invert[ <Function> ]
Gives the inverse of the function.
Note:
The function must contain just one x and no account is taken of domain or range, for example for f(x)=x^2 or f(x) = sin(x). If there is more than one x in the function another command might help you:
Example:
Both Invert[PartialFractions[(x + 1) / (x + 2)]] and Invert[CompleteSquare[x^2 + 2 x + 1]] yield the inverse functions.
© 2024 International GeoGebra Institute