Subtitute for a Variable - Definition & Examples

Before this, knowEquations with Variables on Both Sides - Examples

Video · + 1 min read

(Video) Substituting Numbers for a Variable

by Skarinsensei

Here's a video by Skarinsensei that shows you what to do when substituting a number into a variables place.

Summary\large{\text{Summary}}

You can substitute a variable for any given number, a constant. You can take an expression or equation, with a definition for a variable, and plug that definition in. Let's look at an example:

What is x−1x-1 when x=3x=3?

We're going to plug in 33 for xx, then calculate our answer. x−1=3−1=2\begin{align}x-1&=\\ {\color{#8925AE}{3}}-1&=2 \end{align}

Let's take a look at a harder example: x2+3x+2x^2+3x+2 What does this expression equal when we substitute in x=5x=5?

Start by plugging in 55 for every xx. x2+3x+2=(5)2+3(5)+2\begin{align} &x^2+3x+2\\ &=({\color{#8925AE}{5}})^2+3({\color{#8925AE}{5}})+2 \end{align}

Then, simplify! =52+3(5)+2=25+15+2=42\begin{align} &=5^2+3(5)+2\\ &=25+15+2\\ &=42 \end{align}

You may come across a situation when you need to use PEMDAS (order of operations) to solve the problem. In that case, first plug in the xx value, and then use PEMDAS to solve the equation or expression like normal.

You can also use this method when solving more complex equations, like equations with fractions or equations with decimals. You can also use this method to double check solved solutions.

Test Yourself: What is x+7x+7 when x=5x=5?

Choose one answer

Interactive · 1 question

Substitution is an essential part of solving equations for variables. Variables (like xx, yy, zz) are stand-ins for constants (−4-4, 23\frac{2}{3}, π\pi), plugging the constant back into the equation is a great way to check your work. This concept is also very important when you want to solve a system of equations!

Let's look at an example!

Solve for xx in the following equation: 3x−27=03x-27=0

Choose one answer

Interactive · 1 question

If we think back to the definition of variable, we know that it's a placeholder for numeric values. Generally, a variable can take on a range of values, unless otherwise specified.

Say we were given an algebraic equation, and we wanted to solve for one specific value. How would we do that?

Substitute
When $x=2$
Solve: $x+4$
>>>>
$2+4=6$

Image source: by Anusha Rahman

We can substitute a numeric value in for the variable, in this case xx, and solve as normal.

Let's do an example.

When x=3x=3, solve: 2x+52x+5.

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems