Roque, the graphing tool
Roque is SergioLearns’ graphing tool: type an equation and it draws it in 2D or 3D, and it also shows you how it is worked out by hand, step by step, the way the exam asks for it. Conics from their general equation, surfaces, gradient, extrema, areas, volumes, double integrals, slope fields and Taylor, for Mathematics for Computing and Linear Algebra and Geometry.
How to use it
- Typing: type in the >> line of the panel and press Enter: a function, an equation, a point or a command such as
area(f, g). Everything you type becomes an object in the list; click it to edit it, hide it with its colour dot or remove it with the bin. - Examples and lessons: if you don’t know what to type, start with the guided lesson or an example at the top; «+N examples and lessons» opens them all, each with what it teaches.
- Step by step: shows the working by hand for the object you have selected: completing the square for a conic, the rules of a derivative, the Hessian at a critical point, the limits of a double integral. Below it, «What do you want to work out» suggests what you can ask of it (tangent line, integral, Taylor…).
- Explanations: «Explain it slowly» tells you what you are looking at and how it is done by hand, with no rush; «Explain it with Leo» passes what is on the graph to Leo so you can ask him anything.
- Sliders: if you type a letter that is not a variable (
y = a x^2), Roque creates its slider. Move it and the graph changes at once; with the play button, it moves by itself. You can also create one yourself with its range:a = 2 [-5, 5, 0.1]. - The graph: drag to move around, zoom with the wheel or by pinching, and double-click to go back to the initial view. Points can be dragged. In the 3D view, drag to rotate the figure.
- Table: gives you the values of the selected function, to copy them or check an exercise.
- MATLAB and Adjust: «MATLAB» turns what is on the graph into a MATLAB script and opens it in the MATLAB playground, ready for the practical. «Adjust» holds the rest: light or dark theme, grid, gradient vectors, level curves, copying the link to the exact scene and downloading the image.
What you can type
| Type | What it does |
|---|---|
y = x^2 - 3 or f(x) = sin(x) | A function; with a name, you can use it in commands |
x^2 + 4y^2 - 2x + 16y + 1 = 0 | An implicit curve; if it is a conic, it recognises it and finds its elements (center, foci, vertices, asymptotes, directrix) |
(cos(t), sin(2t)) and r = 1 + cos(θ) | A parametric curve and a polar one |
A = (1, 2) | A point you can drag |
z = x^2 - y^2 or f(x, y) = … | A surface in 3D |
x^2 + y^2 - z^2 = 1 | A quadric: it recognises it, draws it and finds its traces |
y' = x - y; y(0) = 1 | The slope field and the solution through that point |
derivative(f), tangent(f, 1), integral(f, 0, 2) | The derivative, the tangent line and the definite integral, with their step by step |
area(f, g), volume(f, 0, 4), riemann(f, 0, 2, 6, mid) | The area between two curves, the volume of revolution and Riemann sums (left, right or mid) |
taylor(f, 0, 4) | The degree-4 Taylor polynomial at 0 |
gradient(f, 1, 1), plane(f, 1, 1), levels(f) | The gradient, the tangent plane and the level curves of a function of two variables |
critical(x^3 - 3x + y^2) | The critical points and whether each is a maximum, a minimum or a saddle point |
lagrange(x y, x^2 + y^2 = 8) | The extrema with a constraint, by Lagrange |
double(x y, x^2 <= y <= x, 0 <= x <= 1) and polardouble(…) | A double integral over a region (also in polar coordinates), with the region drawn |
Multiplication can go without an asterisk (2x, x y), powers with ^ and the usual functions: sqrt, exp, ln, sin, cos, tan, arctan, abs… and pi. Commands are also understood in Spanish (area, volumen, tangente, criticos…).
What you can and cannot do
- Roque is made for the first-year calculus syllabus: I checked the working by hand with SymPy, and the step by step follows the order in which things are done in the exam, not the order of a computer algebra program.
- If an integral has no antiderivative with the syllabus methods (standard integrals, by parts, substitution, rational functions), Roque gives you the value with a numerical method and tells you so.
- 3D needs WebGL in your browser (every current browser has it); the first time you open the 3D view it takes a moment to load.
- Everything happens in your browser: nothing is stored on any server. To keep or share a graph, copy its link from Adjust.
Practice with it
- The Mathematics for Computing topics are arriving in University; in its lab you have Roque next to the subject’s other tools.
- For the MATLAB practical, export the graph and carry on in the MATLAB playground. The other playgrounds are in Playgrounds.
