# Anti-Derivatives Checking & Notation

Hey all!

I’m having a bit of trouble with a slide in an activity that I’m trying to make and would love some help!

I can’t seem to get this answer marked as correct. I think it has something to do with the initial latex.

R6 Coding:

#Answer Setup
initialLatex: "\int_{\ }^{\ }"
suffix: "dx"
hx= simpleFunction( "2-8x^{-2}-8x^{-3}")
jx= simpleFunction(this.latex)

right = hx.evaluateAt(2)= jx.evaluateAt(2)

correct = when right 5
otherwise 0

correct: correct = 5
disableEvaluation: true
showSubmitButton: true
hidden: turnin.timeSincePress()>0


I’m working on slide 3 in this activity:

Looks like you’re using evaluateAt for correctness of an indefinite integral - you’ll need bounds on the integral to do that.

But also generally speaking for that slide, i don’t suppose you just simply want them to notice that the solution is just the Integrand function?

I’m trying to have them simplify the Integrand function.

I’ve tried switching it to matching the latex, but that doesn’t seem to work either.

#Answer Setup
initialLatex: "\int_{\ }^{\ }"
suffix: "dx"

right = this.latex = \int_{\ }^{\ }2-8x^{-2}-8x^{-3}

correct = when right 5
otherwise 0

correct: correct = 5

disableEvaluation: true
showSubmitButton: true
hidden: turnin.timeSincePress()>0


Well, latex matching can be fragile. This appears to be one of those instances. As to your attempt to evaluate:

You can see in the calculator how the format would be insufficient.

1. Bounds are required as mentioned by @Mike_Gleeson, and can be seen as an error for j1(x).
2. dx is required
3. More than one term must be in parentheses
Without these conditions, the function is invalid and won’t evaluate. Although, even trying to calculate j4(2) ends up with an error without setting finite bounds.

I would suggest simply asking them to simplify the function then first, forget the integral entirely.

Because the way the question is currently set up instantly leads to the correct answer of restating the Integrand. Students can short circuit what you want them to do because you’re asking them to do because there’s an easier way to answer the question you’re first asking them.

Ask the integral part on the next screen. Just my opinion!