# How can I make "complex" graphs that combine multiple functions with a software?

Til today I've been using geogebra to sketch functions for my students quizzes or homework. Sometimes I use the ones that I found searching in google, but this takes a lot of time specially because I have multiple courses and I need to diversify the tests, homework's, etc. Recently I found this image: It's there a way to make this type of graph quickly without having to define five different functions and so on?

• This is easy in Matlab. Aug 23, 2018 at 15:22
• Can you link to a website to make it easy as you say? Aug 23, 2018 at 16:34
• Aug 23, 2018 at 16:59
• Aug 23, 2018 at 17:09

Have you used Graph? There, if you want piecewise functions, a quick way to do so is to select: Function $\rightarrow$ Insert Point Series, and type the coordinates of a point. Exit that environment, and while holding Select, just click other points on your graph. You can choose how to connect them (linear, half-cosine, cubic spline) and later change this interpolation style with a click.
For the holes in the graph, you'd still have to write a formula (Function $\rightarrow$ Insert Function), specifying whether it "ends" at a point or a hole.
• Note: It's somewhat primitive and a little clunky (and my LaTeX friends show me no respect for using it), but it's fast, easily plots relations like $x*y=cos(x)-x*y^2+y^3$, and once copied into Word, you can double click to edit a graph. Aug 23, 2018 at 16:47