Calculus UDFs (methods_udfs / m)
High-performance calculus functions providing exact symbolic anti-derivatives, auto-splitting bounded areas, and instant method marks.
methods_udfs\avg_val_roc(f, x, a, b)
f: Function expression \(f(x)\)x: Independent variablea: Interval lower boundb: Interval upper bound
Exam question example:
A passenger gondola rotates such that its height above the ground in metres is given by $h(t) = -60\cos\left(\frac{\pi t}{15}\right) + 75$ for $t \in [0, 7.5]$.
i. Find the average height of the gondola above the ground over the first 7.5 minutes, in metres.
ii. Find the average rate of change of the height of the gondola over the interval $[0, 7.5]$.
CAS Output:
methods_udfs\bounded_area(f, g, x, xmin, xmax)
f: Upper or first curve expression \(f(x)\)g: Lower or second curve expression \(g(x)\) (use 0 for \(x\)-axis)x: Integration variablexmin: Lower integration limitxmax: Upper integration limit
Exam question example:
Let $f(x) = \sin(x) + 1$ and $g(x) = \frac{1}{2\pi^2}x^3 - \frac{3}{2\pi}x^2 + x + 1$ for $x \in [0, 2\pi]$.
Find the total area of the regions enclosed between the graphs of $y = f(x)$ and $y = g(x)$ over the interval $[0, 2\pi]$.
CAS Output:
methods_udfs\integ_by_recog(bigf, g, x, xmin, xmax)
bigf: Known anti-derivative or differentiated function \(F(x)\)g: Target integrand \(g(x)\) to be integratedx: Integration variablexmin: Lower bound for definite evaluationxmax: Upper bound for definite evaluation
Exam question example:
Given that $\frac{d}{dx}\left(x\log_e(x)\right) = 1 + \log_e(x)$, use integration by recognition to find the exact value of $\int_1^e \log_e(x)\,dx$.
CAS Output:
methods_udfs\interval_minmax(f, var, xmin, xmax)
f: Function expression \(f(x)\)var: Independent variablexmin: Domain interval lower boundxmax: Domain interval upper bound
Exam question example:
A rain gutter has cross-sectional area $A(w) = w(12 - 2w)$ where $w \in [0, 6]$ is the width in centimetres.
Find the maximum cross-sectional area of the gutter and the value of $w$ for which this occurs.
CAS Output:
methods_udfs\linear_u_sub(int_val, m, c, a, k, x1, x2)
int_val: Given value of integral \(I = \int_{u_1}^{u_2} f(u)\,du\)m: Linear slope multiplier \(m\) in \(u = mx + c\)c: Linear shift constant \(c\) in \(u = mx + c\)a: External coefficient \(a\) in \(a\int f(mx+c)\,dx\)k: Constant term \(k\) added to the integrandx1: New definite lower bound \(x_1\)x2: New definite upper bound \(x_2\)
Exam question example:
If $\int_1^5 f(u)\,du = 3$, find the value of $\int_0^2 \left(5f(2x + 1) - 4\right)\,dx$.
CAS Output:
methods_udfs\newton_method(f, x, x0, n)
f: Function expression \(f(x)\) whose root is soughtx: Independent variablex0: Initial approximation \(x_0\)n: Number of Newton-Raphson iterations to perform
Exam question example:
Use Newton's method with initial estimate $x_0 = 0$ to find the next three approximations $x_1, x_2, x_3$ to the solution of $2^x - x^2 = 0$.
CAS Output:
methods_udfs\stat_pts_poi(f, var)
f: Function expression \(f(x)\)var: Independent variable
Exam question example:
Let $f(x) = \frac{x}{x^2+1}$ for $x \in \mathbb{R}$.
a. Find the coordinates of the stationary points of $f$ and state their nature.
b. Find the coordinates of all points of inflection of the graph of $f$.
CAS Output:
methods_udfs\tangent_normal(f, var, a)
f: Function expression \(f(x)\)var: Independent variablea: \(x\)-coordinate of contact point \(x = a\)
Exam question example:
Find the equations of the tangent line and the normal line to the graph of $y = \frac{x}{x^2+1}$ at $x = 0$, and find all axis intercepts.
CAS Output:
methods_udfs\trapezoid_rule(f, var, a, b, n)
f: Function expression \(f(x)\)var: Independent variablea: Interval lower boundb: Interval upper boundn: Number of equal strips (trapeziums)
Exam question example:
Use the trapezoidal rule with 2 strips of equal width to approximate the value of $\int_0^1 (x^3 + 1)\,dx$. State the percentage error of this approximation.
CAS Output: