questiontype=0
!set n=$counter
checkfile=exos/checkfile1.proc
question$n=!record 4 of lang/remarks.$taal
exotext=!record 31 of lang/remarks.$taal
sometext=!record 32 of lang/remarks.$taal
exotext=<p><a onmouseover="return escape('$sometext')">$exotext
helptext=$empty
image=0
F=F\left(x\right)\,\,=\,\,
#functie=wisk functie
#som= latex som
#GOED= afgeleide
#goed= latex afggeleide

R=$level
!if $level=0
    R=$counter
!endif    
	
a=!randitem 2,3,4,5,6,7,-1,-2,-3,-4,-5,-6
b=!randitem 3,4,5,6,7,8,9,10,11,12   
c=!randitem 2,3,4,5,6,7,8,9,10,11,12
d=!randitem 1,2,3,4,5  
e=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    
!if $b=$d
    b=$[$b+1]
!endif	
pm=!randitem +,-
mp=!randitem +,-
keuze=!randitem 1,2
!if $R=1
    !if $keuze=1  
        answer$n=$a*x^$b
	texanswer$n= \rightarrow F(x) = $a \cdot x^{$b} \, + \, C
    !else
        answer$n=1/$b*x^$b
	texanswer$n= \rightarrow F(x) = \frac{1}{$b} \cdot x^{$b} \, + \, C
    !endif
    formula$n=!exec pari printtex(deriv($(answer$n),x))
    formula$n=f(x)\,\,=\,\, $(formula$n)
 !exit    
!endif

!if $R=2
    !if $keuze=1	
        answer$n=$a*x^$b $pm $c*x 
	texanswer$n= \rightarrow  F(x) = $a \cdot x^{$b} $pm $c \cdot x\, + \, C
    !else
        answer$n=1/$b*x^$b $pm $c*x^2 
	texanswer$n= \rightarrow  F(x) = \frac{1}{$b} \cdot x^{$b} $pm $c \cdot x^{2} \, + \, C
    !endif
    formula$n=!exec pari printtex(deriv($(answer$n),x))
    formula$n=f(x)\,\,=\,\, $(formula$n)
 !exit    
!endif

!if $R=3
    d=$[$b+$d]
    !if $keuze=1
        answer$n=$a*x^$d $pm $c*x^$b
	texanswer$n= \rightarrow F(x) = $a \cdot x^{$d} $pm $c \cdot x^{$b} \, + \, C
    !else
        answer$n=$a*x^$d $pm 1/$b*x^$b 
	texanswer$n= \rightarrow F(x) = $a \cdot x^{$d} $pm \frac{1}{$b} \cdot x^{$b} \, + \, C
    !endif
    formula$n=!exec pari printtex(deriv($(answer$n),x))
    formula$n=f(x)\,\,=\,\, $(formula$n)
 !exit    
!endif

!if $R>3
    answer$n=$a*(x $pm $c)^$b $mp $e*x 
    texanswer$n= \rightarrow F(x) = $a \cdot \left( x $pm $c \right)^{$b} $mp $e \cdot x \, + \, C
    formula$n=f(x)\,\,=\,\, $[$a*$b] \cdot \left( x $pm $c \right)^{$[$b-1]} $mp $e 
 !exit    
!endif
