This browser is too old to run Achievable.

Update it, or open this page in a current version of Chrome, Safari, Firefox or Edge. On an iPhone or iPad, update iOS: every browser there runs on the version of Safari that comes with it.

Achievable logoAchievable logo
ASVAB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Word Knowledge
2. Mathematics Knowledge
2.1 Foundational math
2.2 Pre-algebra
2.3 Algebra I
2.4 Geometry basics
2.5 Algebra II
2.5.1 FOIL and multiplying polynomials
2.5.2 Systems of equations
2.5.3 Functions, complex numbers, and consecutive integers
2.5.4 Mean, median, mode, range, and factorials
2.6 Advanced geometry
2.7 Math strategies
3. Paragraph Comprehension
4. Arithmetic Reasoning
5. General Science
6. Mechanical Comprehension
7. Electronics Information
8. Shop Information
9. Auto Information
10. Assembling Objects
Wrapping up
Achievable logoAchievable logo
2.5.3 Functions, complex numbers, and consecutive integers
Achievable ASVAB
2. Mathematics Knowledge
2.5. Algebra II

Functions, complex numbers, and consecutive integers

5 min read
Font
Discuss
Share
Feedback

Functions

Definitions
Function
A rule that assigns exactly one output to each input.

A function describes a relationship between an input value and an output value. One way to picture it is like a machine: you put in an x-value, and you get out a y-value.

Most of the time, functions are written like this:

f(x)=expression

Here:

  • f is the name of the function
  • x is the input
  • f(x) is the output (often the same value you’d call y)

Example:

We have the function f(x)=x3+4x.

To find f(2), replace every x with 2 and simplify.

f(x)f(2)f(2)f(2)​=x3+4x=(2)3+4(2)=8+8=16​

So the input was 2 and the output was 16. You can also write this as x=2 and y=16, or as the coordinate pair (2,16).

Steps taken:

  • Substitute 2 for x
  • Simplify

Imaginary and complex numbers

Definitions
Imaginary number
A number whose square is negative; it is not found on the real number line
Complex number
A number that can be written as a+bi, where a and b are real numbers (either part may be 0).

The imaginary unit, written as i, is defined as −1​. No real number multiplied by itself gives a negative result, so i is not a real number.

For instance, 1⋅1=1 and −1⋅−1=1. So no real number times itself will ever be negative.

Even though i is imaginary, it is useful because it allows us to rewrite negative square roots.

−16​​=16​⋅−1​=4⋅i=4i​

A complex number is written in the form a+bi, where a is the real part and bi is the imaginary part.

For example:

  • 4i can be written as 0+4i
  • 19 can be written as 19+0i

This means all real numbers can also be written as complex numbers.

Example:

Write each number in a+bi form:

  • −7

  • 3i

  • −7=−7+0i

  • 3i=0+3i

Steps taken:

  • Identify real and imaginary parts
  • Rewrite in a+bi form

Knowledge check:

Which of the following is written in the form a+bi?

7+2i

5i

−3

(spoiler)

All of them.

Any real number can be written as a+0i, and any imaginary number can be written as 0+bi.

Adding and subtracting complex numbers

To add or subtract complex numbers, treat i like a variable and combine like terms. Let’s walk through an example step-by-step!

Example:

(10+3i)−(−7+i)

Step 1: Distribute the negative.

10+3i+7−i

Step 2: Combine like terms.

10+73i−i​=17=2i​

Step 3: Write the final answer in a+bi form.

17+2i

Knowledge check:

(6+2i)+(3−i)

(spoiler)

9+i

Multiplying complex numbers

When multiplying complex numbers, use the fact that i2=−1.

Starting from i=−1​:

ii2i2​=−1​=(−1​)2=−1​

Let’s walk through an example step-by-step.

Example:

(2−5i)(7+4i)

Step 1: FOIL and combine like terms.

​(2)(7)+(2)(4i)+(−5i)(7)+(−5i)(4i)=14+8i−35i−20i2=14−27i−20i2​

Step 2: Replace i2 with −1.

​14−27i−20i2=14−27i−20(−1)=14−27i+20​

Note: replacing i2 with −1 turns −20i2 into −20×(−1)=+20. Forgetting that the sign flips here is the step students most often get wrong.

Step 3: Combine like terms and write in a+bi form.

34−27i

Knowledge check: What is

(3+6i)(2−4i)?

(spoiler)

30

(The imaginary parts cancel out, and i2=−1.)

Consecutive numbers

Definitions
Consecutive numbers
Terms that are next to each other on the number line

Consecutive numbers follow each other in order. We can represent unknown numbers using a variable so we can build an equation.

  • Consecutive integers starting at 7 are 7,8,9,10,11, etc.
  • Consecutive even integers could be 6,8,10,12, etc.
  • Consecutive odd integers could be 1,3,5,7, and so on.

For consecutive even or consecutive odd integers, add 2 each time: n,n+2,n+4,… (a common mistake is using n+1, which switches between odd and even).

Let’s take a look at an example question about consecutive numbers and solve it step-by-step.

Example:

What is the last number in a set of four consecutive integers that sum to 22?

Let’s start by setting up an equation. Each consecutive integer increases by 1, so let the first number be n.

The next numbers are:

n+1,n+2,n+3

We know their sum is 22, so we write:

n+(n+1)+(n+2)+(n+3)=22

Simplify:

4n+6=22

4n=16

n=4

This means the four integers are:

4,5,6,7

The question asks for the last number, so the answer is:

7

Steps taken:

  • Let the first number be n
  • Write the next consecutive numbers (n+1,n+2,n+3)
  • Set up an equation using their sum
  • Solve for n
  • List all numbers and identify the final answer

Knowledge check:

What is the last number in a set of three consecutive integers that sum to 27?

(spoiler)

10

Functions

  • Rule assigning exactly one output per input, written f(x)=expression
  • f = function name, x = input, f(x) = output (same as y)
  • To evaluate, substitute the input value for every x and simplify

Imaginary and complex numbers

  • i=−1​; imaginary numbers aren’t on the real number line since no real number squared is negative
  • Complex number form: a+bi (either part can be 0), so all real and imaginary numbers fit this form
  • Negative square roots rewritten using i: e.g. −16​=4i

Adding/subtracting complex numbers

  • Treat i like a variable: distribute signs, then combine real parts and imaginary parts separately
  • Final answer expressed in a+bi form

Multiplying complex numbers

  • Use FOIL, then simplify with i2=−1
  • Key error to avoid: −20i2 becomes +20 (sign flips when replacing i2)
  • Combine like terms afterward into a+bi form

Consecutive numbers

  • Consecutive integers: n,n+1,n+2,…; consecutive even/odd integers: n,n+2,n+4,… (not +1, which alternates parity)
  • Strategy: assign n to first term, express others relative to it, build equation from given condition (e.g., sum), solve for n, then list all terms
  • Always check which specific term (first, last, etc.) the question asks for

Sign up for free to take 8 quiz questions on this topic

Previous
Next  | 2.5.4 Mean, median, mode, range, and factorials
All rights reserved ©2016 - 2026 Achievable, Inc.

Functions, complex numbers, and consecutive integers

Functions

Definitions
Function
A rule that assigns exactly one output to each input.

A function describes a relationship between an input value and an output value. One way to picture it is like a machine: you put in an x-value, and you get out a y-value.

Most of the time, functions are written like this:

f(x)=expression

Here:

  • f is the name of the function
  • x is the input
  • f(x) is the output (often the same value you’d call y)

Example:

We have the function f(x)=x3+4x.

To find f(2), replace every x with 2 and simplify.

f(x)f(2)f(2)f(2)​=x3+4x=(2)3+4(2)=8+8=16​

So the input was 2 and the output was 16. You can also write this as x=2 and y=16, or as the coordinate pair (2,16).

Steps taken:

  • Substitute 2 for x
  • Simplify

Imaginary and complex numbers

Definitions
Imaginary number
A number whose square is negative; it is not found on the real number line
Complex number
A number that can be written as a+bi, where a and b are real numbers (either part may be 0).

The imaginary unit, written as i, is defined as −1​. No real number multiplied by itself gives a negative result, so i is not a real number.

For instance, 1⋅1=1 and −1⋅−1=1. So no real number times itself will ever be negative.

Even though i is imaginary, it is useful because it allows us to rewrite negative square roots.

−16​​=16​⋅−1​=4⋅i=4i​

A complex number is written in the form a+bi, where a is the real part and bi is the imaginary part.

For example:

  • 4i can be written as 0+4i
  • 19 can be written as 19+0i

This means all real numbers can also be written as complex numbers.

Example:

Write each number in a+bi form:

  • −7

  • 3i

  • −7=−7+0i

  • 3i=0+3i

Steps taken:

  • Identify real and imaginary parts
  • Rewrite in a+bi form

Knowledge check:

Which of the following is written in the form a+bi?

7+2i

5i

−3

(spoiler)

All of them.

Any real number can be written as a+0i, and any imaginary number can be written as 0+bi.

Adding and subtracting complex numbers

To add or subtract complex numbers, treat i like a variable and combine like terms. Let’s walk through an example step-by-step!

Example:

(10+3i)−(−7+i)

Step 1: Distribute the negative.

10+3i+7−i

Step 2: Combine like terms.

10+73i−i​=17=2i​

Step 3: Write the final answer in a+bi form.

17+2i

Knowledge check:

(6+2i)+(3−i)

(spoiler)

9+i

Multiplying complex numbers

When multiplying complex numbers, use the fact that i2=−1.

Starting from i=−1​:

ii2i2​=−1​=(−1​)2=−1​

Let’s walk through an example step-by-step.

Example:

(2−5i)(7+4i)

Step 1: FOIL and combine like terms.

​(2)(7)+(2)(4i)+(−5i)(7)+(−5i)(4i)=14+8i−35i−20i2=14−27i−20i2​

Step 2: Replace i2 with −1.

​14−27i−20i2=14−27i−20(−1)=14−27i+20​

Note: replacing i2 with −1 turns −20i2 into −20×(−1)=+20. Forgetting that the sign flips here is the step students most often get wrong.

Step 3: Combine like terms and write in a+bi form.

34−27i

Knowledge check: What is

(3+6i)(2−4i)?

(spoiler)

30

(The imaginary parts cancel out, and i2=−1.)

Consecutive numbers

Definitions
Consecutive numbers
Terms that are next to each other on the number line

Consecutive numbers follow each other in order. We can represent unknown numbers using a variable so we can build an equation.

  • Consecutive integers starting at 7 are 7,8,9,10,11, etc.
  • Consecutive even integers could be 6,8,10,12, etc.
  • Consecutive odd integers could be 1,3,5,7, and so on.

For consecutive even or consecutive odd integers, add 2 each time: n,n+2,n+4,… (a common mistake is using n+1, which switches between odd and even).

Let’s take a look at an example question about consecutive numbers and solve it step-by-step.

Example:

What is the last number in a set of four consecutive integers that sum to 22?

Let’s start by setting up an equation. Each consecutive integer increases by 1, so let the first number be n.

The next numbers are:

n+1,n+2,n+3

We know their sum is 22, so we write:

n+(n+1)+(n+2)+(n+3)=22

Simplify:

4n+6=22

4n=16

n=4

This means the four integers are:

4,5,6,7

The question asks for the last number, so the answer is:

7

Steps taken:

  • Let the first number be n
  • Write the next consecutive numbers (n+1,n+2,n+3)
  • Set up an equation using their sum
  • Solve for n
  • List all numbers and identify the final answer

Knowledge check:

What is the last number in a set of three consecutive integers that sum to 27?

(spoiler)

10

Key points

Functions

  • Rule assigning exactly one output per input, written f(x)=expression
  • f = function name, x = input, f(x) = output (same as y)
  • To evaluate, substitute the input value for every x and simplify

Imaginary and complex numbers

  • i=−1​; imaginary numbers aren’t on the real number line since no real number squared is negative
  • Complex number form: a+bi (either part can be 0), so all real and imaginary numbers fit this form
  • Negative square roots rewritten using i: e.g. −16​=4i

Adding/subtracting complex numbers

  • Treat i like a variable: distribute signs, then combine real parts and imaginary parts separately
  • Final answer expressed in a+bi form

Multiplying complex numbers

  • Use FOIL, then simplify with i2=−1
  • Key error to avoid: −20i2 becomes +20 (sign flips when replacing i2)
  • Combine like terms afterward into a+bi form

Consecutive numbers

  • Consecutive integers: n,n+1,n+2,…; consecutive even/odd integers: n,n+2,n+4,… (not +1, which alternates parity)
  • Strategy: assign n to first term, express others relative to it, build equation from given condition (e.g., sum), solve for n, then list all terms
  • Always check which specific term (first, last, etc.) the question asks for

More from Algebra II

  • FOIL and multiplying polynomials
  • Systems of equations
  • Mean, median, mode, range, and factorials