TExcelTAD
Home › Calculus in Depth › Diagnostic Review: Algebra, Geometry and Trig

Diagnostic Review: Algebra, Geometry and Trig

Calculus mistakes are usually algebra mistakes. This self-test checks the four skills every later lesson takes for granted: algebra, analytic geometry, functions and trigonometry. Work each part on paper, then compare with the answers and use the score guide to decide what to review.

How to use this test

Take each part without a calculator, then open its answers. Count a question as correct only if the whole answer is right (both roots, the full interval, the sign of a cosine). Then check your weakest part with the Python programs below, which verify the answers with SymPy so you can also test your own variations.

Score in a part What it means
all or all but one ready, move on
about half review the linked lessons for that part before chapter 1
less than half do the review lessons first; calculus will feel much easier afterwards

Part A: Algebra

  1. Expand (2x−3)2(2x - 3)^2.
  2. Factor completely: x3−4x2−12xx^3 - 4x^2 - 12x.
  3. Simplify x2−9x2+x−6\dfrac{x^2 - 9}{x^2 + x - 6}.
  4. Rationalise the denominator: 37−2\dfrac{3}{\sqrt{7} - 2}.
  5. Simplify (8x6)2/3(8x^6)^{2/3}.
  6. Solve x2−4x−1=0x^2 - 4x - 1 = 0.
  7. Solve ∣2x−5∣<3\lvert 2x - 5 \rvert < 3.
  8. Solve x−1x+2≥0\dfrac{x - 1}{x + 2} \ge 0.
Answers, Part A
  1. 4x2−12x+94x^2 - 12x + 9
  2. x(x−6)(x+2)x(x - 6)(x + 2)
  3. x−3x−2\dfrac{x - 3}{x - 2}, for x≠−3x \ne -3 (and x≠2x \ne 2)
  4. 7+2\sqrt{7} + 2, because 3(7+2)(7)2−22=3(7+2)3\dfrac{3(\sqrt{7} + 2)}{(\sqrt{7})^2 - 2^2} = \dfrac{3(\sqrt{7} + 2)}{3}
  5. 4x44x^4, since 82/3=(83)2=48^{2/3} = (\sqrt[3]{8})^2 = 4 and (x6)2/3=x4(x^6)^{2/3} = x^4
  6. x=2±5x = 2 \pm \sqrt{5}
  7. 1<x<41 < x < 4, from −3<2x−5<3-3 < 2x - 5 < 3
  8. x<−2x < -2 or x≥1x \ge 1 (x=−2x = -2 is excluded: division by zero)

Review: Solving Equations, Exponent Laws, nth Roots and Fractional Exponents, Simplifying Radicals, Absolute Value, Inequalities, and the planned Algebra course. This course's appendix Numbers, Inequalities and Absolute Values goes deeper on question 7 and 8.

Part B: Analytic geometry

  1. Find the equation of the line through (1,−2)(1, -2) and (4,7)(4, 7).
  2. Find the line through (2,1)(2, 1) perpendicular to 2x+3y=62x + 3y = 6.
  3. Find the centre and radius of the circle x2+y2−6x+4y−3=0x^2 + y^2 - 6x + 4y - 3 = 0.
  4. Find the distance between (−1,3)(-1, 3) and (5,−5)(5, -5), and their midpoint.
  5. Where does the parabola y=x2y = x^2 meet the line y=x+6y = x + 6?
Answers, Part B
  1. slope 7−(−2)4−1=3\dfrac{7 - (-2)}{4 - 1} = 3, so y=3x−5y = 3x - 5
  2. the given line has slope −23-\frac{2}{3}, a perpendicular one has slope 32\frac{3}{2}: y=32x−2y = \frac{3}{2}x - 2
  3. complete the squares: (x−3)2+(y+2)2=16(x - 3)^2 + (y + 2)^2 = 16, centre (3,−2)(3, -2), radius 4
  4. distance 62+82=10\sqrt{6^2 + 8^2} = 10, midpoint (2,−1)(2, -1)
  5. x2=x+6x^2 = x + 6 gives x=3x = 3 or x=−2x = -2: the points (3,9)(3, 9) and (−2,4)(-2, 4)

Review: The Coordinate Plane, The Pythagorean Theorem, Conic Sections, and the appendix Coordinate Geometry and Lines.

Part C: Functions

  1. For f(x)=x2−2xf(x) = x^2 - 2x, simplify the difference quotient f(2+h)−f(2)h\dfrac{f(2 + h) - f(2)}{h}.
  2. Find the domain of g(x)=4−xx−1g(x) = \dfrac{\sqrt{4 - x}}{x - 1}.
  3. For f(x)=xf(x) = \sqrt{x} and g(x)=x2+1g(x) = x^2 + 1, find f∘gf \circ g and g∘fg \circ f.
  4. Is each function even, odd or neither: x3−xx^3 - x, x4+cos⁡xx^4 + \cos x, x2+xx^2 + x?
  5. Find the inverse of f(x)=2x+1x−3f(x) = \dfrac{2x + 1}{x - 3}.
  6. Solve log⁡2x+log⁡2(x−2)=3\log_2 x + \log_2(x - 2) = 3.
Answers, Part C
  1. f(2+h)=4+4h+h2−4−2h=2h+h2f(2 + h) = 4 + 4h + h^2 - 4 - 2h = 2h + h^2 and f(2)=0f(2) = 0, so the quotient is 2+h2 + h (for h≠0h \ne 0). This exact computation is the heart of the derivative.
  2. 4−x≥04 - x \ge 0 and x≠1x \ne 1: the domain is (−∞,1)∪(1,4](-\infty, 1) \cup (1, 4]
  3. (f∘g)(x)=x2+1(f \circ g)(x) = \sqrt{x^2 + 1} for all xx; (g∘f)(x)=x+1(g \circ f)(x) = x + 1 for x≥0x \ge 0
  4. odd, even, neither
  5. f−1(x)=3x+1x−2f^{-1}(x) = \dfrac{3x + 1}{x - 2}
  6. x(x−2)=8x(x - 2) = 8 gives x=4x = 4 or x=−2x = -2; only x=4x = 4 is in the domain of both logs

Review: Functions, Domain and Range, Composition and Inverses, Logarithm Laws, and the planned Pre-Calculus course.

Part D: Trigonometry

  1. Convert 210∘210^\circ to radians and 5π/45\pi/4 radians to degrees.
  2. Give exact values: sin⁡(π/3)\sin(\pi/3), cos⁡(3π/4)\cos(3\pi/4), tan⁡(5π/6)\tan(5\pi/6).
  3. If sin⁡θ=35\sin\theta = \frac{3}{5} and π/2<θ<π\pi/2 < \theta < \pi, find cos⁡θ\cos\theta and tan⁡θ\tan\theta.
  4. Solve 2cos⁡x−1=02\cos x - 1 = 0 for 0≤x<2π0 \le x < 2\pi.
  5. Show that sin⁡2x1+cos⁡2x=tan⁡x\dfrac{\sin 2x}{1 + \cos 2x} = \tan x.
  6. A circle has radius 6. How long is the arc cut off by a central angle of 2π/32\pi/3?
Answers, Part D
  1. 210∘=7π/6210^\circ = 7\pi/6; 5π/4=225∘5\pi/4 = 225^\circ
  2. 32\frac{\sqrt{3}}{2}, −22-\frac{\sqrt{2}}{2}, −33-\frac{\sqrt{3}}{3}
  3. cos⁡θ=−45\cos\theta = -\frac{4}{5} (negative in the second quadrant), tan⁡θ=−34\tan\theta = -\frac{3}{4}
  4. x=π/3x = \pi/3 or x=5π/3x = 5\pi/3
  5. sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x and 1+cos⁡2x=2cos⁡2x1 + \cos 2x = 2\cos^2 x, so the quotient is sin⁡x/cos⁡x=tan⁡x\sin x / \cos x = \tan x
  6. s=rθ=6⋅2π/3=4π≈12.566s = r\theta = 6 \cdot 2\pi/3 = 4\pi \approx 12.566

Review: Trigonometric Functions and the appendix Trigonometry Review.

Checking answers with SymPy

SymPy can confirm algebra answers exactly. expand, factor, cancel, radsimp and solve cover most of Part A; solve_univariate_inequality handles the inequalities.

python · try it yourself
import sympy as sp

x = sp.symbols('x', real=True)
print(sp.expand((2*x - 3)**2))
print(sp.factor(x**3 - 4*x**2 - 12*x))
print(sp.cancel((x**2 - 9) / (x**2 + x - 6)))
print(sp.radsimp(3 / (sp.sqrt(7) - 2)))
print(sp.solve(x**2 - 4*x - 1, x))
print(sp.solve_univariate_inequality(sp.Abs(2*x - 5) < 3, x))
print(sp.solve_univariate_inequality((x - 1) / (x + 2) >= 0, x))
4*x**2 - 12*x + 9
x*(x - 6)*(x + 2)
(x - 3)/(x - 2)
2 + sqrt(7)
[2 - sqrt(5), 2 + sqrt(5)]
(1 < x) & (x < 4)
(1 <= x) | (x < -2)

Note that cancel silently drops the condition x≠−3x \ne -3. A computer algebra system simplifies expressions, not functions: the original has a hole at x=−3x = -3 and the simplified form does not. Keeping track of such conditions is your job, and it matters for limits in chapter 2.

The geometry and function answers check the same way:

python · try it yourself
import sympy as sp

x, y, h = sp.symbols('x y h')
f = x**2 - 2*x
print(sp.simplify((f.subs(x, 2 + h) - f.subs(x, 2)) / h))
print(sp.solve([y - x**2, y - x - 6], [x, y]))
print(sp.Point(-1, 3).distance(sp.Point(5, -5)), sp.Point(-1, 3).midpoint(sp.Point(5, -5)))
inv = sp.solve(sp.Eq(y, (2*x + 1) / (x - 3)), x)[0]
print("inverse:", inv)
print(sp.solve(sp.log(x, 2) + sp.log(x - 2, 2) - 3, x))
h + 2
[(-2, 4), (3, 9)]
10 Point2D(2, -1)
inverse: (3*y + 1)/(y - 2)
[4]

SymPy solved for xx in terms of yy; renaming yy to xx gives f−1(x)=(3x+1)/(x−2)f^{-1}(x) = (3x + 1)/(x - 2).

In software

These "pre-calculus" skills show up constantly in code. Rearranging formulas is how you invert a mapping, such as screen coordinates back to world coordinates in a game. Absolute-value inequalities are tolerance checks such as abs(a - b) < eps. Circle equations and line intersections are collision tests (ray–sphere intersection is a quadratic equation). Radians are what every math.sin expects, and the identity in D5 is the kind of rewrite a shader programmer uses to save an operation.

Exercises

Exercise 1: Complete the square

Write 2x2+12x+52x^2 + 12x + 5 in the form a(x−p)2+qa(x - p)^2 + q and give the minimum value of the expression.

Answer

2(x+3)2−132(x + 3)^2 - 13, minimum −13-13 at x=−3x = -3.

Solution
2x2+12x+5=2(x2+6x)+5=2(x2+6x+9)−18+5=2(x+3)2−13\begin{aligned} 2x^2 + 12x + 5 &= 2(x^2 + 6x) + 5 \\ &= 2(x^2 + 6x + 9) - 18 + 5 \\ &= 2(x + 3)^2 - 13 \end{aligned}

A square is never negative, so the smallest value is −13-13, reached when x+3=0x + 3 = 0.

Exercise 2: A trig equation with two families

Solve 2sin⁡2x−sin⁡x−1=02\sin^2 x - \sin x - 1 = 0 for 0≤x<2π0 \le x < 2\pi.

Answer

x=π/2,7π/6,11π/6x = \pi/2, 7\pi/6, 11\pi/6.

Solution

Treat it as a quadratic in s=sin⁡xs = \sin x: 2s2−s−1=(2s+1)(s−1)=02s^2 - s - 1 = (2s + 1)(s - 1) = 0, so sin⁡x=1\sin x = 1 or sin⁡x=−12\sin x = -\frac{1}{2}.

sin⁡x=1⇒ x=π/2sin⁡x=−12⇒ x=7π/6 or 11π/6(third and fourth quadrants)\begin{aligned} \sin x &= 1 && \Rightarrow\ x = \pi/2 \\ \sin x &= -\tfrac{1}{2} && \Rightarrow\ x = 7\pi/6 \text{ or } 11\pi/6 \quad \text{(third and fourth quadrants)} \end{aligned}
python · try it yourself
import sympy as sp

x, s = sp.symbols('x s')
domain = sp.Interval.Ropen(0, 2*sp.pi)
for r in sp.solve(2*s**2 - s - 1, s):
    print("sin x =", r, "->", sp.solveset(sp.sin(x) - r, x, domain))
sin x = -1/2 -> {7*pi/6, 11*pi/6}
sin x = 1 -> {pi/2}

Solving the quadratic in ss first and then each sine equation separately is also the safest way to ask a CAS: given the whole equation at once, this SymPy version returns only π/2\pi/2 and silently misses two solutions. Always sanity-check a solver's answer.

Exercise 3: Domain of a composition

For f(x)=1x−2f(x) = \dfrac{1}{x - 2} and g(x)=xg(x) = \sqrt{x}, find the domain of f∘gf \circ g.

Answer

[0,4)∪(4,∞)[0, 4) \cup (4, \infty)

Solution

(f∘g)(x)=1x−2(f \circ g)(x) = \dfrac{1}{\sqrt{x} - 2}. We need x≥0x \ge 0 so that x\sqrt{x} exists, and x≠2\sqrt{x} \ne 2, that is x≠4x \ne 4. So the domain is all x≥0x \ge 0 except 4.

Exercise 4: Check yourself in code

Write a short program that checks the identity sin⁡2x/(1+cos⁡2x)=tan⁡x\sin 2x / (1 + \cos 2x) = \tan x numerically at x=0.3x = 0.3, 0.7 and 1.2.

Answer

Both sides agree at every point (differences of order 10−1610^{-16} or exactly 0).

Solution
python · try it yourself
import math

for x in [0.3, 0.7, 1.2]:
    left = math.sin(2*x) / (1 + math.cos(2*x))
    right = math.tan(x)
    print(x, round(left, 12), round(right, 12), abs(left - right) < 1e-12)
0.3 0.30933624961 0.30933624961 True
0.7 0.842288380463 0.842288380463 True
1.2 2.572151622126 2.572151622126 True

A numeric check like this cannot prove an identity, but it catches a wrong one immediately.

Test yourself

What is x2−9x2+x−6\frac{x^2 - 9}{x^2 + x - 6} after cancelling, and what condition is lost?

  1. x+3x−2\frac{x + 3}{x - 2}, x≠3x \ne 3
  2. x−3x−2\frac{x - 3}{x - 2}, x≠−3x \ne -3
  3. x−3x+2\frac{x - 3}{x + 2}, x≠3x \ne 3
  4. 1, none

If sin⁡θ=35\sin\theta = \frac{3}{5} and θ\theta is in the second quadrant, what is cos⁡θ\cos\theta?

  1. 45\frac{4}{5}
  2. −34-\frac{3}{4}
  3. −45-\frac{4}{5}
  4. 34\frac{3}{4}

Which interval is the solution of ∣2x−5∣<3\lvert 2x - 5 \rvert < 3?

  1. 1<x<41 < x < 4
  2. x<1x < 1 or x>4x > 4
  3. −4<x<−1-4 < x < -1
  4. −1<x<4-1 < x < 4