maths.free › Algebra › Substituting values into expressions

Substituting values into expressions

Replacing each letter by its value, in brackets, and evaluating in the right order.

To substitute is to replace every occurrence of a variable by a number and then evaluate. The rule that prevents most errors is to put the value in brackets first: with \( x = -2 \), the term \( x^2 \) becomes \( (-2)^2 = 4 \), not \( -2^2 = -4 \). Then evaluate in the usual order: brackets, powers, multiplication and division, addition and subtraction.

The worked example puts \( x = 4 \) into \( 2x^2 - 3x + 1 \): \( 2 \cdot 4^2 - 3 \cdot 4 + 1 = 32 - 12 + 1 = 21 \). With several variables, every letter is replaced at the same moment, so \( 2a + 3b \) at \( a = 4, b = -1 \) is \( 8 - 3 = 5 \).

Picture it: substituting \( x = 4 \) is reading one point off the graph of the expression, the height of the curve above 4. Think it: substitution is how every formula is used (area from a radius, distance from a time) and how a solution is checked: put the answer back into the equation and both sides must agree.

Arbejdstxrd eksempel · 2x^2 - 3x + 1 where x = 4

Evaluate 2x^2 - 3x + 1

2 x^{2} - 3 x + 1 \quad \text{at}\ x = 4

Trin for trin

  1. 2 x^{2} - 3 x + 1

    Start from the expression.

  2. 1 - 3 \cdot 4 + 2 \cdot 4^{2}

    Substitute x = 4.

  3. 21

    Evaluate.

Afslør svaret
21

Nu er du Vælg et problem, eller skriv eller tegne din egen. Hvert skridt, et billede, svaret skjult, indtil du spørger.

Fortsæt med at arbejde

En gratis konto tilføjer noter om hver lektion, en rekord over, hvad du har afsluttet, dine løste problemer på ét sted, og en vejleder, du kan spørge om denne side. Matematik selv er åben for alle, logget på eller ej.

Tilmeld dig Login

Symboler brugt her

Tryk på ethvert symbol for den fulde definition, et billede, og hvad hvert bogstav i det betyder.

Hvordan: Substituting values into expressions

  1. Write the expression again with each variable replaced by its value in brackets.
  2. Work out powers first, then multiplication and division, then addition and subtraction.
  3. Watch the signs: a negative value squared is positive.
  4. To check a solution of an equation, substitute it into both sides and compare.

Spørgsmål folk spørger

Why do I need the brackets?

Because the power binds tighter than the minus sign. With x = -3, x^2 means (-3)^2 = 9, while -3^2 means -(3^2) = -9. The brackets keep the value together.

What does it mean to solve an equation?

To find every value of the unknown that makes both sides equal. Each step is an operation applied to both sides that keeps the solution set the same, until the unknown stands alone.

Why do I sometimes get two answers?

A quadratic can cross the axis twice, so it can have two solutions. A degree-n polynomial has up to n. The graph shows where each one comes from.

How do I know whether to factor or use the quadratic formula?

Try factoring for a few seconds: look for two numbers that multiply to a·c and add to b. If nothing obvious appears, the discriminant b² − 4ac tells you how many real roots there are, and the formula finds them without guessing.

Mere i Algebra