Mathématiques • Physique • Chimie
Préparation au CEGEP | Exercices • Défis • Corrections
Étudier. Pratiquer. Progresser. Study. Practice. Improve.
📝
Exercices Practice problems
💡
Défis Challenges
✓
Corrections Detailed solutions
📖
Concepts Deeper understanding
StudyGroup AN educational mascot

Five Advanced CEGEP Problems: Radicals, Lines, Piecewise Functions and Modeling

Version française

Goal: solve five multi-step problems combining algebra, radicals, lines, piecewise functions, modeling and absolute value. Each solution includes a strategy, a common mistake and a quick check.

These exercises are designed for CEGEP-level review without a calculator and with exact values. They introduce no new theory; instead, they test whether several familiar ideas can be connected in one complete solution.

Problem 1 — Domain, Radicals and Simplification

Problem. Consider \[f(x)=\frac{\sqrt{x^2-5x+6}}{x-2}.\]
  1. Determine the domain of \(f\).
  2. Study the sign of \(x^2-5x+6\).
  3. Simplify \(f(x)\) on each interval of its domain.
  4. Determine the range of \(f\).

Detailed Solution

First factor the radicand:

\[x^2-5x+6=(x-2)(x-3).\]

Two conditions must hold at the same time: the radicand must be nonnegative and the denominator must not equal zero.

\[(x-2)(x-3)\ge0\quad\text{and}\quad x\ne2.\]

Domain: \(\boxed{D_f=(-\infty,2)\cup[3,+\infty)}\).

The product is positive on \((−\infty,2)\) and \((3,+\infty)\), zero at \(2\) and \(3\), and negative on \((2,3)\). The value \(2\) remains excluded because it makes the denominator zero.

For \(x\ge3\), both factors are nonnegative:

\[f(x)=\frac{\sqrt{x-2}\sqrt{x-3}}{x-2}=\sqrt{\frac{x-3}{x-2}}.\]

For \(x<2\), both factors are negative, so rewrite \((x-2)(x-3)=(2-x)(3-x)\):

\[f(x)=\frac{\sqrt{(2-x)(3-x)}}{-(2-x)}=-\sqrt{\frac{3-x}{2-x}}.\]

On \([3,+\infty)\), the function takes all values from \(0\) up to but not including \(1\). On \((−\infty,2)\), it takes all values strictly below \(-1\).

Range: \(\boxed{(-\infty,-1)\cup[0,1)}\).
Domain of the square root of x minus 2 times x minus 3 divided by x minus 2, with 2 excluded and 3 included

The domain is the intersection of the radical condition and the denominator restriction.
Method to remember: factor first, write every restriction separately, then take their intersection.
Common mistake: using \(\sqrt{ab}=\sqrt a\sqrt b\) when \(a\) and \(b\) are negative. Over the real numbers, this rule requires each factor to be nonnegative.
Check: test one value from each part of the domain, such as \(x=0\) and \(x=4\), in both the original and simplified expressions.
Practice: determine the domain and simplify by intervals: \(h(x)=\dfrac{\sqrt{(x-1)(x-4)}}{x-1}\).
Check answer

\(D_h=(-\infty,1)\cup[4,+\infty)\). For \(x\ge4\), \(h(x)=\sqrt{\frac{x-4}{x-1}}\); for \(x<1\), \(h(x)=-\sqrt{\frac{4-x}{1-x}}\).

↑ Back to the Table of Contents

Problem 2 — Perpendicular Lines and Reflection

Problem. Let \(A(-2,5)\), \(B(4,-1)\) and \(P(2,3)\).
  1. Find the equation of line \(d\) through \(A\) and \(B\).
  2. Find the equation of line \(e\), perpendicular to \(d\) and passing through \(P\).
  3. Find their intersection point \(M\).
  4. Find the reflection \(P'\) of \(P\) across \(d\).

Detailed Solution

The slope of \(d\) is

\[m_d=\frac{-1-5}{4-(-2)}=-1.\]

Using point \(A\), \(y-5=-(x+2)\), so

\[\boxed{d:y=-x+3}.\]

A perpendicular line has the negative reciprocal slope. Since \(m_d=-1\), \(m_e=1\). Through \(P(2,3)\),

\[y-3=x-2\quad\Longrightarrow\quad\boxed{e:y=x+1}.\]

The intersection satisfies both equations:

\[-x+3=x+1\Longrightarrow x=1,\qquad y=2.\]

Foot of the perpendicular: \(\boxed{M(1,2)}\).

In an orthogonal reflection, \(M\) is the midpoint of \([PP']\). Therefore,

\[P'=2M-P=(2\cdot1-2,2\cdot2-3).\]

Reflected point: \(\boxed{P'(0,1)}\).
Method to remember: find the original line, construct the perpendicular through the point, and use their intersection as the midpoint of the reflection.
Common mistake: changing only the sign of a slope. For nonzero slopes, perpendicular lines satisfy \(m_1m_2=-1\).
Check: \(M(1,2)\) lies on both lines, and \(MP=MP'=\sqrt2\).
Practice: repeat the method with \(C(0,4)\), \(D(6,-2)\) and \(Q(3,4)\).
Check answer

\(d:y=-x+4\), perpendicular through \(Q\): \(y=x+1\), foot \(M(3/2,5/2)\), reflection \(Q'(0,1)\).

↑ Back to the Table of Contents

Problem 3 — Piecewise Function and Continuity

Problem. Define \[f(x)=\begin{cases}x+a,&x<1,\\2x^2-3x+b,&x\ge1.\end{cases}\] The two pieces meet at the point on the line \(y=x+2\) whose x-coordinate is \(1\).
  1. Determine \(a\) and \(b\).
  2. Write the resulting function.
  3. Determine its domain and range.
  4. Solve \(f(x)=0\).

Detailed Solution

The line \(y=x+2\) gives \(y=3\) when \(x=1\). Both pieces must therefore meet at the value \(3\).

Left piece: \(1+a=3\), so \(a=2\). Right piece: \(2(1)^2-3(1)+b=3\), so \(b=4\).

\[\boxed{a=2,\qquad b=4}\]

Thus,

\[f(x)=\begin{cases}x+2,&x<1,\\2x^2-3x+4,&x\ge1.\end{cases}\]

The two intervals cover all real numbers, so \(D_f=\mathbb R\). The first piece produces \((−\infty,3)\). On the restricted domain \(x\ge1\), the second piece is increasing and reaches its minimum value \(3\) at the endpoint \(x=1\); it produces \([3,+\infty)\).

Domain and range: \(\boxed{D_f=\mathbb R\text{ and }\operatorname{Range}(f)=\mathbb R}\).

For \(x<1\), \(x+2=0\) gives \(x=-2\), which is valid. For \(x\ge1\), the discriminant of \(2x^2-3x+4\) is \(9-32=-23<0\), so there are no real roots.

Solution: \(\boxed{x=-2}\).
Graph of a piecewise function where y equals x plus 2 and y equals 2x squared minus 3x plus 4 meet at the point 1 comma 3

Continuity requires the same value at the joining point, but not necessarily the same slope.
Method to remember: translate each geometric condition into an equation. Two independent conditions determine two unknowns.
Common mistake: calling \((1,3)\) the vertex of the parabola. The full parabola has its vertex at \(x=3/4\); on the restricted domain \(x\ge1\), \((1,3)\) is the endpoint and minimum of the piece.
Check: the left-hand value, right-hand value and \(f(1)\) are all equal to \(3\).
Practice: find \(c\) and \(d\) so that \(p(x)=x+c\) for \(x<2\), and \(p(x)=x^2-2x+d\) for \(x\ge2\), join at \((2,5)\).
Check answer

\(c=3\), \(d=5\). The domain and range are \(\mathbb R\), and the only zero is \(x=-3\).

↑ Back to the Table of Contents

Problem 4 — Modeling an Open Box

Problem. An open box has a square base of side \(x\) cm and height \(h\) cm. Its volume is \(2000\ \text{cm}^3\).
  1. Express \(h\) in terms of \(x\).
  2. Express the total surface area \(S\) in terms of \(x\).
  3. State the relevant domain.
  4. Compare \(S(5)\) and \(S(10)\).
  5. If \(h=8\) cm, determine \(x\) and the exact surface area.

Detailed Solution

The volume condition is \(V=x^2h=2000\), so

\[\boxed{h=\frac{2000}{x^2}}.\]

An open box has one square base and four rectangular side faces:

\[S=x^2+4xh.\]

Substituting \(h\),

\[\boxed{S(x)=x^2+\frac{8000}{x}}.\]

The algebraic expression excludes \(x=0\). Since \(x\) is a length, the relevant domain is

\[\boxed{x>0}.\]

\[S(5)=25+1600=1625\ \text{cm}^2,\qquad S(10)=100+800=900\ \text{cm}^2.\]

The surface area decreases from \(x=5\) to \(x=10\) because the reduction in height and lateral area is greater than the increase in base area.

If \(h=8\),

\[\frac{2000}{x^2}=8\Longrightarrow x^2=250\Longrightarrow x=5\sqrt{10},\]

where only the positive root is relevant. Therefore,

\[S=250+4(5\sqrt{10})(8)=250+160\sqrt{10}.\]

\[\boxed{x=5\sqrt{10}\ \text{cm},\qquad S=250+160\sqrt{10}\ \text{cm}^2}.\]
Open box with a square base of side x, height h, volume x squared h and surface area x squared plus 4xh

An open box has five faces: one base and four lateral faces.
Method to remember: define the variables and units, write the volume constraint first, then use it to eliminate one variable.
Common mistake: writing \(x^2+2xh\). There are four rectangular side faces, so the correct area is \(x^2+4xh\).
Check: with \(x=5\sqrt{10}\) and \(h=8\), the volume is \((5\sqrt{10})^2\cdot8=2000\ \text{cm}^3\).
Practice: for an open box with volume \(500\ \text{cm}^3\), express \(h\) and \(S(x)\), then state the relevant domain.
Check answer

\(h=500/x^2\), \(S(x)=x^2+2000/x\), with \(x>0\).

↑ Back to the Table of Contents

Problem 5 — Distance and Absolute Value

Problem. Let \(A(-2,1)\) and \(B(4,1)\).
  1. Write an equation stating that \((x,y)\) is equidistant from \(A\) and \(B\).
  2. Determine the set of points equidistant from \(A\) and \(B\).
  3. Write \(g(x)=|x-1|+|x+2|\) as a piecewise function.
  4. Find the minimum of \(g\) and all values of \(x\) where it is reached.
  5. Interpret the result as a sum of distances.

Detailed Solution

Set the two distances equal:

\[\sqrt{(x+2)^2+(y-1)^2}=\sqrt{(x-4)^2+(y-1)^2}.\]

After squaring, the \((y-1)^2\) terms cancel:

\[(x+2)^2=(x-4)^2\Longrightarrow12x=12\Longrightarrow x=1.\]

Geometric locus: \(\boxed{x=1}\), the vertical perpendicular bisector of \([AB]\).

The absolute values change form at \(x=-2\) and \(x=1\). Therefore,

\[g(x)=\begin{cases}-2x-1,&x<-2,\\3,&-2\le x<1,\\2x+1,&x\ge1.\end{cases}\]

The middle piece is constant, while the outer pieces increase as \(x\) moves away from the central interval.

Minimum: \(\boxed{g_{\min}=3}\), reached for every \(\boxed{x\in[-2,1]}\).

On the number line, \(g(x)\) is the sum of the distances from \(x\) to \(-2\) and \(1\). When \(x\) lies between them, the sum equals the fixed distance \(|1-(-2)|=3\). Outside the interval, extra distance is added.

Method to remember: locate every point where an expression inside an absolute value equals zero, then split the number line at those points.
Common mistake: automatically setting \(g(x)=0\). The task is to write a piecewise function and find its minimum, not its zeros.
Check: \(g(-2)=g(0)=g(1)=3\), while \(g(-3)=g(2)=5\).
Practice: find the minimum of \(q(x)=|x+4|+|x-2|\) and all values where it occurs.
Check answer

The minimum is \(6\), reached for every \(x\in[-4,2]\).

↑ Back to the Table of Contents

Summary of Methods

SituationFirst stepCheck
Radical and quotientCombine radicand \(\ge0\) with denominator \(\ne0\)Test each interval
Perpendicular linesUse \(m_1m_2=-1\)Substitute the point into both lines
Piecewise functionApply each formula only on its intervalCompare values at the joining point
ModelingDefine variables, units and constraintsCheck the units and volume
Absolute valueSplit at sign-change pointsTest one value per interval

Frequently Asked Questions

Why can a square root of a product not always be separated?

Over the real numbers, \(\sqrt{ab}=\sqrt a\sqrt b\) requires \(a\ge0\) and \(b\ge0\). A product may be positive even when both factors are negative.

Does continuity require the two slopes to be equal?

No. Continuity requires both pieces to reach the same value. Equal slopes are an additional differentiability condition.

Why is the physical domain of the box \(x>0\)?

The algebraic formula only excludes zero, but a length cannot be negative. The real situation therefore requires \(x>0\).

Why is the sum of two distances constant between two points?

When \(x\) lies between the two fixed points, the two smaller segments exactly partition the full segment, so their sum equals the fixed distance between the endpoints.



💡 3 Crucial Traps & Tips for Radical Problems (CEGEP Level)

1. Beware of Extraneous Solutions (Crucial Step!)
Whenever you square both sides of an equation to eliminate a radical (e.g., √(f(x)) = g(x)), you risk creating "fake" or extraneous solutions. Always plug your answers back into the original equation to verify!

2. The Absolute Value Trap (√(x²) ≠ x)
Remember that √(x²) = |x|, not simply x. If x < 0, then √(x²) = -x. This is one of the most common point-deduction errors in CEGEP math exams.

3. Domain Restrictions First
Before manipulating any expression with even roots, identify the restricted domain: the expression under the square root must always be non-negative (f(x) ≥ 0).

4. Rationalizing with Conjugates
When simplifying fractions with terms like (a - √b) in the denominator, multiply both numerator and denominator by the conjugate (a + √b) using the difference of squares: (a - b)(a + b) = a² - b².


StudyGroup AN — Mastering STEM, one problem at a time.