Solve
Solve
Solve[ equa, var ] solves an equation for a variable.
Usages
Solve[ equa, var ]
Solve[ equa, var ] solves an equation equa for a variable var. You commonly use it to instruct the student to solve an expression for a given variable.
| Example | in | rendered | reduced |
|---|---|---|---|
The solution for x when solving 2x + a = b. |
Solve[ 2x + a = b,x] |
2x+a=b |
Solution[{x=(b-a)/2},x] |
Solve[ equa, var, dom ]
Solve[ equa, var, dom ] solves an equation equa for a variable var, within a domain dom. You commonly use it to instruct the student to solve an expression for a given variable and given domain.
| Example | in | rendered | reduced |
|---|---|---|---|
The equation 1/y - 1/x=2 solved for y and y<>0. |
Solve[1/y - 1/x=2, y, y<>0] |
1/y - 1/x =2 |
Solution[{y=x/(1+2x)},y] |