Exercise 3: Worked solutions
Mathematics for Engineers I · Module 62765 · Exercise Sheet 3
Exercise 3.1: Mathematical induction
Induction separates an infinite claim into a base case and a step showing each case implies the next.
Connected topic: Mathematical induction (§2.5) gives the two-part proof structure used in both claims.
1a: Prove the square-sum inequality
Try first: write the base case, then add the new final term (n + 1)2 to the induction hypothesis.
Attempted it? Open the worked steps
1a · Induction on n
Claim: Sn = ∑k=1n(k − 1)2 < n33.
Base case n = 1: S1 = (1−1)2 = 0 < 13, so the claim starts true.
Induction hypothesis: assume Sn < n33 for some n ∈ ℕ.
The next sum adds the term k = n + 1, which equals n2:
Sn+1 = Sn + n2 < n33 + n2
Compare the upper bound with the target:
(n + 1)33 = n33 + n2 + n + 13 > n33 + n2
Therefore Sn+1 < (n + 1)33. The base and step prove the claim for every n ∈ ℕ.
1b: Prove 4 divides 5n − 1
Try first: check n = 1 and rewrite the next power using 5·5n.
Attempted it? Open the worked steps
1b · Preserve divisibility in the induction step
Base case n = 1: 51 − 1 = 4, divisible by 4.
Induction hypothesis: suppose 5n − 1 = 4q for some integer q.
Then the next expression is:
5n+1 − 1 = 5 · 5n − 1 = 5(5n − 1) + 4
Substitute the hypothesis: 5(4q) + 4 = 4(5q + 1), a multiple of 4. Hence 4 divides 5n − 1 for every positive integer n.
Exercise 3.2: Maps
Injectivity asks whether different inputs can share an output; surjectivity asks whether every target value is reached. A bijection has both properties.
Connected topics: Types of mappings (§3.2), inverse functions (§3.3), and composition (§3.4).
2a: Classify f(x) = e−x2 and g(x,y) = (4y,x−1)
Try first: find the range and look for two different inputs with the same output; for g, solve its two coordinate equations.
Attempted it? Open the worked steps
2a · Range and one-to-one tests
For f, x2 ≥ 0, so −x2 ≤ 0 and 0 < e−x2 ≤ 1. The maximum 1 occurs at x = 0; the value 0 is approached as |x| grows but is never reached. Thus range(f) = (0,1], so f is not onto ℝ.
Also f(1) = f(−1) = e−1 with distinct inputs, so f is not injective. Therefore it is not bijective as stated.
Restrict its domain to [0,∞) and its range/codomain to (0,1]. On this domain f decreases strictly from 1 toward 0, so the restricted map is bijective. Solve y = e−x2 with x ≥ 0:
ln y = −x2 ⇒ x = √−ln y, for 0 < y ≤ 1
Its inverse is f−1(y) = √−ln y.
For g, if g(x1,y1) = g(x2,y2), coordinate equality gives 4y1 = 4y2 and x1−1 = x2−1, hence both input coordinates agree. So g is injective.
Given any target (u,v) ∈ ℝ2, choose x = v + 1 and y = u4. Then g(x,y) = (u,v), so g is surjective as well. It is bijective, with:
g−1(u, v) = (v + 1, u4)
2b(i): Decide whether f ∘ g can be formed
Try first: compare the output type of the inner map g with the input type required by the outer map f.
Attempted it? Open the worked steps
2b(i) · Match codomain to domain
g takes a vector in ℝ2 and returns a vector in ℝ2. But f expects a real number, an element of ℝ.
The codomain ℝ2 of g is not contained in the domain ℝ of f. Thus f ∘ g is not defined with the stated maps.
2b(ii): Find f ∘ f
Try first: substitute f(x) into the outer f and simplify the square in the exponent.
Attempted it? Open the worked steps
2b(ii) · Compose the real-valued map with itself
The output of f lies in ℝ, so it is a valid input for f. The composition has domain ℝ and mapping rule:
(f ∘ f)(x) = e−(e−x2)2 = e−e−2x2
The inner value t = f(x) ranges over (0,1]. Applying f to such a t gives e−t2, which ranges from e−1 (at t = 1) up toward, but never reaches, 1 (as t approaches 0).
Therefore range(f ∘ f) = [e−1,1).
2b(iii): Find g ∘ g
Try first: substitute (4y,x−1) for the input pair of the outer g.
Attempted it? Open the worked steps
2b(iii) · Compose the plane map
Both copies of g map ℝ2 to ℝ2, so the composition is defined on all of ℝ2.
Apply the rule twice:
(g ∘ g)(x, y) = g(4y, x − 1) = (4(x − 1), 4y − 1)
The result is an invertible affine map, so its range is ℝ2. Explicitly, any target (u,v) comes from x = u4 + 1 and y = v+14.
Exercise 3.3: Properties of the binomial coefficient
All three identities follow from the factorial definition; the last is Pascal’s rule.
Connected topic: Binomial coefficients (§2.4) introduces factorials and Pascal’s identity.
3i: Prove C(n,n) = C(n,0) = 1
Try first: substitute k = n and k = 0 into the factorial definition, using 0! = 1.
Attempted it? Open the worked steps
3i · The two endpoint choices
By definition C(n,k) = n!/[k!(n−k)!]. At k = n:
C(n, n) = n!n! · 0! = 1
At k = 0:
C(n, 0) = n!0! · n! = 1
Each coefficient counts the unique way to choose either all n objects or none.
3ii: Prove C(n,k) = C(n,n−k)
Try first: write both sides using factorials and compare the denominator factors.
Attempted it? Open the worked steps
3ii · Symmetry under exchanging chosen and omitted objects
For 0 ≤ k ≤ n:
C(n, n − k) = n!(n − k)! · (n − (n − k))! = n!(n − k)! · k!
Factorial multiplication is commutative, so this denominator equals k!(n−k)!. That is C(n,k), proving the identity.
Combinatorially, choosing k objects is equivalent to choosing the n−k objects left behind.
3iii: Prove Pascal’s identity
Try first: put the two left-hand fractions over the common denominator (k+1)!(n−k)!.
Attempted it? Open the worked steps
3iii · Add adjacent binomial coefficients
Using the factorial definition, the left side is:
C(n, k) + C(n, k + 1) = n!k!(n − k)! + n!(k + 1)!(n − k − 1)!
Use the common denominator (k+1)!(n−k)!:
= (k + 1)n! + (n − k)n!(k + 1)!(n − k)! = (n + 1)!(k + 1)!(n − k)!
The final fraction is C(n+1,k+1). The stated range 0 ≤ k ≤ n−1 ensures all factorials above have non-negative integer arguments.
Exercise 3.4: Elementary functions
Substituting x4 reduces the degree-eight polynomial to a quadratic. The number of real roots of the parameterized quadratic is controlled by its discriminant.
Connected topics: Elementary functions (§3.5) and the quadratic formula and inequalities (§2.3).
4a: Find and factor the real roots of f(x) = x8 − 3x4 − 4
Try first: set t = x4. Remember t cannot be negative, even though the resulting quadratic has two algebraic roots.
Attempted it? Open the worked steps
4a · Reduce to a quadratic in x4
Let t = x4 ≥ 0. Then f(x) = t2 − 3t − 4 factors as (t−4)(t+1).
Setting f(x) = 0 gives t = 4 or t = −1. The second value is impossible because t = x4 ≥ 0.
Thus x4 = 4. Equivalently x2 = 2, so the real roots are x = √2 and x = −√2.
Factor fully over ℝ:
x8 − 3x4 − 4 = (x − √2)(x + √2)(x2 + 2)(x2 + √2x + 1)(x2 − √2x + 1)
The remaining quadratics have no real roots: x2+2 is always positive, and each x2 ± √2x + 1 has discriminant 2−4 = −2. So the two displayed linear factors are all the real linear factors.
4b: Choose c so gc(x) = 3x2 + 2x + c has exactly one real root
Try first: set the discriminant to zero, then find the repeated root and write the factorization.
Attempted it? Open the worked steps
4b · One distinct root means a repeated root
For ax2+bx+c the discriminant is b2−4ac. Here a = 3 and b = 2, so Δ = 4−12c.
A real quadratic with non-zero leading coefficient has exactly one distinct real root precisely when Δ = 0. Therefore 4−12c = 0, giving c = 13.
The repeated root is −b2a = −26 = −13. The corresponding factorization is:
g1/3(x) = 3x2 + 2x + 13 = 3(x + 13)2
Check: expanding gives 3x2+2x+13, and its only distinct root is −13 (with multiplicity two).
Self-Study 3.5: Mathematical induction
The finite geometric-sum formula is proved by adding exactly one new power and simplifying over the fixed denominator.
Connected topic: Mathematical induction (§2.5) supplies the base-step method.
5: Prove the finite geometric-sum formula
Try first: use n = 1 as the base case; in the step, add xn+1 to the assumed sum.
Attempted it? Open the worked steps
5 · Induction for every x ≠ 1
Fix any real x ≠ 1. The claim is ∑k=0nxk = 1−xn+11−x.
Base n = 1: 1+x = 1−x21−x, since 1−x2 = (1−x)(1+x).
Induction hypothesis: suppose the formula holds for n. Add the next term:
∑k=0n+1xk = 1 − xn+11 − x + xn+1
Put the terms over one denominator and simplify:
= 1 − xn+1 + xn+1(1 − x)1 − x = 1 − xn+21 − x
This is the desired formula at n+1. Thus it holds for every n ∈ ℕ and each fixed x ∈ ℝ\{1}.
Self-Study 3.6: Power sums
Each identity is proved independently: the induction step adds the new term (n+1), (n+1)2, or (n+1)3 and factors the result.
Connected topic: Induction (§2.5) supports each proof; the sum notation is reviewed in §2.4.
6a: Prove ∑k=1n k = n(n+1)2
Try first: check n = 1, then add n+1 to the formula at n.
Attempted it? Open the worked steps
6a · Sum of the first n integers
Base: 1 = 1·22.
Assume ∑k=1nk = n(n+1)2. Then:
∑k=1n+1k = n(n + 1)2 + (n + 1) = (n + 1)(n + 2)2
This is the same formula with n replaced by n+1, proving it for all positive n.
6b: Prove ∑k=1n k2 = n(n+1)(2n+1)6
Try first: after adding (n+1)2, factor out n+1 and compare with the target at n+1.
Attempted it? Open the worked steps
6b · Sum of the first n squares
Base: 12 = 1·2·36.
Assume Sn = n(n+1)(2n+1)6. Add the next square:
Sn+1 = n(n + 1)(2n + 1)6 + (n + 1)2
Factor n+1 and combine:
= (n + 1)[n(2n + 1) + 6(n + 1)]6 = (n + 1)(2n2 + 7n + 6)6
Since 2n2+7n+6 = (n+2)(2n+3), this equals (n+1)(n+2)(2n+3)6, the formula at n+1.
6c: Prove ∑k=1n k3 = (n(n+1)2)2
Try first: add (n+1)3 to the squared induction hypothesis, then factor (n+1)2.
Attempted it? Open the worked steps
6c · Sum of the first n cubes
Base: 13 = (1·22)2.
Assume Sn = [n(n+1)2]2. The next sum is:
Sn+1 = [n(n + 1)2]2 + (n + 1)3
Factor (n+1)2:
= (n + 1)2[n24 + n + 1] = (n + 1)2(n + 2)24 = [(n + 1)(n + 2)2]2
This is the claimed formula for n+1, completing the induction.
Self-Study 3.7: Maps
Vertex form gives the range and symmetry of the quadratic. For compositions, the inner output must lie in the outer function’s domain.
Connected topics: Types of mappings (§3.2), inverse functions (§3.3), and composition (§3.4).
7a: Classify f, g and h
Try first: write f in vertex form, determine the actual range of g, and solve h(x,y,z)=(u,v) for arbitrary u,v.
Attempted it? Open the worked steps
7a · Injective, surjective and bijective
Complete the square for f:
f(x) = x2 − 4x + 3 = (x − 2)2 − 1
Its minimum is −1 at x = 2, so range(f) = [−1,∞). It is not injective because f(1)=f(3)=0, and it is not onto ℝ because it never takes values below −1.
Restrict f to [2,∞) and set its codomain to [−1,∞). It is then strictly increasing and onto that range. Solving y=(x−2)2−1 with x≥2 gives the inverse:
f−1(y) = 2 + √y + 1, for y ≥ −1
For g(x)=√1 − x, the stated domain x≤1 makes the radicand non-negative. The function is strictly decreasing, so it is injective. Its range is [0,∞), not all ℝ, so it is not surjective onto ℝ.
Keep the domain (−∞,1] but change the codomain to [0,∞). This is a bijection. Solving y=√1 − x gives x=1−y2, so g−1(y)=1−y2 for y≥0.
For h(x,y,z)=(x+y,y+z), every (u,v)∈ℝ2 is reached by choosing (x,y,z)=(u,0,v), hence h is surjective.
It is not injective: adding (−t,t,−t) to any input leaves both output coordinates unchanged. More explicitly, all preimages of (u,v) have the form (u−t,t,v−t), t∈ℝ. Thus h is not bijective.
7b(i): Form f ∘ s
Try first: substitute sin x into f, then find the range by examining the resulting quadratic for t=sin x∈[−1,1].
Attempted it? Open the worked steps
7b(i) · Compose f with sine
s maps ℝ to [−1,1], which lies in the domain of f. So f ∘ s is defined for every real x:
(f∘s)(x) = sin2x − 4sin x + 3
Let t=sin x. Complete the square: t2 − 4t + 3 = (t − 2)2 − 1. Its vertex t = 2 lies to the right of [−1, 1], so on this interval the parabola only falls: it decreases as t runs from −1 to 1.
At t=1 its value is 0; at t=−1 its value is 8. Since sine attains every value between −1 and 1, the range is [0,8].
7b(ii): Form g ∘ f
Try first: require f(x)≤1 before substituting it under the square root.
Attempted it? Open the worked steps
7b(ii) · Restrict inputs to g’s domain
g accepts inputs at most 1. Since f(x)=(x−2)2−1, the composition domain satisfies:
(x − 2)2 − 1 ≤ 1 ⇔ (x − 2)2 ≤ 2 ⇔ 2 − √2 ≤ x ≤ 2 + √2
On that interval:
(g∘f)(x) = √1 − f(x) = √2 − (x − 2)2
The radicand ranges from 0 at the two endpoints to 2 at x=2. Therefore the range is [0,√2].
7b(iii): Form g ∘ s
Try first: check whether every value of sin x lies in g’s domain, then use the extreme sine values for the range.
Attempted it? Open the worked steps
7b(iii) · Sine always stays in the allowed domain
For every real x, sin x≤1. Thus s(x) belongs to the domain (−∞,1] of g and g∘s has domain ℝ.
The rule is:
(g∘s)(x) = √1 − sin x
Since −1≤sin x≤1, the radicand ranges from 0 to 2, and both endpoints occur. The range is [0,√2].
7b(iv): Form g ∘ g
Try first: require the output of the inner g to be at most 1, not just that the original x is at most 1.
Attempted it? Open the worked steps
7b(iv) · Restrict the inner output
The first g requires x≤1. Its output √1 − x must also be in g’s domain, so √1 − x≤1. Squaring non-negative sides gives x≥0.
The composite domain is therefore [0,1], and its rule is:
(g∘g)(x) = √1 − √1 − x
As x increases from 0 to 1, the inner square root decreases from 1 to 0, so the outer expression increases continuously from 0 to 1. The range is [0,1].
Self-Study 3.8: Finite decimals and computer arithmetic
Finite decimals form a set closed under addition and multiplication, but they do not include every rational. Truncation gives controlled approximations; floating-point arithmetic can change familiar algebraic laws.
Connected topics: Number systems (§2.1) and real-number arithmetic (§2.2).
8a: Prove D is closed under addition and multiplication
Try first: put two denominators over a common power of 10 for the sum; multiply numerators and denominators for the product.
Attempted it? Open the worked steps
8a · Closure of finite decimals
Take m10n and p10r in D, where m,p∈ℤ and n,r∈ℕ0. Let N=max(n,r). Then:
m10n + p10r = m · 10N−n + p · 10N−r10N
The numerator is an integer and N is a non-negative integer, so the sum is in D.
The product is:
(m10n)(p10r) = mp10n+r
Again the numerator is an integer and the exponent is non-negative; therefore the product is in D.
8b: Prove 13 ∉ D
Try first: assume 13=m10n and examine the resulting equality modulo 3.
Attempted it? Open the worked steps
8b · A prime factor missing from powers of 10
If 13 were in D, then 13=m10n for some integer m and n≥0. Cross-multiplying gives 10n=3m.
The right side is divisible by 3. But 10n leaves remainder 1 when divided by 3: for n ≥ 1, expand 10n=(1+9)n; every term after the initial 1 is divisible by 3. For n=0 the value is also 1. Contradiction.
Thus 13 is not a finite decimal fraction.
8c: Prove the truncation bounds
Try first: apply the defining inequality for floor(10nx), then divide by the positive number 10n.
Attempted it? Open the worked steps
8c · Bound the discarded tail
Let m be the greatest integer not exceeding 10nx. By definition, m≤10nx<m+1.
Divide through by 10n>0:
m10n ≤ x < m10n + 110n
Since xn=m10n, this says 0≤x−xn<10−n.
Also xn has integer numerator m and denominator 10n, so xn∈D.
8d: Compare the two floating-point sums
Try first: evaluate the parenthesized operations in order and remember that a double cannot represent every integer near 1016.
Attempted it? Open the worked steps
8d · Rounding breaks associativity
For a=1016, b=−1016, and c=1, the first grouping cancels the large values exactly before adding 1:
(a + b) + c = 0 + 1 = 1
Near 1016, adjacent double-precision values are 2 apart. The exact value b+c=−(1016−1) lies halfway between representable values and rounds to −1016 under round-to-nearest, ties-to-even.
Therefore:
a + (b + c) = 1016 + (−1016) = 0
The results differ, so computer floating-point addition is not associative in general. The real-number associative law remains true; rounding after intermediate operations is what changes the computed result.
Self-Study 3.9: Fibonacci numbers in Pascal’s triangle
The diagonal sums in Pascal’s triangle satisfy the same two-step recurrence as the Fibonacci sequence.
Connected topics: Binomial coefficients and Pascal’s identity (§2.4), and induction (§2.5).
9a: Compute F1 through F10
Try first: start from F1=F2=1 and add the previous two values at each step.
Attempted it? Open the worked steps
9a · Iterate the recurrence
Start with F1=1 and F2=1.
Then F3=1+1=2, F4=2+1=3, F5=3+2=5, and F6=5+3=8.
Continue: F7=13, F8=21, F9=34, F10=55.
Answer: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55.
9b: List Pascal’s rows 0–7 and compute D0–D7
Try first: for each n, add C(n−k,k) across k; use the stated zero convention when k>n−k.
Attempted it? Open the worked steps
9b · Read the diagonal sums
The first eight rows of Pascal’s triangle are:
Row n Coefficients C(n,k), k=0,…,n 0 1 1 1, 1 2 1, 2, 1 3 1, 3, 3, 1 4 1, 4, 6, 4, 1 5 1, 5, 10, 10, 5, 1 6 1, 6, 15, 20, 15, 6, 1 7 1, 7, 21, 35, 35, 21, 7, 1 Compute the specified sums (terms with k>n−k are zero):
D0 = 1
D1 = 1
D2 = 1 + 1 = 2
D3 = 1 + 2 = 3
D4 = 1 + 3 + 1 = 5
D5 = 1 + 4 + 3 = 8
D6 = 1 + 5 + 6 + 1 = 13
D7 = 1 + 6 + 10 + 4 = 21
These are the Fibonacci numbers F1 through F8: Dn appears to equal Fn+1.
9c: Prove Dn = Fn+1 by induction
Try first: derive Dn+2=Dn+1+Dn from Pascal’s identity, then use two initial values.
Attempted it? Open the worked steps
9c · Match the Fibonacci recurrence
Base cases: D0=C(0,0)=1=F1, and D1=C(1,0)+C(0,1)=1+0=1=F2. Two are needed because both recurrences depend on the previous two terms.
For the recurrence, use Pascal’s identity inside the sum:
Dn+2 = ∑k=0n+1C(n + 2 − k, k) = ∑k=0n+1[C(n + 1 − k, k) + C(n + 1 − k, k − 1)]
The first sum is Dn+1 (out-of-range end terms are zero). In the second, set j=k−1; its non-zero terms become C(n−j,j), summing to Dn. Hence Dn+2=Dn+1+Dn.
Induction step: assume Dn=Fn+1 and Dn+1=Fn+2. Then Dn+2=Fn+2+Fn+1=Fn+3 by the Fibonacci recurrence.
The two base cases and this step prove Dn=Fn+1 for every n∈ℕ0.
Personal worked-solution guide based on the supplied Mathematics for Engineers I Exercise Sheet 3, rewritten in my own words; no exercise text or figures are reproduced. Not an official FAU publication; check course details against the current material. Made by Thanate Amornjiraporn (Focus).