## Posts Tagged ‘**smartphone**’

## PhotoMath: review of a free smartphone app

As some of you might know, I taught mathematics for decades and am the author of *The Words of Mathematics*, a dictionary that the Mathematical Association of America has kept in print since that organization published it in 1994. Because of my math background, a friend of mine recently told me about a *free* smartphone app called PhotoMath and suggested that I write a review of it. As *Portraits of Wildflowers* is my main presence on the Internet, I’m posting the review here, with the understanding that readers interested in this blog’s normal subjects of nature photography and native plants may be surprised by the topic. On the other hand, it may be just what you’ve always wanted.

According to MicroBlink, the Croatian maker of PhotoMath, the app “uses a mobile phone camera to recognize mathematical expressions. It instantly solves a recognized expression, and displays step-by-step solution.” The program can currently handle arithmetical expressions that include fractions, decimals, powers and roots, and it can solve first-degree equations. It also recognizes some trigonometric, logarithmic, and exponential functions.

Once launched, the program brings up your phone’s camera screen and imposes a conspicuous red-cornered frame in the center of it. You maneuver your phone over the page of a book or worksheet (sorry, no handwritten expressions) and use the frame to isolate a problem. You can swipe horizontally or vertically with a finger to change the dimensions of the frame to make it better fit over the shape of the printed problem. For a long expression or equation, holding your phone in landscape orientation may be better than keeping it in portrait orientation. Most problems in schoolbooks and worksheets are numbered, so you have to be careful not to include the problem number in the frame. As soon as PhotoMath recognizes a framed problem, it emits a loud click and displays the answer in a small red cartouche centered at the base of the red frame. The answer can appear so quickly it seems like magic, and that’s certainly part of the program’s appeal.

But wait, as cheesy television commercials are fond of saying, that’s not all: the lower portion of the screen displays a larger red cartouche inviting you to press to see the steps leading to the answer.

For the expression shown here, PhotoMath takes three steps to simplify the fraction:

To maintain continuity between steps, each new screen begins with what came last on the previous screen.

Notice that as you advance from step to step the number of black dots at the lower left increases to show you which step you’ve reached, while the number of black dots at the lower right decreases with the number of steps remaining. The dots reinforce the information more largely conveyed by “step 1/3,” “step 2/3,” and step “3/3.”

The page for the last step in the working of a problem introduces a dotted line, below which the result appears. This is akin to your math teacher telling you to circle or box your answer at the end of a problem.

Speaking of students and teachers, it struck me that the latter might worry about the former using PhotoMath to do homework assignments. Here’s what the website says about that: “Let’s be honest: many kids cheat anyway, and an app which solves math problems automatically won’t make this problem worse. However, PhotoMath can be really helpful to many children when they are stuck with their homework and there is no one around to help them to figure it out. If we can eliminate kids’ frustration at the point when they can’t do anything else but helplessly stare at the book, we’ll feel awesome. It’s as simple as that.” Well, perhaps not quite that simple, but you can decide for yourself.

PhotoMath did well on problems that aren’t unusual in some way. For example, with the equation

3x + 2 = 5x – 8

it gave these steps:

3x – 5x = -8 – 2

3x – 5x = -10

-2x = -10

x = 5

So far so good, but I wondered if the app would “break” when confronted with special cases. For instance, with

4x – 2 = 4x – 2

it correctly converted the equation to

0 = 0

but left the user to interpret that truism to mean that any value of *x* will solve the equation. In the case of the equation

4x – 2 = 4x – 1

the app just sat there and did nothing. Not all users will understand that the lack of activity came from the fact that the equation is a contradiction (how can something be 1 more than itself?) and therefore has no solution.

The program also did nothing when confronted with 9/0, which is undefined because no real number times the 0 in the denominator would make the 9 that’s in the numerator. The app likewise had no response to 0/0, which is undefined because any number times the 0 in the denominator would make the 0 that’s in the numerator.

For the algebraic expressionPhotoMath gave

which is true but not particularly helpful. On the other hand, when I tried

the program multiplied out the factors and correctly gave

The PhotoMath website says the app handles basic trigonometric functions, so I tried cos (30°) and was baffled by a result of .540302 rather than the correct value of approximately .866. When I tried cos 30° without parentheses the program returned an “answer” of cos 1. Then I realized that the app had treated the degree symbol as the exponent zero: 30 to the power 0 is 1, and sure enough, the cosine of 1 *radian* is .540302. Apparently PhotoMath evaluates trigonometric functions only for arguments that are expressed in radians.

Switching to logarithms, I was pleased to see Photomath correctly give log(2) as .30103 and ln(2) as .693147. When I thought about inverse functions of logarithms, though, and tried a natural exponential expression, the program stared at

and did nothing. After I rewrote that as exp(3) the app correctly gave me 20.085537. Curiously, when I looked at the one and only step the program had taken to get that result, here’s what I saw:

So PhotoMath can display *e* cubed but can’t recognize it via the camera. Strange. It’s also quite a limitation, because math textbooks almost always use an exponential form like *e* cubed rather than exp(3), which is more at home in the world of computer programming.

Just as important in mathematics as *e* is *π*, but PhotoMath apparently doesn’t recognize that special constant either, because when I aimed the camera at the expression π over 2, the app interpreted it as 71 over 2 and therefore mistakenly returned a value of 35 and a half.

The PhotoMath website says the app does roots, but when I tried the cube root of 7 the program misread it as 3 times the square root of 7. When I tried the cube root of 1.331, the program misinterpreted the expression in the same way and gave an incorrect value of 3.461069; in one instance (I tried this expression several times), it even threw away the decimal point in 1.331 and came up with a false result ten times as large.

PhotoMath’s success when I stuck to arithmetic expressions was pretty good. The compound fraction given as a sample on the website,

offered no trouble when I tried it. The app also did a good job with first-degree equations, even a disguised one like

for which it returned the correct value of x = nine fourths. Systems of linear equations aren’t supported, however.

When PhotoMath accesses your phone’s camera, in addition to the red frame at the center of the screen it shows four icons across the bottom, which you can see in this view from the program’s help section:

The History button takes you to a list of recently read problems. I don’t know how many items the list can retain, but after trying out the program for a day I found that my list had more than 50 items in it. Tapping on an item brings back all the solving steps, so you can review them later. The Steps button brings up the steps in a problem that has just been solved.

I assume the Light button is intended to turn on the phone’s light in case the page you’re aiming the camera at isn’t bright enough, but I never could get the light to come on with my iPhone 5 running the latest version of iOS 8. The Help button offers some very basic information about using the program.

Given PhotoMath’s hit-and-miss record when I put it through its paces, I’m tempted to say *caveat emptor*, let the buyer beware, but this is a free app, so no money is at stake. Still, caution is in order, and users should examine results for plausibility: the cube root of 1.331 couldn’t possibly be the 3.46 that PhotoMath claimed, or any number more than a bit larger than 1 (in fact the cube root of 1.331 is exactly 1.1). A good strategy might be to look at all the steps PhotoMath offers as its justifications for an answer, because then any misinterpretation is likely to be obvious (like π being misread as 71).

On October 23, 2014, the blog on the PhotoMath website glowingly announced that “the PhotoMath video on Vimeo has very quickly reached 2 million views. Our web page has over 9000 page views each minute, and the iOS app alone was downloaded more than 1.6M times in less than three days, becoming the top free app in most countries around the world.” That’s pretty impressive, and I encourage you to head over to PhotoMath and increase those numbers by trying out the program for yourself.

PhotoMath is currently at version 1.1.1 and is available for Apple (it requires iOS 7.0 or later; is compatible with iPhone, iPad, and iPod touch; is optimized for iPhone 5 and iPhone 6) and for Microsoft (Windows Phone 8 or 8.1). The makers of PhotoMath say that an eagerly awaited Android version should launch in early 2015.