function - Maple Help

solve/functions

for a variable which is used as a function name

 Calling Sequence solve(eqn, fcnname)

Parameters

 eqn - single equation (as for solve) fcnname - single variable (as for solve)

Description

 • When the unknown is a name which is only used as a function in the equation, the solver constructs a function or procedure which solves the equation.

Examples

 > $\mathrm{solve}\left(f\left(x\right)-x+2,f\right)$
 ${x}{↦}{x}{-}{2}$ (1)

This is more or less equivalent to:

 > $\mathrm{solve}\left(f\left(x\right)-x+2,f\left(x\right)\right)$
 ${x}{-}{2}$ (2)
 > $\mathrm{unapply}\left(,x\right)$
 ${x}{↦}{x}{-}{2}$ (3)

This in turn is more or less equivalent to:

 > $\mathrm{solve}\left(y-x+2,y\right)$
 ${x}{-}{2}$ (4)
 > $\mathrm{unapply}\left(,x\right)$
 ${x}{↦}{x}{-}{2}$ (5)

More complicated inputs will generally return answers involving RootOfs

 > $\mathrm{solve}\left({f\left(x\right)}^{4}-{f\left(x\right)}^{3}+x+1,f\right)$
 ${x}{↦}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{4}}{-}{{\mathrm{_Z}}}^{{3}}{+}{x}{+}{1}\right)$ (6)