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
Our ASVAB course is currently in development and is a work-in-progress.

Functions, complex numbers, and consecutive integers

5 min read
Font
Discuss
Share
Feedback

Functions

Definitions
Functions
A method of writing equations with an input and an output

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 includes both a real and an imaginary number

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

Steps taken:

  • Distribute negative
  • Combine like terms
  • Write in a+bi form

Knowledge check:

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

(spoiler)

9+i

Multiplying and dividing complex numbers

When multiplying and dividing complex numbers, it helps to 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​

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

34−27i

Steps taken:

  • FOIL
  • Combine like terms
  • Substitute i2=−1
  • Simplify

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.

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

  • Function form: f(x)=expression, where x is input, f(x) is output
  • Evaluate by substituting given value for x, then simplifying
  • Output can be written as y-value or coordinate pair (x,f(x))

Imaginary and complex numbers

  • i=−1​; imaginary numbers have negative squares, not on real number line
  • Complex number form: a+bi (a = real part, b = imaginary coefficient)
  • All real numbers (a+0i) and all imaginary numbers (0+bi) are special cases of complex numbers
  • Rewrite negative square roots: −16​=16​⋅−1​=4i

Adding and subtracting complex numbers

  • Treat i as a variable; combine like terms (real with real, imaginary with imaginary)
  • Distribute negative signs before combining
  • Express final answer in a+bi form

Multiplying and dividing complex numbers

  • Key identity: i2=−1
  • Multiply using FOIL, then substitute i2=−1 and simplify
  • Combine like terms to express result in a+bi form

Consecutive numbers

  • Consecutive integers increase by 1 (e.g., n,n+1,n+2,n+3)
  • Consecutive even/odd integers increase by 2
  • Strategy: assign variable to first term, express others relative to it, set up sum equation, solve for n, then list/identify needed term

Sign up for free to take 5 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
Functions
A method of writing equations with an input and an output

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 includes both a real and an imaginary number

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

Steps taken:

  • Distribute negative
  • Combine like terms
  • Write in a+bi form

Knowledge check:

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

(spoiler)

9+i

Multiplying and dividing complex numbers

When multiplying and dividing complex numbers, it helps to 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​

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

34−27i

Steps taken:

  • FOIL
  • Combine like terms
  • Substitute i2=−1
  • Simplify

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.

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

  • Function form: f(x)=expression, where x is input, f(x) is output
  • Evaluate by substituting given value for x, then simplifying
  • Output can be written as y-value or coordinate pair (x,f(x))

Imaginary and complex numbers

  • i=−1​; imaginary numbers have negative squares, not on real number line
  • Complex number form: a+bi (a = real part, b = imaginary coefficient)
  • All real numbers (a+0i) and all imaginary numbers (0+bi) are special cases of complex numbers
  • Rewrite negative square roots: −16​=16​⋅−1​=4i

Adding and subtracting complex numbers

  • Treat i as a variable; combine like terms (real with real, imaginary with imaginary)
  • Distribute negative signs before combining
  • Express final answer in a+bi form

Multiplying and dividing complex numbers

  • Key identity: i2=−1
  • Multiply using FOIL, then substitute i2=−1 and simplify
  • Combine like terms to express result in a+bi form

Consecutive numbers

  • Consecutive integers increase by 1 (e.g., n,n+1,n+2,n+3)
  • Consecutive even/odd integers increase by 2
  • Strategy: assign variable to first term, express others relative to it, set up sum equation, solve for n, then list/identify needed term

More from Algebra II

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