# Self Check Vertex Form

**URL:** <https://cl.desmos.com/t/self-check-vertex-form/3473>\
**Category:** Questions\
**Tags:** patterns, validation, correctness\
**Created:** [June 9, 2021, 4:59pm UTC](https://cl.desmos.com/t/self-check-vertex-form/3473 "2021-06-09T16:59:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lynde\_Clarke](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/lynde_clarke/32/2404_2.png) [@Lynde\_Clarke](https://cl.desmos.com/u/Lynde_Clarke)\
**Post date:** [June 9, 2021, 4:59pm UTC](https://cl.desmos.com/t/self-check-vertex-form/3473/1 "2021-06-09T16:59:13Z")

</div>

I am trying to have a self check for

The graph of the function `y=x^{2}` will be translated 2 units up and 4 units left. What is the resulting function​ g(x)?

I know I am off with  
feedback =  
when input1.script.correct “✅”  
otherwise “❌”  
correct = this.latex = ‘y={x-4}^2+2’

---

<div class="post-metadata">

**Author:** ![SteinSchreiber](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/steinschreiber/32/2267_2.png) [@SteinSchreiber](https://cl.desmos.com/u/SteinSchreiber)\
**Post date:** [June 9, 2021, 5:42pm UTC](https://cl.desmos.com/t/self-check-vertex-form/3473/2 "2021-06-09T17:42:05Z")

</div>

Checking for latex can cause issues. You could also look into pattern matching. The difficulty lies in telling students they are wrong when their math is essentially correct but not in the exact form. See the pic. Notice all the correct answers that may not be incorrect but a student could type in.

 ![Screen Shot 2021-06-09 at 12.39.01 PM](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/9/9bd3f85080ce0299f8b8848de4ad5d29e06b2538.png)

---

<div class="post-metadata">

**Author:** ![Mike\_Gleeson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mike_gleeson/32/650_2.png) [@Mike\_Gleeson](https://cl.desmos.com/u/Mike_Gleeson)\
**Post date:** [June 9, 2021, 7:48pm UTC](https://cl.desmos.com/t/self-check-vertex-form/3473/3 "2021-06-09T19:48:19Z")

</div>

Countnumberusage would work well for this I think

---

<div class="post-metadata">

**Author:** ![C\_Harper](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/c_harper/32/1526_2.png) [@C\_Harper](https://cl.desmos.com/u/C_Harper)\
**Post date:** [June 9, 2021, 8:14pm UTC](https://cl.desmos.com/t/self-check-vertex-form/3473/4 "2021-06-09T20:14:34Z")

</div>

I agree that checking against the latex can cause issues. Here is an example of what I would do. The code I used is what I found after doing lots of research about checking correct equations.

> **[Self Check Vertex Form Example • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/60c11eb1e7a138b51a3f5d4f)**
>
> by Corri Harper

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [June 9, 2021, 10:00pm UTC](https://cl.desmos.com/t/self-check-vertex-form/3473/5 "2021-06-09T22:00:39Z")

</div>

> [@Lynde\_Clarke](#):
>
> correct = this.latex = ‘y={x-4}^2+2’

I agree with the fragility of latex noted by others. That said, the mistake in the latex is the use of curly braces. They should be parentheses (and the exponent in curly braces):

```auto
`y=(x-4)^{2}+2`

```
