Curious Minds

Clear answers to science and history questions

How to Make Pictures in Desmos With Equations

· 6 min read · Science

The most common way to make a picture in Desmos is to plot equations and inequalities in the graphing calculator and let their curves form the lines of your drawing. You type a function into a blank expression row and it appears on the grid immediately, so you build the image one stroke at a time. The method changes only if you want to trace an existing photo, in which case you add the image as a background layer first and then match curves to its edges.

Setting up a Desmos graph for drawing

Open the Desmos Graphing Calculator in a browser or the app and you land on a grid with a list of empty expression rows on the left. Each row holds one equation, and you can add more rows with the plus button at the bottom of the list. Click the wrench icon to open graph settings, where you can turn the grid off, hide the axes, and set the viewing window.

For a portrait-style drawing, set the x-axis from about -10 to 10 and the y-axis from about -10 to 10 so the plot area is roughly square. Turn off the grid and axes once you start drawing so your lines read as a picture rather than a chart. Labels can differ slightly between the website and the mobile app, so look for the wrench or gear icon if the wording is unfamiliar.

Drawing lines, circles and curves with equations

  1. Click the first empty expression row and type a straight line, such as y = 2x + 1. Press Enter and the line appears on the grid.
  2. Restrict the line to a segment by adding a domain, for example y = 2x + 1 \{0 < x < 3\}. The braces limit where the line is drawn.
  3. Add a circle with x^2 + y^2 = 25 for a radius of 5 units centered at the origin. Shift the center by writing (x-2)^2 + (y+1)^2 = 9.
  4. Add a curve with a function such as y = 0.5x^2 - 3, then clip it with a domain so it only forms the arc you want.
  5. Use inequalities to fill shapes: y < x + 2 shades everything below that line, and combining inequalities with braces shades a closed region.
  6. Repeat for each stroke of the drawing, adding a new row for every line, arc and fill until the picture is complete.

Each row is independent, so you can click any row to edit it and watch the picture change live. That live feedback is what makes Desmos practical for drawing: you adjust a number and the curve moves instead of you redrawing it.

Tracing a photo with Desmos image layers

If you want a picture that matches a real photo, add the photo first. Click the plus button and choose Image, then upload a file from your device. The image drops onto the grid as a movable, resizable layer, and you can lower its opacity with the slider in its row so your plotted lines stand out on top.

Scale the image so its key features sit at convenient coordinates, then trace the outlines with segments and curves as above. Set the image opacity to roughly 30 to 50 percent while you trace, and raise it again at the end to check the fit. Desmos does not convert a photo into equations for you, so every line is drawn by hand; expect a detailed portrait to take dozens of expression rows.

A simple house picture

Here is a small picture you can build in about ten rows to see how the parts combine. Use a window of -10 to 10 on both axes.

  1. Walls: x = -3 \{-2 < y < 3\} and x = 3 \{-2 < y < 3\} for the two sides.
  2. Floor: y = -2 \{-3 < x < 3\}.
  3. Roof: y = -x + 6 \{-3 < x < 0\} and y = x + 6 \{0 < x < 3\} meeting at a peak at (0, 6).
  4. Door: x = 0 \{-2 < y < 0\} plus a small arc for the top.
  5. Window: (x-1.5)^2 + (y-1)^2 = 0.5 for a round pane.
  6. Sun: (x-7)^2 + (y-7)^2 = 1 in the corner.

Check the arithmetic before you type: the roof lines meet where -x + 6 equals x + 6, which is x = 0, and both give y = 6, so the peak sits at (0, 6) as intended. The walls span y from -2 to 3, and the roof starts at y = 3 on each side because -(-3) + 6 = 9 does not match, so adjust the roof domain to start where the wall tops meet the roof slope. Rechecking coordinates like this is the single biggest time-saver when a picture looks wrong.

Coloring, styling and hiding rows in Desmos

Click the colored circle to the left of any expression to change its line color, and click the gear on the row to change line thickness or switch between solid and dashed. Thicker lines read better for outlines; thin lines suit fine detail. You can hide a row by clicking its colored circle so it turns hollow, which keeps the equation but removes it from the picture while you work on other parts.

Group related rows by folding them: click the arrow beside a folder you create with the plus button, and name the folder for the part of the drawing it holds. Folders let you hide an entire section, such as all the shading, without hunting through individual rows.

Why your Desmos picture looks wrong and how to fix it

The failure people hit most is a line that runs past where it should, because no domain was set. Add braces with an x or y range and the line stops at the boundary. A second common problem is a curve that appears flat or off-screen: check the graph window first, since a function plotted outside the visible range looks missing.

If a shape will not shade, confirm you used an inequality rather than an equals sign, and that braces enclose the region correctly. If two curves fail to meet at a corner, zoom in on the junction and compare the coordinates; a rounding difference of 0.1 units is often invisible at full view but obvious up close.

Before you start: a short Desmos checklist

Decide the window size and whether the grid stays visible. Sketch the picture on paper with rough coordinates so you know which curves you need. If tracing a photo, have the image file ready and know roughly where its corners sit on the grid. Save your work with the save button so you can return to it, and keep a copy of the equation list if you plan to share the picture, since the equations are the picture.

In this article
  1. Setting up a Desmos graph for drawing
  2. Drawing lines, circles and curves with equations
  3. Tracing a photo with Desmos image layers
  4. A simple house picture
  5. Coloring, styling and hiding rows in Desmos
  6. Why your Desmos picture looks wrong and how to fix it
  7. Before you start: a short Desmos checklist