Substitute Command

From GeoGebra Manual
Revision as of 20:33, 21 July 2013 by Murkle (talk | contribs) (add Substitute[(x^2/(4x+6))^2+6(x^2/(4x+6))+8,x^2,a*(4x+6)] example)
Jump to: navigation, search



CAS Syntax

Substitute[ <Expression>, <from>, <to> ]
Substitutes from in expression with to.
Example:
Substitute[(x^2 / (4x + 6))^2 + 6(x^2/(4x+6)) + 8, x^2, a*(4x + 6)] yields a2 + 6 a + 8.
Example:
Substitute[(3 m - 3)^2 - (m + 3)^2, m, a] yields 8 a2 - 24 a.
Substitute[ <Expression>, <Substitution List> ]
Substitutes in expression every variable of the list with the variable or number you choose for it.
Example:
Substitute[2x + 3y - z, {x=a, y=2, z=b}] yields 2a - b + 6.


a² + 6a + 8

© 2024 International GeoGebra Institute