




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





How to use this guide. This guide covers the topics in a typical first calculus course for business, economics, IT and computer science students: limits and continuity, the derivative and its rules, using derivatives to sketch curves and solve optimisation problems (maximum profit, minimum average cost, best box size), and basic integration with areas and totals. Each section gives the definitions and rules, then worked examples set out the way exam answers are expected, with a business or computing application wherever one fits. Every limit, derivative, critical point, optimum, integral and area in this guide was checked with a Python script (sympy, exact arithmetic) written for it.
Notation used. f′(x), dy/dx and d/dx[f(x)] all mean the derivative; f″(x) is the second derivative. limx→a
f(x) is the limit as x approaches a; x → a⁻ and x → a⁺ are the left-hand and right-hand approaches. ∫ f(x)
dx is the indefinite integral (antiderivative) and ∫ab^ f(x) dx the definite integral. ln is the natural
logarithm (base e ≈ 2.71828). In business examples q is quantity, p is price, C(q) is cost, R(q) = pq is revenue and P(q) = R − C is profit.
Contents
Functions used in business and computing Limits Continuity The derivative from first principles Rules of differentiation Curve sketching: increasing, decreasing, maxima, minima and concavity Optimisation and marginal analysis More applications: Newton's method, L'Hôpital's rule and growth rates Integration: antiderivatives and substitution Definite integrals, area and applications Summary table Practice questions and answers
Function type Form Typical use Linear f(x) = mx + c Cost with fixed cost c and unit cost m; straight-line demand Quadratic f(x) = ax² + bx + c Revenue R = (a − bq)q; projectile and area problems Polynomial f(x) = aₙxⁿ + … + a₀ Cost curves; running time of nested loops Rational f(x) = P(x)/Q(x) Average cost C(q)/q Exponential f(x) = a·eᵏˣ or a·bˣ Compound growth, user growth, decay Logarithmic f(x) = ln x, log₂ x Binary search steps, diminishing returns
The domain is the set of inputs allowed (no division by zero, no square roots of negatives, ln x only for x > 0, and in business usually q ≥ 0). A break-even point is where R(q) = C(q).
2. Limits
limx→a f(x) = L means f(x) gets as close as we like to L when x is close enough to a (but not equal to a).
The value f(a) itself does not matter, and need not even exist.
Seeing a limit numerically. sin(x)/x is undefined at x = 0, but sin(0.5)/0.5 = 0.9588511, sin(0.1)/0.1 = 0.9983342 and sin(0.01)/0.01 = 0.9999833, so limx→0 sin x / x = 1 (x in radians).
Limit laws. If the separate limits exist, the limit of a sum, difference, product, constant multiple or quotient (denominator limit ≠ 0) is the sum, difference, product, multiple or quotient of the limits. So for polynomials, and for rational functions where the denominator is not zero, just substitute : limx→2 (x² +
3x) = 4 + 6 = 10.
The 0/0 form. If substitution gives 0/0, simplify first.
Limit Method Working Answer limx→3 (x² − 9)/(x −
Factorise (x − 3)(x + 3)/(x − 3) = x + 3 → 3 + 3 6
limx→2 (x³ − 8)/(x² −
Factorise (x − 2)(x² + 2x + 4) / [(x − 2)(x + 2)] → 12/4 3
limx→0 (√(x + 4) − 2)/x
Rationalise Multiply by (√(x + 4) + 2): x / [x(√(x + 4) + 2)] = 1/(√(x + 4) + 2) → 1/
One-sided limits. f(x) = |x|/x equals −1 for x < 0 and +1 for x > 0. So limx→0⁻ = −1 and limx→0⁺ =
+1. Because they differ, limx→0 |x|/x does not exist. A two-sided limit exists only when both one-sided
limits exist and are equal.
Infinite limits. 1/x → +∞ as x → 0⁺ and → −∞ as x → 0⁻; 1/x² → +∞ from both sides. The line x = 0 is a vertical asymptote.
Limits at infinity. For a rational function, divide top and bottom by the highest power of x in the denominator:
limx→∞ (3x² + 2x)/(5x² − 1) = lim (3 + 2/x)/(5 − 1/x²) = 3/5 , so y = 3/5 is a horizontal asymptote.
Quick rule: degree of top < degree of bottom → 0; equal degrees → ratio of leading coefficients; top degree bigger → ±∞.
The number e. (1 + 1/n)ⁿ equals 2 at n = 1, 2.593742 at n = 10, 2.704814 at n = 100 and 2.716924 at
n = 1,000, approaching e ≈ 2.718282. This is why continuous compounding gives FV = PV·ert.
3. Continuity
f is continuous at x = a when all three hold: (1) f(a) is defined; (2) limx→a f(x) exists; (3) the limit
equals f(a). Polynomials, eˣ, sin x and cos x are continuous everywhere; rational functions are continuous wherever the denominator is non-zero.
Discontinuity Example What happens Removable (hole) (x² − 9)/(x − 3) at x = 3 Limit exists (6) but f(3) is undefined Jump |x|/x at 0; a tax bracket or shipping-fee step One-sided limits differ Infinite 1/x at 0 Function grows without bound
Example 3.1 (choosing a constant). f(x) = kx + 1 for x < 2 and f(x) = x² − k for x ≥ 2. For continuity at 2 the two pieces must meet: 2k + 1 = 4 − k, so 3k = 3 and k = 1 (both sides then equal 3).
Intermediate Value Theorem (IVT). If f is continuous on [a, b] and N lies between f(a) and f(b), then f(c) = N for some c in (a, b). For f(x) = x³ + x − 1: f(0) = −1 < 0 and f(1) = 1 > 0, so f has a root between 0 and 1. Repeatedly halving the interval to trap the root is the bisection method , the same idea as binary search.
6. Curve sketching: increasing, decreasing, maxima,
minima and concavity
f′(x) > 0 on an interval → f is increasing ; f′(x) < 0 → decreasing. Critical points are where f′(x) = 0 or f′ does not exist. First derivative test: f′ changes + to − → local maximum; − to + → local minimum. Second derivative test: at a critical point, f″ < 0 → maximum; f″ > 0 → minimum; f″ = 0 → test fails, use the first derivative test. f″ > 0 → concave up (holds water); f″ < 0 → concave down. A point where concavity changes is an inflection point. On a closed interval [a, b], the absolute max and min are among the critical points and the endpoints.
Worked sketch: f(x) = x³ − 6x² + 9x + 1.
f′(x) = 3x² − 12x + 9 = 3(x − 1)(x − 3), so the critical points are x = 1 and x = 3. f″(x) = 6x − 12. f″(1) = −6 < 0 → local maximum (1, 5) ; f″(3) = 6 > 0 → local minimum (3, 1). f″(x) = 0 at x = 2 and changes sign there → inflection point (2, 3).
Interval x < 1 1 < x < 3 x > 3 Sign of f′ + − + f is Increasing Decreasing Increasing Concavity Down for x < 2, up for x > 2
Plot points: f(0) = 1, f(1) = 5, f(2) = 3, f(3) = 1, f(4) = 5, f(−1) = −15. On the interval [0, 4], the absolute maximum is 5 (at x = 1 and x = 4) and the absolute minimum is 1 (at x = 0 and x = 3).
7. Optimisation and marginal analysis
Method: (1) draw and label; (2) write the quantity to optimise as a function of one variable, using any constraint; (3) state the domain; (4) differentiate and solve f′ = 0; (5) confirm max or min (second derivative test or endpoints); (6) answer the question in words with units.
Example 7.1 (open box). Squares of side x cm are cut from the corners of a 30 cm × 30 cm sheet and the sides folded up. V(x) = x(30 − 2x)², domain 0 < x < 15. V′(x) = (30 − 2x)² − 4x(30 − 2x) = (30 − 2x) (30 − 6x) = 12(x − 5)(x − 15). In the domain, V′ = 0 only at x = 5. V″(5) = −120 < 0, so it is a maximum: V = 5 × 20² = 2,000 cm³ (compare V(3) = 1,728 and V(7) = 1,792).
Marginal analysis. Marginal cost MC = C′(q) and marginal revenue MR = R′(q) estimate the change from producing one more unit. Profit P(q) = R(q) − C(q) is maximised where MR = MC (P′ = 0) and P″ <
Example 7.2 (maximum profit). Demand p = 100 − 0.5q, cost C(q) = 20q + 1,000. R(q) = pq = 100q − 0.5q², so MR = 100 − q; MC = 20. MR = MC gives q = 80 , P″ = −1 < 0, so this is a maximum. Price p = 100 − 40 = $60 ; R = 4,800, C = 2,600, maximum profit $2,200. (Revenue alone would be maximised at q = 100, where MR = 0, giving R = $5,000; maximum revenue and maximum profit are different goals.)
Example 7.3 (minimum average cost). C(q) = 0.02q² + 8q + 5,000. Average cost AC(q) = C/q = 0.02q + 8 + 5,000/q. AC′(q) = 0.02 − 5,000/q² = 0 gives q² = 250,000, q = 500 units , AC = 10 + 8 + 10 = $28 per unit. At this point MC = 0.04(500) + 8 = 28 = AC: average cost is lowest where marginal cost crosses it.
Marginal cost as an approximation. For the same cost function, MC(100) = 0.04(100) + 8 = $12 , and the exact cost of the 101st unit is C(101) − C(100) = $12..
Price elasticity of demand. E = (dq/dp) × p/q. For q = 200 − 4p at p = 20 (q = 120): E = −4 × 20/ = −0.67 , so demand is inelastic and a price rise would raise revenue. Demand is unit elastic (|E| = 1) at p = 25, which is exactly where revenue R = 200p − 4p² is maximised.
8. More applications: Newton's method, L'Hôpital's rule
and growth rates
Newton's method finds roots numerically: xn+1 = xn − f(xn)/f′(xn). For f(x) = x³ + x − 1 (root between
0 and 1, section 3), f′(x) = 3x² + 1, starting at x₀ = 1:
n xₙ f(xₙ) f′(xₙ) xₙ₊₁ 0 1 1 4 0. 1 0.75 0.171875 2.6875 0. 2 0.6860465 0. 3 0.6823396 0.
The root is x ≈ 0.6823278 ; the number of correct digits roughly doubles at each step. A short program:
f = lambda x: x3 + x - 1 df = lambda x: 3x*2 + 1 x = 1. for n in range(4): x = x - f(x) / df(x) print(n + 1, round(x, 7))
L'Hôpital's rule. If a limit has the form 0/0 or ∞/∞, then lim f/g = lim f′/g′ (when the right side exists). limx→0 (eˣ − 1)/x = lim eˣ/1 = 1.
Comparing growth rates (algorithm analysis). To compare running times, find the limit of their ratio as n → ∞:
lim (ln n)/n = lim (1/n)/1 = 0 , so log n grows more slowly than n (binary search beats linear search). lim (n ln n)/n² = lim (ln n)/n = 0 , so merge sort (n log n) beats bubble sort (n²) for large inputs. lim n²/2ⁿ = 0 (apply L'Hôpital twice), so any polynomial is eventually beaten by an exponential.
9. Integration: antiderivatives and substitution
F is an antiderivative of f if F′ = f. The indefinite integral includes a constant: ∫ f(x) dx = F(x) + C.
Rule Formula Power (n ≠ −1) ∫ xⁿ dx = xⁿ⁺¹/(n + 1) + C Reciprocal ∫ 1/x dx = ln|x| + C Exponential ∫ eᵏˣ dx = eᵏˣ/k + C Trigonometric ∫ cos x dx = sin x + C; ∫ sin x dx = −cos x + C Linearity ∫ [af + bg] dx = a∫f dx + b∫g dx
Examples.
∫ (6x² − 4x + 5) dx = 2x³ − 2x² + 5x + C ∫ (3/x + e2x) dx = 3 ln|x| + ½e2x^ + C ∫ x−1/2^ dx = x1/2/(1/2) = 2√x + C Always check by differentiating: d/dx[2x³ − 2x² + 5x] = 6x² − 4x + 5 ✓.
Substitution (reverse chain rule). Look for a function and its derivative.
∫ 2x(x² + 1)⁵ dx: let u = x² + 1, du = 2x dx → ∫ u⁵ du = u⁶/6 = (x² + 1)⁶/6 + C. ∫ x·ex²^ dx: let u = x², du = 2x dx → ½∫ eᵘ du = ½ex²^ + C.
11. Summary table
Topic Key rule Example from this guide Limits (0/0) Factorise or rationalise, then substitute (x² − 9)/(x − 3) → 6; (√(x + 4) − 2)/x → 1/ Limits at ∞ Divide by the highest power (3x² + 2x)/(5x² − 1) → 3/ One-sided limits Two-sided limit exists only if they agree |x|/x: −1 and 1, so no limit Continuity f(a) defined, limit exists, limit = f(a) k = 1 joins the two pieces Derivative lim [f(x + h) − f(x)]/h x² − 3x → 2x − 3 Tangent line y = f(a) + f′(a)(x − a) y = x − 2 for x³ − 2x at x = 1 Product / quotient f′g + fg′; (f′g − fg′)/g² (2x + 1)/(x − 3) → −7/(x − 3)² Chain rule f′(g(x))·g′(x) (3x² − 5)⁴ → 24x(3x² − 5)³ Critical points f′ = 0; test with f″ Max (1, 5), min (3, 1), inflection (2, 3) Optimisation One variable, solve f′ = 0, check Box x = 5 cm, V = 2,000 cm³ Maximum profit MR = MC q = 80, p = $60, profit $2, Minimum average cost AC′ = 0, where MC = AC q = 500, AC = $ Newton's method xₙ₊₁ = xₙ − f/f′ Root of x³ + x − 1 ≈ 0. Antiderivatives ∫xⁿ = xⁿ⁺¹/(n + 1) + C ∫(6x² − 4x + 5) = 2x³ − 2x² + 5x + C Substitution u = inner function ∫2x(x² + 1)⁵ = (x² + 1)⁶/6 + C Definite integral F(b) − F(a) ∫₀² x² dx = 8/ Area between curves ∫ (top − bottom) 4 − x² and x + 2 → 9/ Consumer surplus ∫ (demand − price) dq $
12. Practice questions
Find limx→4 (x² − 16)/(x − 4). Find limx→0 (√(x + 9) − 3)/x. Find limx→∞ (4x³ − x)/(2x³ + 5x²) and state the horizontal asymptote. f(x) = ax² for x ≤ 2 and f(x) = 3x + 2 for x > 2. Find a so that f is continuous at x = 2. Use the definition of the derivative to differentiate f(x) = 3x² + 2x. Differentiate y = 7x⁴ − 5/x + 3√x. Differentiate y = (2x − 1)(x³ + 4) using the product rule and simplify. Differentiate y = x²/(x + 1) and simplify. Differentiate y = √(4x² + 9) and evaluate the derivative at x = 2. Differentiate y = x²e−x^ and find where the derivative is zero. Find the equation of the tangent to y = x² − 4x + 1 at x = 3. Find dy/dx for xy + y² = 7 and its value at the point (6, 1). For f(x) = 2x³ − 3x² − 12x + 5, find and classify the critical points, and find the inflection point. A farmer has 200 m of fencing to enclose a rectangular field along a straight wall (no fence needed on the wall side). Find the dimensions that give the largest area. A firm has R(q) = 120q − 0.4q² and C(q) = 2,000 + 40q. Find the profit-maximising output, the maximum profit and the price charged. C(q) = 0.5q² + 10q + 800. Find the output that minimises average cost, the minimum average cost, and show MC = AC there. Find ∫ (8x³ − 6x + 2) dx and evaluate ∫ 02 (8x³ − 6x + 2) dx. Find ∫ 3x²(x³ + 2)⁴ dx. Find the area enclosed between y = 6 − x² and y = 2. Marginal cost is MC = 3q² − 12q + 20 and fixed cost is $100. Find the total cost function and the extra cost of raising output from 2 to 5 units.
Answers
1. (x − 4)(x + 4)/(x − 4) = x + 4 → 8. 2. Multiply by (√(x + 9) + 3): x/[x(√(x + 9) + 3)] = 1/(√(x + 9) + 3) → 1/(3 + 3) = 1/. 3. Divide by x³: (4 − 1/x²)/(2 + 5/x) → 4/2 = 2 ; horizontal asymptote y = 2. 4. Left value f(2) = 4a; right limit 3(2) + 2 = 8. So 4a = 8 and a = 2. 5. f(x + h) − f(x) = 3(x + h)² + 2(x + h) − 3x² − 2x = 6xh + 3h² + 2h. Divide by h: 6x + 3h + 2 → f′(x) = 6x + 2. 6. y = 7x⁴ − 5x⁻¹ + 3x1/2, so y′ = 28x³ + 5/x² + 3/(2√x). 7. y′ = 2(x³ + 4) + (2x − 1)(3x²) = 2x³ + 8 + 6x³ − 3x² = 8x³ − 3x² + 8. 8. y′ = [2x(x + 1) − x²(1)]/(x + 1)² = (x² + 2x)/(x + 1)² = x(x + 2)/(x + 1)². 9. y′ = ½(4x² + 9)−1/2^ × 8x = 4x/√(4x² + 9). At x = 2: 8/√25 = 8/5 = 1.. 10. y′ = 2xe−x^ − x²e−x^ = xe−x(2 − x). Since e−x^ > 0, y′ = 0 at x = 0 and x = 2. 11. f(3) = 9 − 12 + 1 = −2; f′(x) = 2x − 4, f′(3) = 2. Tangent: y = −2 + 2(x − 3), i.e. y = 2x − 8. 12. y + xy′ + 2yy′ = 0 → y′ = −y/(x + 2y). At (6, 1) (check: 6 + 1 = 7 ✓): y′ = −1/8. 13. f′(x) = 6x² − 6x − 12 = 6(x − 2)(x + 1), so x = −1 and x = 2. f″(x) = 12x − 6: f″(−1) = −18 < 0 → local maximum (−1, 12) ; f″(2) = 18 > 0 → local minimum (2, −15). f″ = 0 at x = 1/2 → inflection point (1/2, −3/2). 14. Let x be each side perpendicular to the wall: the side parallel to the wall is 200 − 2x, so A = x(200 − 2x) = 200x − 2x². A′ = 200 − 4x = 0 → x = 50 m , other side 100 m , maximum area 5,000 m² (A″ = − < 0). 15. P(q) = 120q − 0.4q² − 2,000 − 40q = 80q − 0.4q² − 2,000. P′ = 80 − 0.8q = 0 → q = 100 (equivalently MR = 120 − 0.8q = MC = 40). P(100) = 8,000 − 4,000 − 2,000 = $2,000. Price = R/q = 8,000/100 = $. 16. AC = 0.5q + 10 + 800/q; AC′ = 0.5 − 800/q² = 0 → q² = 1,600, q = 40. AC(40) = 20 + 10 + 20 = $50. MC = q + 10 = 50 = AC ✓. 17. ∫ = 2x⁴ − 3x² + 2x + C. From 0 to 2: 2(16) − 3(4) + 2(2) = 32 − 12 + 4 = 24. 18. Let u = x³ + 2, du = 3x² dx: ∫ u⁴ du = (x³ + 2)⁵/5 + C. 19. 6 − x² = 2 at x = ±2. Area = ∫−2^2 (6 − x² − 2) dx = [4x − x³/3]−2^2 = 16/3 − (−16/3) = 32/3 ≈ 10.. 20. C(q) = q³ − 6q² + 20q + K, and C(0) = 100 gives C(q) = q³ − 6q² + 20q + 100. Extra cost = C(5)
− C(2) = 175 − 124 = $51 (or ∫ 25 MC dq = 51).