Functions | Free AP Calculus AB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AP Calculus AB: Functions | The School of Mathematics</title>
<meta name="description" content="Review functions for AP Calculus AB with this free, complete lesson: domain and range, combining, composing, and inverting functions, odd and even functions, special functions, polynomial and rational functions, trigonometric functions, and exponential and logarithmic functions. Includes 22 free original practice problems with instant feedback and full step-by-step explanations.">
<style>
:root {
--blue: #4285f4;
--green: #34a853;
--red: #ea4335;
--gray-bg: #f8f9fa;
--border: #e0e0e0;
}
* { box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: #ffffff;
color: #202124;
line-height: 1.65;
margin: 0;
padding: 0;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 32px 20px 80px; }
h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 10px; }
h2 {
font-size: 1.5rem;
margin-top: 48px;
padding-top: 8px;
border-top: 2px solid var(--border);
}
h3 { font-size: 1.15rem; margin-bottom: 6px; }
.intro { font-size: 1.05rem; color: #3c4043; }
.cta-group {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin: 22px 0 32px;
}
.cta-btn {
flex: 1 1 220px;
text-align: center;
text-decoration: none;
font-weight: 700;
font-size: 1rem;
padding: 15px 18px;
border-radius: 10px;
}
.cta-primary { background: var(--blue); color: #fff; }
.cta-primary:hover { background: #3367d6; }
.cta-secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.cta-secondary:hover { background: #eef3fd; }
nav.toc {
background: var(--gray-bg);
border: 1px solid var(--border);
border-radius: 10px;
padding: 18px 22px;
margin-bottom: 36px;
}
nav.toc h2 { margin-top: 0; border-top: none; font-size: 1.1rem; }
nav.toc ol { margin: 0; padding-left: 22px; }
nav.toc a { color: var(--blue); text-decoration: none; }
nav.toc a:hover { text-decoration: underline; }
.note-box {
background: #fff8e1;
border-left: 4px solid #f9a825;
border-radius: 6px;
padding: 14px 18px;
margin: 18px 0;
font-size: 0.95rem;
}
table.ref {
width: 100%;
border-collapse: collapse;
margin: 18px 0 26px;
font-size: 0.95rem;
}
table.ref th, table.ref td {
border: 1px solid var(--border);
padding: 10px 12px;
text-align: left;
vertical-align: top;
}
table.ref th { background: var(--gray-bg); }
.example {
background: var(--gray-bg);
border-left: 4px solid var(--blue);
border-radius: 6px;
padding: 16px 20px;
margin: 18px 0;
}
.example p { margin: 6px 0; }
.step-math { font-family: "Cambria Math", Georgia, serif; }
.frac {
display: inline-flex;
flex-direction: column;
vertical-align: middle;
text-align: center;
font-size: 0.85em;
line-height: 1;
margin: 0 2px;
position: relative;
top: 0.1em;
}
.frac .num { border-bottom: 1.3px solid #202124; padding: 0 4px 1px; }
.frac .den { padding: 1px 4px 0; }
.problem {
border: 1px solid var(--border);
border-radius: 10px;
padding: 18px 22px 20px;
margin: 18px 0;
}
.problem .prompt { font-weight: 600; margin-bottom: 12px; }
.options { display: flex; flex-direction: column; gap: 8px; margin: 0 0 4px; }
.option-btn {
text-align: left;
padding: 10px 14px;
border: 1px solid #ccc;
border-radius: 6px;
background: #fff;
cursor: pointer;
font-size: 0.98rem;
font-family: inherit;
}
.option-btn:hover:not(:disabled) { background: #f1f3f4; }
.option-btn.correct { background: #e6f4ea; border-color: var(--green); font-weight: 600; }
.option-btn.incorrect { background: #fce8e6; border-color: var(--red); }
.option-btn:disabled { cursor: default; }
.explanation {
margin-top: 0;
padding: 0 16px;
background: var(--gray-bg);
border-left: 4px solid var(--blue);
border-radius: 4px;
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease, padding 0.35s ease;
}
.explanation.show {
max-height: 600px;
opacity: 1;
margin-top: 14px;
padding: 14px 16px;
}
.explanation p { margin: 6px 0; }
.explanation .label { font-weight: 700; }
.mistake-list li { margin-bottom: 10px; }
.faq-item { margin-bottom: 18px; }
.faq-item h3 { margin-bottom: 4px; }
footer.cta-final { margin-top: 56px; }
</style>
</head>
<body>
<div class="wrap">
<h1>AP Calculus AB: Functions</h1>
<p class="intro">
Before calculus can ask how fast something is changing, it needs a solid working vocabulary of functions themselves. This isn't material tested directly on the AP exam, but every derivative, limit, and integral you'll compute rests on it. This free, complete lesson reviews domain and range, combining, composing, and inverting functions, odd and even functions, special functions (absolute value and the greatest integer function), polynomial and rational functions, trigonometric functions, and exponential and logarithmic functions. Each idea is followed by a fully worked example, and then a set of original practice problems with instant feedback and full explanations. Everything here is free, and you can keep practicing afterward with the full AP Calculus AB Question Bank linked below.
</p>
<div class="cta-group">
<a class="cta-btn cta-primary" href="https://theschoolofmathematics.com/quiz/Functions-Quiz%201">Practice Functions Free</a>
<a class="cta-btn cta-secondary" href="https://theschoolofmathematics.com/quiz/course/AP-Calculus-AB-QBank">Explore the Full AP Calculus AB Qbank</a>
</div>
<nav class="toc" aria-label="Table of contents">
<h2>What's covered in this lesson</h2>
<ol>
<li><a href="#domain-range">Domain and Range</a></li>
<li><a href="#combining">Combining, Composing, and Inverting Functions</a></li>
<li><a href="#odd-even">Odd and Even Functions, Special Functions</a></li>
<li><a href="#poly-rational-trig">Polynomial, Rational, and Trigonometric Functions</a></li>
<li><a href="#exp-log">Exponential and Logarithmic Functions</a></li>
<li><a href="#mistakes">Common Mistakes to Avoid</a></li>
<li><a href="#faq">Frequently Asked Questions</a></li>
</ol>
</nav>
<!-- ============ SECTION A ============ -->
<h2 id="domain-range">1. Domain and Range</h2>
<p>A <strong>function</strong> f associates each element of a set called the <strong>domain</strong> with exactly one element of a set called the <strong>range</strong>, written f(a) = b. Geometrically, a vertical line crosses the graph of a function in at most one point. Two domain restrictions come up constantly: a denominator can never equal zero, and the expression under an even root can never be negative.</p>
<div class="example">
<p><strong>Worked Example:</strong> Find the domain of h(x) = <span class="frac"><span class="num">√(7 − x)</span><span class="den">x</span></span>.</p>
<p>The radicand must be non-negative: 7 − x ≥ 0, so x ≤ 7. The denominator can't be zero: x ≠ 0.</p>
<p class="step-math">Domain: x ≤ 7, x ≠ 0</p>
</div>
<div class="problem" id="pa-1">
<p class="prompt">1. Find the domain of f(x) = <span class="frac"><span class="num">6</span><span class="den">x − 4</span></span>.</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pa-1',true)">A) x ≠ 4</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-1',false)">B) x ≠ 6</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-1',false)">C) x ≠ −4</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-1',false)">D) All real numbers</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> The denominator cannot equal 0: x − 4 ≠ 0, so x ≠ 4.</p>
</div>
</div>
<div class="problem" id="pa-2">
<p class="prompt">2. Find the domain of g(x) = <span class="frac"><span class="num">x</span><span class="den">x² − 25</span></span>.</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pa-2',true)">A) x ≠ 5, −5</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-2',false)">B) x ≠ 25</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-2',false)">C) x ≠ 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-2',false)">D) All real numbers</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> x² − 25 ≠ 0, so x² ≠ 25, giving x ≠ 5 and x ≠ −5.</p>
</div>
</div>
<div class="problem" id="pa-3">
<p class="prompt">3. Find the domain of h(x) = <span class="frac"><span class="num">√(7 − x)</span><span class="den">x</span></span>.</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pa-3',true)">A) x ≤ 7, x ≠ 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-3',false)">B) x ≥ 7, x ≠ 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-3',false)">C) x ≤ 7</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-3',false)">D) x < 7</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> Need 7 − x ≥ 0 (so x ≤ 7) and x ≠ 0 (the denominator).</p>
</div>
</div>
<div class="problem" id="pa-4">
<p class="prompt">4. What is the range of f(x) = x² + 3 for all real x?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pa-4',true)">A) y ≥ 3</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-4',false)">B) y ≥ 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-4',false)">C) All real numbers</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pa-4',false)">D) y ≤ 3</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> Since x² ≥ 0 for all x, the minimum value of x² + 3 is 3, occurring at x = 0. Range: y ≥ 3.</p>
</div>
</div>
<!-- ============ SECTION B ============ -->
<h2 id="combining">2. Combining, Composing, and Inverting Functions</h2>
<p>Two functions can be added, subtracted, multiplied, or divided: (f + g)(x), (f − g)(x), (fg)(x), and (f/g)(x), the last defined wherever g(x) ≠ 0. The <strong>composition</strong> f(g(x)), read "f of g of x," replaces every x in f's formula with g(x); its domain is the set of x in g's domain for which g(x) lies in f's domain. In general, f(g(x)) ≠ g(f(x)). If f is one-to-one, it has an <strong>inverse</strong> f⁻¹, found by swapping x and y in y = f(x) and solving for the new y.</p>
<div class="example">
<p><strong>Worked Example:</strong> If f(x) = x² − 9x and g(x) = x + 2, find <span class="frac"><span class="num">g(x)</span><span class="den">f(x)</span></span> and its domain.</p>
<p class="step-math"><span class="frac"><span class="num">g(x)</span><span class="den">f(x)</span></span> = <span class="frac"><span class="num">x + 2</span><span class="den">x² − 9x</span></span> = <span class="frac"><span class="num">x + 2</span><span class="den">x(x − 9)</span></span></p>
<p>Domain: x ≠ 0, 9.</p>
</div>
<div class="problem" id="pb-1">
<p class="prompt">1. If f(x) = x² − 4x and g(x) = x + 3, find <span class="frac"><span class="num">f(x)</span><span class="den">g(x)</span></span> and its domain.</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pb-1',true)">A) <span class="frac"><span class="num">x² − 4x</span><span class="den">x + 3</span></span>, domain x ≠ −3</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-1',false)">B) <span class="frac"><span class="num">x + 3</span><span class="den">x² − 4x</span></span>, domain x ≠ −3</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-1',false)">C) x − 4, domain all reals</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-1',false)">D) <span class="frac"><span class="num">x² − 4x</span><span class="den">x + 3</span></span>, domain x ≠ 4</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> <span class="frac"><span class="num">f(x)</span><span class="den">g(x)</span></span> = <span class="frac"><span class="num">x² − 4x</span><span class="den">x + 3</span></span>, defined wherever the denominator isn't 0: x ≠ −3.</p>
</div>
</div>
<div class="problem" id="pb-2">
<p class="prompt">2. If f(x) = 3x − 2 and g(x) = x², does f(g(x)) = g(f(x))?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pb-2',true)">A) No, they are not equal in general</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-2',false)">B) Yes, they are always equal</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-2',false)">C) Only when x = 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-2',false)">D) Only when x = 1</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> f(g(x)) = 3x² − 2, while g(f(x)) = (3x − 2)² = 9x² − 12x + 4. These are different expressions, so composition is not commutative in general.</p>
</div>
</div>
<div class="problem" id="pb-3">
<p class="prompt">3. If f(x) = 2x² − 1 and g(x) = √x, find f(g(x)).</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pb-3',true)">A) 2x − 1 (x ≥ 0)</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-3',false)">B) √(2x − 1)</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-3',false)">C) 2x − 1</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-3',false)">D) √(2x² − 1)</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> f(g(x)) = f(√x) = 2(√x)² − 1 = 2x − 1, restricted to x ≥ 0 since that's the domain of g.</p>
</div>
</div>
<div class="problem" id="pb-4">
<p class="prompt">4. Find the inverse of the one-to-one function f(x) = x³ + 2.</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pb-4',true)">A) f⁻¹(x) = ∛(x − 2)</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-4',false)">B) f⁻¹(x) = ∛(x + 2)</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-4',false)">C) f⁻¹(x) = (x − 2)³</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-4',false)">D) f⁻¹(x) = ∛x − 2</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> Interchange x and y: x = y³ + 2. Solve for y: y³ = x − 2, so y = ∛(x − 2).</p>
</div>
</div>
<div class="problem" id="pb-5">
<p class="prompt">5. If f(x) = 4x − 7, find f⁻¹(x).</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pb-5',true)">A) f⁻¹(x) = <span class="frac"><span class="num">x + 7</span><span class="den">4</span></span></button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-5',false)">B) f⁻¹(x) = <span class="frac"><span class="num">x − 7</span><span class="den">4</span></span></button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-5',false)">C) f⁻¹(x) = 4x + 7</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pb-5',false)">D) f⁻¹(x) = <span class="frac"><span class="num">x + 4</span><span class="den">7</span></span></button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> Let y = 4x − 7. Swap: x = 4y − 7. Solve for y: 4y = x + 7, so y = <span class="frac"><span class="num">x + 7</span><span class="den">4</span></span>.</p>
</div>
</div>
<!-- ============ SECTION C ============ -->
<h2 id="odd-even">3. Odd and Even Functions, Special Functions</h2>
<p>A function f is <strong>odd</strong> if f(−x) = −f(x) for every x in its domain; its graph is symmetric about the origin. A function f is <strong>even</strong> if f(−x) = f(x); its graph is symmetric about the y-axis. Two special functions worth knowing: the <strong>absolute value function</strong> f(x) = |x|, and the <strong>greatest integer function</strong> g(x) = ⌊x⌋, which returns the greatest integer not greater than x.</p>
<div class="example">
<p><strong>Worked Example:</strong> Is f(x) = x⁴ − 3x² even, odd, or neither?</p>
<p class="step-math">f(−x) = (−x)⁴ − 3(−x)² = x⁴ − 3x² = f(x)</p>
<p>Since f(−x) = f(x), the function is even.</p>
</div>
<div class="problem" id="pc-1">
<p class="prompt">1. Is f(x) = x³ − 2x an even function, an odd function, or neither?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pc-1',true)">A) Odd</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-1',false)">B) Even</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-1',false)">C) Neither</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-1',false)">D) Cannot be determined</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> f(−x) = (−x)³ − 2(−x) = −x³ + 2x = −(x³ − 2x) = −f(x), so the function is odd.</p>
</div>
</div>
<div class="problem" id="pc-2">
<p class="prompt">2. For the absolute value function f(x) = |x|, what is f(−6)?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pc-2',true)">A) 6</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-2',false)">B) −6</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-2',false)">C) 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-2',false)">D) 36</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> |−6| = 6, since absolute value returns distance from 0, which is never negative.</p>
</div>
</div>
<div class="problem" id="pc-3">
<p class="prompt">3. The greatest integer function g(x) = ⌊x⌋ gives the greatest integer not greater than x. What is g(3.7)?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pc-3',true)">A) 3</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-3',false)">B) 4</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-3',false)">C) 3.7</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-3',false)">D) 0</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> The greatest integer not greater than 3.7 is 3 (rounding up to 4 would overshoot).</p>
</div>
</div>
<div class="problem" id="pc-4">
<p class="prompt">4. If f is an odd function and f(5) = 8, what is f(−5)?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pc-4',true)">A) −8</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-4',false)">B) 8</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-4',false)">C) 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pc-4',false)">D) Cannot be determined</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> By definition of odd, f(−x) = −f(x), so f(−5) = −f(5) = −8.</p>
</div>
</div>
<!-- ============ SECTION D ============ -->
<h2 id="poly-rational-trig">4. Polynomial, Rational, and Trigonometric Functions</h2>
<p>A <strong>polynomial function</strong> has the form f(x) = a<sub>n</sub>x<sup>n</sup> + … + a₁x + a₀, and its domain is always the set of all real numbers. A <strong>rational function</strong> f(x) = P(x)/Q(x) has domain equal to all reals for which Q(x) ≠ 0. The trigonometric functions are <strong>periodic</strong>: sin x, cos x, csc x, and sec x have period 2π; tan x and cot x have period π. The function f(x) = A sin(bx) has amplitude |A| and period 2π/|b|. Since the trig functions aren't one-to-one over their full domains, their inverses (arcsin, arccos, arctan) are defined only over restricted domains: arcsin x has domain −1 ≤ x ≤ 1.</p>
<div class="example">
<p><strong>Worked Example:</strong> Consider f(x) = <span class="frac"><span class="num">1</span><span class="den">k</span></span>cos(kx). For what value of k does f have period 6, and what is the amplitude for that k?</p>
<p>The period of cos(kx) is <span class="frac"><span class="num">2π</span><span class="den">k</span></span>. Setting this equal to 6: <span class="frac"><span class="num">2π</span><span class="den">k</span></span> = 6, so k = <span class="frac"><span class="num">π</span><span class="den">3</span></span>.</p>
<p>The amplitude, <span class="frac"><span class="num">1</span><span class="den">k</span></span>, is then <span class="frac"><span class="num">3</span><span class="den">π</span></span>.</p>
</div>
<div class="problem" id="pd-1">
<p class="prompt">1. What is the domain of every polynomial function?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pd-1',true)">A) All real numbers</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-1',false)">B) All positive real numbers</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-1',false)">C) It depends on the degree</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-1',false)">D) All reals except 0</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> There's no value of x that could ever make a polynomial expression undefined, so the domain is always all real numbers.</p>
</div>
</div>
<div class="problem" id="pd-2">
<p class="prompt">2. For the rational function f(x) = <span class="frac"><span class="num">x + 5</span><span class="den">x² − 4</span></span>, what is the domain?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pd-2',true)">A) x ≠ 2, −2</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-2',false)">B) x ≠ 5</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-2',false)">C) x ≠ 4</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-2',false)">D) x ≠ −5</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> x² − 4 ≠ 0, so x ≠ 2 and x ≠ −2.</p>
</div>
</div>
<div class="problem" id="pd-3">
<p class="prompt">3. Consider f(x) = <span class="frac"><span class="num">1</span><span class="den">k</span></span>sin(kx). For what value of k does f have period 4?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pd-3',true)">A) <span class="frac"><span class="num">π</span><span class="den">2</span></span></button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-3',false)">B) 2π</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-3',false)">C) π</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-3',false)">D) <span class="frac"><span class="num">4</span><span class="den">π</span></span></button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> The period of sin(kx) is <span class="frac"><span class="num">2π</span><span class="den">k</span></span>. Setting this equal to 4: <span class="frac"><span class="num">2π</span><span class="den">k</span></span> = 4, so k = <span class="frac"><span class="num">2π</span><span class="den">4</span></span> = <span class="frac"><span class="num">π</span><span class="den">2</span></span>.</p>
</div>
</div>
<div class="problem" id="pd-4">
<p class="prompt">4. Using the value of k from the previous problem, what is the amplitude of f?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pd-4',true)">A) <span class="frac"><span class="num">2</span><span class="den">π</span></span></button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-4',false)">B) <span class="frac"><span class="num">π</span><span class="den">2</span></span></button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-4',false)">C) 1</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-4',false)">D) 4</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> The amplitude is <span class="frac"><span class="num">1</span><span class="den">k</span></span> = <span class="frac"><span class="num">1</span><span class="den">π/2</span></span> = <span class="frac"><span class="num">2</span><span class="den">π</span></span>.</p>
</div>
</div>
<div class="problem" id="pd-5">
<p class="prompt">5. What is the domain of y = sin⁻¹(x) (arcsin x)?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pd-5',true)">A) −1 ≤ x ≤ 1</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-5',false)">B) All real numbers</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-5',false)">C) 0 ≤ x ≤ π</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pd-5',false)">D) x ≥ 0</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> Since sin x only ever outputs values between −1 and 1, its inverse can only accept inputs in that same range.</p>
</div>
</div>
<!-- ============ SECTION E ============ -->
<h2 id="exp-log">5. Exponential and Logarithmic Functions</h2>
<p>The <strong>exponential function</strong> f(x) = a<sup>x</sup> (a > 0, a ≠ 1) is defined for all real x, with range the set of positive reals. Since f(x) = a<sup>x</sup> is one-to-one, it has an inverse, the <strong>logarithmic function</strong> f⁻¹(x) = log<sub>a</sub>x, defined by y = log<sub>a</sub>x if and only if a<sup>y</sup> = x. Its domain is the positive reals; its range is all reals. The base-e logarithm has its own notation: log<sub>e</sub>x = ln x.</p>
<table class="ref">
<tr><th>Property</th><th>Formula</th></tr>
<tr><td>Product rule</td><td>log<sub>a</sub>(mn) = log<sub>a</sub>m + log<sub>a</sub>n</td></tr>
<tr><td>Quotient rule</td><td>log<sub>a</sub>(m/n) = log<sub>a</sub>m − log<sub>a</sub>n</td></tr>
<tr><td>Power rule</td><td>log<sub>a</sub>(x<sup>m</sup>) = m · log<sub>a</sub>x</td></tr>
</table>
<div class="example">
<p><strong>Worked Example:</strong> Simplify ln(e⁵).</p>
<p>Since ln and e<sup>x</sup> are inverse functions, ln(e<sup>x</sup>) = x for any x.</p>
<p class="step-math">ln(e⁵) = 5</p>
</div>
<div class="problem" id="pe-1">
<p class="prompt">1. Simplify: a⁵ · a⁻² (a > 0)</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pe-1',true)">A) a³</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-1',false)">B) a⁷</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-1',false)">C) a⁻¹⁰</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-1',false)">D) a⁻²⁄⁵</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> a<sup>m</sup> · a<sup>n</sup> = a<sup>m+n</sup>, so a⁵ · a⁻² = a⁵⁻² = a³.</p>
</div>
</div>
<div class="problem" id="pe-2">
<p class="prompt">2. What is the domain of f(x) = log<sub>a</sub>x (a > 0, a ≠ 1)?</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pe-2',true)">A) x > 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-2',false)">B) All real numbers</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-2',false)">C) x ≥ 0</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-2',false)">D) x ≠ 0</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> Since a<sup>x</sup> only ever outputs positive numbers, its inverse (log<sub>a</sub>x) can only accept positive inputs.</p>
</div>
</div>
<div class="problem" id="pe-3">
<p class="prompt">3. Simplify: ln(e⁶)</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pe-3',true)">A) 6</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-3',false)">B) e⁶</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-3',false)">C) 1</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-3',false)">D) 6e</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> Since ln and e<sup>x</sup> are inverse functions, ln(e⁶) = 6.</p>
</div>
</div>
<div class="problem" id="pe-4">
<p class="prompt">4. Using log properties, simplify: log<sub>a</sub>(<span class="frac"><span class="num">m³</span><span class="den">n</span></span>)</p>
<div class="options">
<button class="option-btn" data-correct="true" onclick="checkAnswer(this,'pe-4',true)">A) 3 log<sub>a</sub>m − log<sub>a</sub>n</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-4',false)">B) (log<sub>a</sub>m − log<sub>a</sub>n)³</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-4',false)">C) 3(log<sub>a</sub>m − log<sub>a</sub>n)</button>
<button class="option-btn" data-correct="false" onclick="checkAnswer(this,'pe-4',false)">D) log<sub>a</sub>(3m − n)</button>
</div>
<div class="explanation">
<p><span class="label">Explanation:</span> The quotient rule gives log<sub>a</sub>(m³) − log<sub>a</sub>n, and the power rule then rewrites log<sub>a</sub>(m³) as 3 log<sub>a</sub>m.</p>
</div>
</div>
<!-- ============ MISTAKES ============ -->
<h2 id="mistakes">Common Mistakes to Avoid</h2>
<ul class="mistake-list">
<li><strong>Forgetting to restrict the domain of a composite function.</strong> f(g(x)) may simplify to something that looks like it has a wider domain than it actually does, always check the domain of g first.</li>
<li><strong>Assuming f(g(x)) and g(f(x)) are the same.</strong> Composition is generally not commutative, work through both orders separately before assuming they match.</li>
<li><strong>Forgetting to swap x and y when finding an inverse.</strong> Skipping this step just returns the original function instead of its inverse.</li>
<li><strong>Confusing which axis an even or odd function is symmetric about.</strong> Even functions mirror across the y-axis; odd functions have 180° rotational symmetry about the origin, not a mirror-line symmetry.</li>
<li><strong>Treating log<sub>a</sub>(m + n) as log<sub>a</sub>m + log<sub>a</sub>n.</strong> There is no rule for the log of a sum, only for the log of a product, quotient, or power. This is one of the most common algebra slips going into calculus.</li>
</ul>
<!-- ============ FAQ ============ -->
<h2 id="faq">Frequently Asked Questions</h2>
<div class="faq-item">
<h3>Why does a precalculus review chapter matter for the AP exam if it isn't tested directly?</h3>
<p>Nearly every calculus technique assumes fluency with these ideas already in place. Struggling to find a domain or simplify a composite function slows down every derivative and integral problem that builds on it, even though the review itself won't appear as its own question.</p>
</div>
<div class="faq-item">
<h3>How can I quickly check if a function is one-to-one before finding its inverse?</h3>
<p>Graphically, check whether any horizontal line crosses the graph more than once (the horizontal line test). Algebraically, a function that is strictly increasing or strictly decreasing across its whole domain is automatically one-to-one.</p>
</div>
<div class="faq-item">
<h3>Do I need to memorize the periods of every trig function?</h3>
<p>Yes, this comes up constantly once derivatives of trigonometric functions enter the picture. Sine, cosine, cosecant, and secant repeat every 2π; tangent and cotangent repeat every π.</p>
</div>
<div class="faq-item">
<h3>Where can I practice more problems like these?</h3>
<p>The <a href="https://theschoolofmathematics.com/quiz/Functions-Quiz%201">Functions quizzes</a> in the AP Calculus AB Question Bank include additional original problems on this topic, along with quizzes covering every other topic tested throughout the course.</p>
</div>
<footer class="cta-final">
<div class="cta-group">
<a class="cta-btn cta-primary" href="https://theschoolofmathematics.com/quiz/Functions-Quiz%201">Practice Functions Free</a>
<a class="cta-btn cta-secondary" href="https://theschoolofmathematics.com/quiz/course/AP-Calculus-AB-QBank">Explore the Full AP Calculus AB Qbank</a>
</div>
</footer>
</div>
<script>
function checkAnswer(btn, problemId, isCorrect) {
var problem = document.getElementById(problemId);
var buttons = problem.querySelectorAll('.option-btn');
buttons.forEach(function(b) { b.disabled = true; });
if (isCorrect) {
btn.classList.add('correct');
} else {
btn.classList.add('incorrect');
var correctBtn = problem.querySelector('.option-btn[data-correct="true"]');
if (correctBtn) { correctBtn.classList.add('correct'); }
}
var exp = problem.querySelector('.explanation');
if (exp) { exp.classList.add('show'); }
}
</script>
</body>
</html>