Hello! I want to test if a student has entered a correct equation in an Input component

I can get a ‘when’ command to understand

using

when functionInput.submitted and functionInput.latex=“3x^2”

but if I want

with a 3 ‘dot’ 2 and x-1 in the exponent position, CL doesn’t recognize it. Tried looking up Latex code, and using various variations of ‘cdot’ for the center hasn’t doesn’t worked. Help!

*note: apologies if my equation images didn’t come through…