Definition Calculator

Evaluate expressions at a value of x, simplify indices and rearrange formulas step by step
Evaluate 3x^2 - 5x + 7 at x = -2
Simplify (2x^3 y^2)^3 / (4x^5 y)
Solve y = (2x - 1)/(x + 3) for x
Evaluate 16^(3/4) * 27^(-1/3)

Evaluating an Expression at a Value of x

A definition here means the rule that assigns an output to an input: f(x)=3x25x+7f(x) = 3x^2 - 5x + 7 defines ff, and evaluating it means substituting a number for every occurrence of xx.

The procedure that never fails:

  1. Bracket the substitution. Write 3(2)23(-2)^2, never 3223-2^2. Almost every sign error on this topic comes from an unbracketed negative.
  2. Apply the order of operations — brackets, indices, multiplication and division, then addition and subtraction.
  3. Keep the negative inside the power where the expression puts it: (2)2=4(-2)^2 = 4 but 22=4-2^2 = -4.

For a function of two variables, substitute both at once and treat the result as arithmetic.

The assumption people forget: a variable stands for the same number everywhere it appears in one expression. If xx appears three times, all three become 2-2 — you cannot substitute into some of them and leave the rest.

Index Laws and Rearranging

Indices (exponents) obey a short list of rules, all of which follow from repeated multiplication:

xaxb=xa+b,xaxb=xab,(xa)b=xabx^a x^b = x^{a+b}, \qquad \frac{x^a}{x^b} = x^{a-b}, \qquad (x^a)^b = x^{ab}

(xy)a=xaya,xa=1xa,x0=1 (x0)(xy)^a = x^a y^a, \qquad x^{-a} = \frac{1}{x^a}, \qquad x^{0} = 1\ (x \neq 0)

Fractional indices are roots: x1/n=xnx^{1/n} = \sqrt[n]{x}, so xm/n=(xn)mx^{m/n} = \left(\sqrt[n]{x}\right)^m. Take the root first and the arithmetic stays small — 163/4=(164)3=23=816^{3/4} = (\sqrt[4]{16})^3 = 2^3 = 8.

To solve in terms of xx, collect every xx term on one side, factor xx out, then divide:

ax+bx=c  x(a+b)=c  x=ca+bax + bx = c \ \Longrightarrow\ x(a+b) = c \ \Longrightarrow\ x = \frac{c}{a+b}

When it applies: the division step needs a+b0a + b \neq 0, and clearing a denominator needs that denominator to be non-zero — state the restriction alongside the answer.

Common Mistakes to Avoid

  • Losing a bracket on a negative substitution(2)2=4(-2)^2 = 4, while 22=4-2^2 = -4. They are different expressions.
  • Adding indices when multiplying bases23×332^3 \times 3^3 is not 666^6. The law xaxb=xa+bx^ax^b = x^{a+b} needs the same base.
  • Reading x2x^{-2} as a negative number — it is a reciprocal, 1/x21/x^2, and it is positive whenever xx is real and non-zero.
  • Cancelling across a sum — in (x+3)/(x+6)(x+3)/(x+6) nothing cancels. Only common factors cancel.
  • Forgetting x0=1x^0 = 1 — including when the base is a whole bracketed expression.
  • Dividing by something that could be zero when rearranging — carry the restriction, such as y2y \neq 2, into the final answer.

Examples

Step 1: Substitute with brackets: f(2)=3(2)25(2)+7f(-2) = 3(-2)^2 - 5(-2) + 7
Step 2: Indices first: (2)2=4(-2)^2 = 4, so 3(4)=123(4) = 12
Step 3: Second term: 5(2)=+10-5(-2) = +10
Step 4: f(2)=12+10+7f(-2) = 12 + 10 + 7
Answer: f(2)=29f(-2) = 29

Step 1: Expand the numerator with (xy)a=xaya(xy)^a = x^ay^a and (xa)b=xab(x^a)^b = x^{ab}: (2x3y2)3=23x9y6=8x9y6(2x^3y^2)^3 = 2^3 x^{9} y^{6} = 8x^9y^6
Step 2: Divide the coefficients: 8÷4=28 \div 4 = 2
Step 3: Subtract the indices of xx: x95=x4x^{9-5} = x^{4}
Step 4: Subtract the indices of yy: y61=y5y^{6-1} = y^{5}
Answer: 2x4y52x^4y^5 (valid for x0x \neq 0, y0y \neq 0)

Step 1: Multiply both sides by (x+3)(x+3), assuming x3x \neq -3: y(x+3)=2x1y(x+3) = 2x - 1
Step 2: Expand: yx+3y=2x1yx + 3y = 2x - 1
Step 3: Collect the xx terms on one side: yx2x=13yyx - 2x = -1 - 3y
Step 4: Factor out xx: x(y2)=(1+3y)x(y - 2) = -(1 + 3y)
Step 5: Divide by (y2)(y-2), which requires y2y \neq 2: x=(1+3y)y2=1+3y2yx = \dfrac{-(1+3y)}{y-2} = \dfrac{1+3y}{2-y}
Step 6: Check with x=1x = 1: y=(21)/(1+3)=0.25y = (2-1)/(1+3) = 0.25, and (1+0.75)/(20.25)=1.75/1.75=1(1 + 0.75)/(2 - 0.25) = 1.75/1.75 = 1
Answer: x=1+3y2yx = \dfrac{1+3y}{2-y}, for y2y \neq 2

Frequently Asked Questions

Replace every x with the given value, in brackets, then follow the order of operations: brackets, indices, multiplication and division, addition and subtraction. The brackets matter — 3(−2)² is 12, whereas 3−2² read carelessly gives −1.

For the same base: xᵃxᵇ = xᵃ⁺ᵇ, xᵃ/xᵇ = xᵃ⁻ᵇ, (xᵃ)ᵇ = xᵃᵇ, (xy)ᵃ = xᵃyᵃ, x⁻ᵃ = 1/xᵃ and x⁰ = 1 for x ≠ 0. A fractional index is a root: x^(m/n) is the nth root of x, raised to the power m.

Clear any denominators, expand the brackets, move every term containing x to one side and everything else to the other, factor x out of that side, then divide by the bracket. Note any value that would make your divisor zero and exclude it.

A negative exponent is a reciprocal: x⁻² = 1/x². A fractional exponent is a root: x^(1/3) is the cube root of x. Combining them, 27^(−1/3) = 1/∛27 = 1/3. Taking the root before the power keeps the numbers small.

Related Solvers

Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving