aosor (Function)

Command last updated 6/3/2024.

aosor(f, x, a, b)

Returns the area of the surface obtained by rotating the graph of f between x = a and x = b around the x-axis.

Example

Find the integral that gives the area of the surface of revolution obtained by rotating the graph of \(y = \cos^{-1}(x)\) between \(y = 0\) and \(y = \dfrac{\pi}{2}\) around the \(y\)-axis. (2023 Specialist Exam 2 Section A Question 11)

aosor(cos(y), y, 0, pi/2)

Contributed by Nhan

aosort (Function)

Command last updated 6/3/2024.

aosort(x, y, t, a, b)

Returns the area of the surface obtained by rotating the curve between t = a and t = b around the x-axis.

Example

Find the area of the surface of revolution obtained by rotating the curve defined by \(x = t + 1\) and \(y = t^2\) between \(t=0\) and \(t=2\) around the \(x\)-axis.

aosort(t+1, t^2, t, 0, 2)

Contributed by Nhan

arcLenv (Function)

Command last updated 23/11/2022.

arcLenv(r, t, a, b)

Returns the arc length of r between t = a and t = b.

Example

Find the arc length of the curve described by \(x = 2 \cos(t) + 2\) and \(y = (e-2) \sin(t)\), between \(t = \dfrac{\pi}{2}\) and \(t = \pi\). (2023 Specialist Exam 2 Section B Question 1f)

arcLenv([2cos(t)+2, (e-2)sin(t)], t, pi/2, pi)

Contributed by Nathan Chen

aroc (Function)

Command last updated 4/7/2022.

aroc(f, x, a, b)

Returns the average rate of change of f between x=a and x=b.

Example

Find the average rate of change of \(h(t) = -60 \cos \left( \dfrac{\pi t}{15} \right) + 75\), between \(t=0\) and \(t=\dfrac{30}{4}\). (2023 Methods Exam 2 Section B Question 2c)

aroc(h(t), t, 0, 30/4)

Contributed by Nhan

avalue (Function)

Command last updated 4/7/2022.

avalue(f, x, a, b)

Returns the average value of f between x=a and x=b.

Example

Find the average value of \(h(t) = -60 \cos \left( \dfrac{\pi t}{15} \right) + 75\), between \(t=0\) and \(t=\dfrac{30}{4}\). (2023 Methods Exam 2 Section B Question 2b)

avalue(h(t), t, 0, 30/4)

Contributed by Nhan

axisints (Program)

Command last updated 9/7/2022.

IMPORTANT - requires printpts stored in the same folder as your current folder or in the “library” folder (see the Variable Manager).

axisints(f, l, u)

Returns a list of coordinates of x-axis and y-axis intercepts on f in the domain xϵ[l, u].

Example

Find the axis intercepts of \(y = x(x - 2)(x + 1)\). (2023 Methods Exam 2 Section B Question 1a)

axisints(x(x-2)(x+1), -∞, ∞)

Contributed by Nhan

biCDf (Function)

Command last updated 4/7/2022.

biCDf(l, u, n, p)

l and u should evaluate to numbers, not expressions in terms of unknown variables. Prefer to use discrete if it would be more appropriate.

Equivalent to the builtin binomialCDf(l, u, n, p), but returns exact values in Standard mode whereas binomialCDf can return only decimal answers.

Returns the probability of between and including l and u successes from n trials with p probability of success each trial.

Example

Let \(X \sim \mathrm{Bi}(7, p)\). Find \(\mathrm{Pr}(2 \leq X \leq 3)\) as a polynomial in terms of \(p\). (2017 Methods Exam 2 Section B Question 3f)

biCDf(2, 3, 7, p)

Contributed by Nhan

biPDf (Function)

Command last updated 4/7/2022.

biPDf(x, n, p)

Equivalent to the builtin binomialPDf(x, n, p), but returns exact values in Standard mode whereas binomialPDf can return only decimal answers.

Returns the probability of x successes from n trials with p probability of success each trial.

Example

A box contains \(n\) green balls and \(m\) red balls. A ball is selected at random, then replaced in the box. Find the probability that in 8 such selections a green ball is selected at least once. (2023 Methods Exam 2 Section A Question 8)

1 - biPDf(0, 8, n(n+m))

Contributed by Nhan

bmeth (Program)

Command last updated 7/2/2023.

bmeth(f, xl, xh, n)

Applies the bisection method for n iterations. Prints the details of each iteration and returns the coordinates following the n-th iteration.

Example

Find the \(x\)-value for a root of \(\sin(x)\) estimated by the bisection method, with an initial range of \([3, 5]\), after 2 iterations.

bmeth(sin(x), 3, 5, 2)

Contributed by Nhan

cis (Function)

Command last updated 23/11/2022.

cis(θ)

Returns cos(θ) + i sin(θ).

Example

Find \(\mathrm{cis} \left( -\dfrac{2\pi}{7} \right) + \mathrm{cis} \left( -\dfrac{12\pi}{7} \right)\) in the form \(A \cos(B \pi)\). (2023 Specialist Exam 2 Section B Question 2fi)

cis(2pi/7)+cis(12pi/7)

Contributed by Nhan

cosec (Function)

Command last updated 23/11/2022.

cosec(θ)

Returns the cosecant of θ.

Example

Find the largest set of values of \(x\) for which \(\cos(x) > \dfrac{1}{4} \csc(x)\). (2017 Specialist Exam 2 Section A Question 2)

solve(cos(x)=cosec(x)/4,0<x<2pi, x)

Contributed by Nhan

cot (Function)

Command last updated 23/11/2022.

cot(θ)

Returns the cotangent of θ.

Example

Find the cotangent of \(-\dfrac{2\pi}{3}\).

cot(-2pi/3)

Contributed by Nhan

difft (Function)

Command last updated 23/11/2022.

difft(x, y, t, n)

n must be 0, 1 or 2.

Returns \(\dfrac{ d^{n} y }{ d x^{n} }\).

Example

Find \(\dfrac{dy}{dx}\) when \(t=2\) given that \(x = \dfrac{6t}{t+1}\) and \(y = \dfrac{-8}{t^2 + 4}\). (2023 Specialist Exam 2 Section A Question 9)

difft(6t/(t+1), -8/(t^2+4), t, 1), t=2

Contributed by Nhan

discrete (Function)

Command last updated 4/7/2022.

Note - this program does not work in all cases, such as biCDf (use the builtin binomialCDf instead). Answers should be tested by the user.

discrete(”f ”, x, l, u, h)

Returns a matrix with x-values in the left column and f-values at the corresponding x-values in the right column, for discrete values of x with step size h in the domain [l,u].

Example

\(X \sim \mathrm{Bi}(n, 0.1)\). Find the least \(n\) such that \(\mathrm{Pr}(X \geq 2) \geq 0.5\). (2021 Methods Exam 2 Section A Question 17)

discrete("binomialCDf(2, n, n, 0.1)", n, 15, 19, 1)

Contributed by Nhan

hCDf (Function)

Command last updated 4/7/2022.

hCDf(l, u, n, M, N)

Parameters should evaluate to numbers, not expressions in terms of unknown variables.

Equivalent to the builtin hypergeoCDf(l, u, n, M, N), but returns exact values in Standard mode whereas hypergeoCDf can return only decimal answers.

Returns the probability of between and including l and u successes from n draws, without replacement between draws, from a population size N that contains M successes.

The hypergeometric distribution is not on the VCE Mathematical Methods Study Design, but can be useful for certain examination questions. See the Example. Students are expected to, and should be able to, answer these questions using alternative Mathematical Methods. This function should be used only for checking, and only with an understanding of the circumstances in which the hypergeometric distribution applies.

Example

A bag contains 5 blue marbles and 4 red marbles. 4 balls are taken from the bag, without replacement between draws. Find the probability that the proportion of blue marbles in the 4 draws is greater than half. (2017 NHT Methods Exam 2 Section A Question 11)

hCDf(3, 4, 4, 5, 5+4)

Contributed by Nhan

hPDf (Function)

Command last updated 4/7/2022.

hPDf(x, n, M, N)

Equivalent to the builtin hypergeoPDf(x, n, M, N), but returns exact values in Standard mode whereas hypergeoPDf can return only decimal answers.

Returns the probability of x successes from n draws, without replacement between draws, from a population size N that contains M successes.

The hypergeometric distribution is not on the VCE Mathematical Methods Study Design, but can be useful for certain examination questions. See the Example. Students are expected to, and should be able to, answer these questions using alternative Mathematical Methods. This function should be used only for checking, and only with an understanding of the circumstances in which the hypergeometric distribution applies.

Example

A box contains n marbles, of which k marbles are coloured red and the remainder n-k marbles are coloured green. 2 marbles are drawn from the box, without replacement between draws. Find the probability that the 2 marbles drawn are the same colour. (2019 Methods Exam 2 Section A Question 17)

hPDf(0, 2, k, n)+hPDf(2, 2, k, n)

Contributed by Nhan

infpts (Program)

Command last updated 23/11/2022.

IMPORTANT - requires printpts stored in the same folder as your current folder or in the “library” folder (see the Variable Manager).

infpts(f, l, u)

Returns a list of coordinates of points on f in the domain xϵ[l, u] where the second derivative equals 0.

Each point must be verified to determine whether it is really a point of inflection.

Example

Find the coordinates of any points of inflection of the graph of \(\dfrac{x}{1+x^{3}}\). (2017 Specialist Exam 2 Section B Question 1aiii)

Each point must be verified to determine whether it is really a point of inflection.

infpts(x/(1+x^3), -∞, ∞)

Contributed by Nhan

intpts (Program)

Command last updated 9/7/2022.

IMPORTANT - requires printpts stored in the same folder as your current folder or in the “library” folder (see the Variable Manager).

intpts(f, g, l, u)

Returns a list of coordinates of points of intersection of f and g.

Example

Find the coordinates of the points of intersection of the graphs of \((x-1)^3 (x+2)^3\) and \((x-1)^2 (x+2)^3\). (2019 NHT Methods Exam 2 Section B Question 1a)

intpts((x-1)^3 (x+2)^3, (x-1)^2 (x+2)^3, -∞, ∞)

Contributed by Nhan

keypts (Program)

Command last updated 9/7/2022.

IMPORTANT - requires printpts stored in the same folder as your current folder or in the “library” folder (see the Variable Manager).

keypts(f, l, u)

Prints and categorises coordinates of key points on y=f in the domain xϵ[l, u].

The 2nd and 3rd derivative tests are not on the VCE Mathematical Methods Study Design.

Example

Find key points on \(y = \dfrac{1}{5} x^5 + \dfrac{3}{4} x^4 - 2x^2 + \dfrac{12}{5}\) for \(x \in (-\infty, 2]\).

keypts(1/5 x^5 + 3/4 x^4 - 2x^2 + 12/5, -∞, 2)

Contributed by Nhan

lineof (Function)

Command last updated 4/7/2022.

lineof(a, b, c, d, x)

Returns an expression for the line connecting points (a, b) and (c, d) in terms of x.

Example

Let \(f(x) = x^3 - 5x\). Find the equation of the line through \((-1, f(-1))\) and \((1, f(1))\). (2017 Methods Exam 2 Section B Question 1bi)

lineof(-1, f(-1), 1, f(1), x)

Contributed by Nhan

mu (Function)

Command last updated 4/7/2022.

mu(f, x, a, b)

For fastest calculation time, the domain [a, b] should be as small as possible.

If f is a piecewise function it should be entered raw not as a user-defined function.

The integral of f over the domain [a, b] must equal 1, as this is assumed by the mu function.

Returns the mean of the continuous probability distribution defined by the probability density function f over the domain [a, b].

Example

Find the expected value of \(v\) for the probability density function

[f(v) = \left{ \begin{array}{ll} \dfrac{1}{6 \pi} \sin \left( \sqrt{ \dfrac{v-30}{3} } \right) & 30 \leq v \leq 3 \pi^2 + 30
\ 0 & \mathrm{elsewhere} \end{array} \right.]

(2023 Methods Exam 2 Section B Question 4i)

mu(3/50 (t/50)^2 e^(-(t/50)^3), t, 0, ∞)

Contributed by Nhan

nPDf (Function)

Command last updated 4/7/2022.

nPDf(x, σ, μ)

Equivalent to the builtin normPDf(x, σ, μ), but more convenient to obtain the specific probability density function and to graph the function.

Returns the value of the normal distribution function with a standard deviation of σ and a mean of μ at the value x.

Example

Let \(M \sim \mathrm{N}(68, 8^2)\). Find \(\mathrm{Pr}(60<M<90)\). (2018 Methods Exam 2 Section B Question 4a)

graph of nPDf(x, 8, 68)

Contributed by Nhan

nmeth (Program)

Command last updated 7/2/2023.

nmeth(f, xa, n)

Applies Newton’s method to approximate an x-intercept of f for n iterations. Prints the details of each iteration and returns the coordinates following the n-th iteration. Column i is the iteration number, x is \(x_i\), y is \(f(x_i)\), dy/dx is \(f'(x_i)\) and δx is \(x_{i+1} - x_i = - \dfrac{f(x_i)}{f'(x_i)}\).

Example

Find \(x_1\), \(x_2\) and \(x_3\) using Newton’s method with \(x_0 = 0\) to approximate an x-intercept of \(h(x) = 2^x - x^2\). (2023 Methods Exam 2 Section B Question 3f)

nmeth(2^x-x^2, 0, 3)

Contributed by Nhan

normalt (Function)

Command last updated 23/11/2022.

normalt(x, y, t, to)

Returns the expression in terms of x for the normal line to the curve at the point t = to.

Example

Find the normal to the curve defined by \(x = 2\sin(2t)\) and \(y = 3\cos(t)\) when \(t = \dfrac{\pi}{3}\).

normalt(2sin(2t), 3cos(t), t, pi)

Contributed by Nhan

pcheck (Program)

Command last updated 6/3/2024.

Note - this program may throw an error if in Decimal mode. Use Standard mode instead.

Define f(x) = {a, b, c, d, e}

pcheck(f(x), l, r)

Returns a matrix with each row corresponding to an option of f(x), with the columns containing for that option, from left to right, f(x), l, r, judge(l=r).

Example

\(f(x+f(x)) = f(2x)\). Which option could possibly be \(f(x)\)? (2018 Methods Exam 2 Section A Question 10)

Define f(x)={1-x,x-1,x,x/2,(1-x)/2}

pcheck(f(x),f(x+f(x)),f(2x))

Contributed by Nhan and Kevin

printpts (Program)

Command last updated 9/7/2022.

printpts(f, {s})

Returns a list of coordinates of points on f corresponding to the x-values in s.

Example

Find the \(y\)-values of the points where \(x = - \infty, -1, 0, 1, \infty\) on \(y = (x-1)^2 (x+2)^3\).

printpts((x-1)^2 (x+2)^3, {-∞, -1, 0, 1, ∞})

Contributed by Nhan

scalares (Function)

Command last updated 23/11/2022.

scalares(a, b)

Returns the scalar resolute of a in the direction of b.

Example

Find \(\alpha\) for which the scalar resolute of \(3\boldsymbol{\hat{\imath}} + 2\boldsymbol{\hat{\jmath}} + \alpha\boldsymbol{\hat{k}}\) in the direction of \(4\boldsymbol{\hat{\imath}} - \boldsymbol{\hat{\jmath}} + \alpha^2 \boldsymbol{\hat{k}}\) equals \(\dfrac{74}{\sqrt{273}}\). (2016 Specialist Exam 2 Section A Question 11)

solve(scalares([3,2,alpha], [4,-1,alpha&2])=74/sqrt(273), alpha)

Contributed by Nhan

sd (Function)

Command last updated 4/7/2022.

sd(f, x, a, b)

For fastest calculation time, the domain [a, b] should be as small as possible.

If f is a piecewise function it should be entered raw not as a user-defined function.

The integral of f over the domain [a, b] must equal 1, as this is assumed by the sd function.

Returns the standard deviation of the continuous probability distribution defined by the probability density function f over the domain [a, b].

Example

Find the standard devation of \(x\) for the probability density function

[\left{ \begin{array}{ll} \dfrac{x}{500} & 0 \leq x < 20
\dfrac{50-x}{750} & 20 \leq x \leq 50
\ 0 & \text{elsewhere} \end{array} \right.]

(2021 Methods Exam 2 Section B Question 4g)

sd(function, x, 0, 50)

Contributed by Nhan

sec (Function)

Command last updated 23/11/2022.

sec(θ)

Returns the secant of θ.

Example

Find the expression for \(\int_0^{\tfrac{\pi}{6}} \tan^2(x)\sec^2(x) dx\) following a suitable substitution. (2018 Specialist Exam 2 Section A Question 8)

integral(tan^2(x)sec^2(x), x, 0, pi/6)

Contributed by Nhan

simlin (Function)

Command last updated 4/7/2022.

simlin(a, b, c, d, e, f, g)

Returns a list.

Example

Find the largest set of values of \(k\) for which the simultaneous linear equations \(kx+5y=k+5\) and \(4x+(k+1)y=0\) have ∞ solutions for \((x, y)\). (2023 Methods Exam 2 Section A Question 4)

simlin(k, 5, k+5, 4, k+1, 0, k)

Contributed by Nhan

statpts (Program)

Command last updated 9/7/2022.

IMPORTANT - requires printpts stored in the same folder as your current folder or in the “library” folder (see the Variable Manager).

statpts(f, l, u)

Returns a list of coordinates of stationary points on f in the domain xϵ[l, u].

Example

Find the coordinates of the stationary points of \(f(x) = x(x-2)(x+1)\). (2023 Methods Exam 2 Section B Question 1b)

statpts(x(x-2)(x+1), -∞), ∞)

Contributed by Nhan

suvat (Function)

Command last updated 23/11/2022.

suvat(b, c, d, e, f)

s is displacement, u is initial velocity, v is final velocity, a is acceleration, t is elapsed time

Returns the solutions for e and f given constant acceleration and the provided conditions.

Example

Find the time taken for a phone to hit the ground, experiencing acceleration due to only gravity after being dropped from a balloon \(80 \mathrm{m}\) above the ground ascending at \(2.5 \mathrm{m/s}\). (2023 Specialist Exam 2 Section A Question 13)

suvat(s=-80, u=2.5, a=-9.8, v, t)

Contributed by Nathan Chen, Nhan

tSolve (Function)

Command last updated 23/11/2022.

tSolve(Vin, QVin, Vout, Vo, Qo)

Returns an equation relating Q the quantity of solute in the tank and t time.

Example

A tank initially has \(20 \mathrm{kg}\) salt dissolved in \(100 \mathrm{L}\) water, with pure water flowing into the tank at \(10 \mathrm{L/minute}\) and solution flowing out of the tank at \(5 \mathrm{L/minute}\). Find the equation which relates the mass of salt and time. (2016 Specialist Exam 2 Section B Question 3a)

tSolve(10, 0, 5, 100, 20)

Contributed by Nhan

tanLinet (Function)

Command last updated 23/11/2022.

tanLinet(x, y, t, to)

Returns the expression in terms of x for the tangent line to the curve at the point t = to.

Example

Find the tangent to the curve defined by \(x = 2\sin(2t)\) and \(y = 3\cos(t)\) when \(t = \pi\). (2020 Specialist Exam 2 Section B Question 1bi)

tanLinet(2sin(2t), 3cos(t), t, pi)

Contributed by Nhan

tank (Function)

Command last updated 23/11/2022.

tank(Vin, QVin, Vout, Vo, Qo)

Returns a differential equation relating Q the quantity of solute in the tank, t time, and Q’ the derivative of Q with respect to t.

Example

A tank initially has some quantity of chemical dissolved in 8000 L water, with fresh water flowing into the tank at 15 L/minute and solution flowing out of the tank at 20 L/minute. Find the equation which relates the mass of chemical and time. (2023 Specialist Exam 2 Section A Question 8)

tank(15, 0, 20, 8000, Qo)

Contributed by Nhan

trans (Function)

Command last updated 6/3/2024.

trans(e, t, x, y)

Returns the equation after the transformation is applied.

Example

\(f(x) = e^x + e^{-x}\) and \(g(x) = \dfrac{1}{2} f(2-x)\). Find a possible sequence of transformations that map \(f\) to \(g\). (2023 Methods Exam 2 Section B Question 5a)

trans(y=f(x), [[-1 0] [0 1/2]][[x] [y]] + [[2] [0]], x, y)

(1/2) f(2-x)

Contributed by Nhan

trsum (Function)

Command last updated 21/7/2022.

trsum(f, v, a, b, w)

Returns the approximation to \(\int_a^b f dv\) using trapeziums of width w and vertical parallel side lengths equal to the value of f at the trapezium’s left and right endpoints.

Example

Find the approximation of

[\int_0^{4} \left( \dfrac{1}{27} (x-3)^2 (x+3)^2 + 1 \right) dx]

using the trapezium rule with trapeziums of width \(1\). (Sample Methods Exam 2 Section A Question 3)

trsum((1/27)(x-3)^2(x+3)^2+1, x, 0, 4, 1)

Contributed by Nathan Chen

var (Function)

Command last updated 4/7/2022.

var(f, x, a, b)

For fastest calculation time, the domain [a, b] should be as small as possible.

If f is a piecewise function it should be entered raw not as a user-defined function.

The integral of f over the domain [a, b] must equal 1, as this is assumed by the var function.

Returns the variance of the continuous probability distribution defined by the probability density function f over the domain [a, b].

Example

Find the expected value of \(x\) for the probability density function

[\left{ \begin{array}{ll} 0.2e^{-0.2x} & x \geq 0
\ 0 & x < 0 \end{array} \right.]

(2021 NHT Methods Exam 2 Section A Question 14)

var(0.2e^(-0.2x), x, 0, ∞)

Contributed by Nhan

vectorej (Function)

Command last updated 23/11/2022.

vectorej(a, b)

Returns the vector rejection of a perpendicular to b.

Example

Find the vector rejection of \(2\boldsymbol{\hat{\imath}} - \boldsymbol{\hat{\jmath}} + 3\boldsymbol{\hat{k}}\) perpendicular to \(\boldsymbol{\hat{\imath}} + \boldsymbol{\hat{\jmath}} - \boldsymbol{\hat{k}}\). (2019 NHT Specialist Exam 2 Section A Question 11)

vectorej([2,-1,3], [1,1,-1])

Contributed by Nhan

vectores (Function)

Command last updated 23/11/2022.

vectores(a, b)

Returns the vector resolute of a in the direction of b.

Example

Find the vector resolute of \(3\boldsymbol{\hat{\imath}} - 4\boldsymbol{\hat{\jmath}} + 12\boldsymbol{\hat{k}}\) in the direction of \(2\boldsymbol{\hat{\imath}} + 2\boldsymbol{\hat{\jmath}} - \boldsymbol{\hat{k}}\). (2017 Specialist Exam 2 Section A Question 13)

vectores([3,-4,12], [2,2,-1])

Contributed by Nhan

vosor (Function)

Command last updated 23/11/2022.

vosor(f, x, a, b)

Returns the volume of the solid obtained by rotating the graph of f between x = a and x = b around the x-axis.

Example

Find the volume of the solid of revolution obtained by rotating the graph of \(y^2 = x - 1\) between \(x=2\) and \(x=5\) around the \(x\)-axis. (2023 Specialist Exam 2 Section B Question 3a)

vosor(sqrt(x-1), x, 2, 5)

Contributed by Nhan