Skip to content

Tested prompt · AI math solver

A definite integral by parts: every AI model's reply, tested

We ran this hard AI math solver test input on all 27 models in llmwise, the way the tool runs it, and checked every reply the same way. Here's each one as it came, with whether it passed, what it cost and how long it took.

Based on 27 of our test runs on , through OpenRouter with the tool's own instructions and the app's settings.

Short answer

All 27 models passed this AI math solver test input's check (final answer). The cheapest reply that passed was GPT-6 Luna's, at $0.000080; the fastest, GLM 5.3's in 1.9 s. The dearest reply, Claude Fable 5.1's, cost 397 times as much ($0.0316).

The prompt, as sent, and its check

Checked by final answer, the same way for every model.

A definite integral by parts (hard)

Solve this math problem step by step. Number the steps, check the result, and end with a line that starts "Final answer:".

---
Evaluate the integral of x·e^x from x = 0 to x = 1.

Sent with the AI math solver's own instructions as the system prompt, as a run of the tool sends them.

The final answer must be 1.

How the AI math solver's test inputs are scored, with every model's results on all five.

Every model's result

All 27 models on this test input, in catalog order.

Every model's reply to “A definite integral by parts”
ModelResultCostTimeReply
Claude Fable 5.2AnthropicPassed: Final answer 1: right.$0.02636.2 s566 tokens
Claude Fable 5.1AnthropicPassed: Final answer 1: right.$0.03166.7 s541 tokens
Claude Opus 5.5AnthropicPassed: Final answer 1: right.$0.01606.1 s511 tokens
Claude Sonnet 5.5AnthropicPassed: Final answer 1: right.$0.00684.6 s589 tokens
Claude Sonnet 5AnthropicPassed: Final answer 1: right.$0.00675.9 s457 tokens
Claude Haiku 5.5AnthropicPassed: Final answer 1: right.$0.000332.9 s575 tokens
Claude Haiku 4.5AnthropicPassed: Final answer 1: right.$0.00324.1 s573 tokens
GPT-6.2 AstraOpenAIPassed: Final answer 1: right.$0.01183.8 s226 tokens
GPT-6 AstraOpenAIPassed: Final answer 1: right.$0.00752.8 s230 tokens
GPT-6.2 SolOpenAIPassed: Final answer 1: right.$0.00273.2 s201 tokens
GPT-6.1 SolOpenAIPassed: Final answer 1: right.$0.00153.4 s226 tokens
GPT-6 SolOpenAIPassed: Final answer 1: right.$0.00143.1 s220 tokens
GPT-6.1 TerraOpenAIPassed: Final answer 1: right.$0.000883.8 s203 tokens
GPT-6 LunaOpenAIPassed: Final answer 1: right.$0.00008013.4 s196 tokens
Gemini 4 CarbonGooglePassed: Final answer 1: right.$0.006516.8 s789 tokens
Gemini 4 ArgonGooglePassed: Final answer 1: right.$0.003510.0 s622 tokens
Gemini 4 HydrogenGooglePassed: Final answer 1: right.$0.00497.1 s632 tokens
Gemini 3.1 Pro (preview)GooglePassed: Final answer 1: right.$0.00567.4 s428 tokens
Gemini 3.8 FlashGooglePassed: Final answer 1: right.$0.00118.2 s500 tokens
DeepSeek V4.1 FlashDeepSeekPassed: Final answer 1: right.$0.000658.8 s291 tokens
DeepSeek V4 ProDeepSeekPassed: Final answer 1: right.$0.00444.4 s274 tokens
Grok 4.7xAIPassed: Final answer 1: right.$0.006311.5 s313 tokens
Kimi K3.1 ProMoonshotPassed: Final answer 1: right.$0.00386.0 s229 tokens
Kimi K3MoonshotPassed: Final answer 1: right.$0.00573.3 s264 tokens
GLM 5.3Z.aiPassed: Final answer 1: right.$0.00121.9 s274 tokens
GLM 5.3 FlashZ.aiPassed: Final answer 1: right.$0.000118.9 s338 tokens
Mistral Large 4MistralPassed: Final answer 1: right.$0.010042.4 s411 tokens

Cost: what OpenRouter charged us for the reply. Time: from sending to the whole reply. Reply: its length in tokens, thinking not counted. In llmwise you pay per message, not per token: each of these replies counted as one message on Pro.

Every reply

Every reply passed: here they are from the cheapest up.

  1. GPT-6 Luna

    Passed: Final answer 1: right.

    1. Use integration by parts with u = x and dv = e^x dx.
    
    2. Then du = dx and v = e^x, so
       ∫ x·e^x dx = x·e^x - ∫ e^x dx
       = x·e^x - e^x
       = e^x(x - 1).
    
    3. Evaluate at the bounds:
       ∫_0^1 x·e^x dx = [e^x(x - 1)]_0^1
       = e^1(1 - 1) - e^0(0 - 1)
       = 0 - (-1)
       = 1.
    
    4. Check: the derivative of e^x(x - 1) is e^x(x - 1) + e^x = x·e^x, as required.
    
    Final answer: 1

    346 tokens in, 249 out (53 of them reasoning) · 13.4 s · $0.0001 · 1 message on Pro · answered by openai/gpt-6-luna via OpenAI ·

  2. GLM 5.3 Flash

    Passed: Final answer 1: right.

    Reading: evaluate the definite integral of x·e^x dx from 0 to 1.
    
    1. Use integration by parts. Let u = x and dv = e^x dx, so du = dx and v = e^x.
    
    2. The integration by parts formula gives:
       ∫ x·e^x dx = x·e^x − ∫ e^x dx
    
    3. Integrate the remaining term:
       = x·e^x − e^x
    
    4. So the antiderivative is F(x) = x·e^x − e^x = (x − 1)·e^x.
    
    5. Evaluate at the upper limit x = 1:
       F(1) = (1 − 1)·e^1 = 0·e = 0
    
    6. Evaluate at the lower limit x = 0:
       F(0) = (0 − 1)·e^0 = −1·1 = −1
    
    7. Subtract: integral = F(1) − F(0) = 0 − (−1) = 1.
    
    Check: The integrand x·e^x is positive on (0, 1), ranging from 0 to e ≈ 2.718. A rough estimate of the area (average height around 1 over width 1) is consistent with the answer 1. Also, differentiating (x − 1)e^x gives e^x + (x − 1)e^x = x·e^x, confirming the antiderivative.
    
    Final answer: 1

    354 tokens in, 339 out (1 of them reasoning) · 8.9 s · $0.0001 · 1 message on Pro · answered by z-ai/glm-5.3-flash via GMICloud ·

  3. Claude Haiku 5.5

    Passed: Final answer 1: right.

    1. Integrate by parts: let u = x and dv = e^x dx.
    2. Then du = dx and v = e^x (each follows from the standard derivative and integral rules).
    3. Integration by parts gives: integral of x e^x dx = x e^x - integral of e^x dx.
    4. Evaluate the remaining integral: integral of e^x dx = e^x, so the antiderivative is F(x) = x e^x - e^x = e^x (x - 1).
    5. Apply the Fundamental Theorem of Calculus: integral from 0 to 1 = F(1) - F(0).
    6. F(1) = e^1 (1 - 1) = 0.
    7. F(0) = e^0 (0 - 1) = 1 × (-1) = -1.
    8. Subtract: F(1) - F(0) = 0 - (-1) = 1.
    
    Check: Estimate numerically. The integrand x e^x is 0 at x = 0 and rises to e ≈ 2.718 at x = 1. It is convex, so the trapezoid rule overestimates: (0 + e)/2 ≈ 1.359, which is above the true value. Simpson's rule with midpoint x = 0.5: f(0.5) = 0.5 × e^0.5 ≈ 0.824. Simpson gives (1/6)(0 + 4 × 0.824 + 2.718) = (1/6)(3.296 + 2.718) = (1/6)(6.014) ≈ 1.002, which is close to 1. Also, differentiating F(x) = e^x(x - 1) gives e^x(x - 1) + e^x = x e^x, confirming the antiderivative.
    
    The integral equals exactly 1, with no approximation needed.
    
    Final answer: 1

    454 tokens in, 575 out · 2.9 s · $0.0003 · 1 message on Pro · answered by anthropic/claude-haiku-5.5 via Anthropic ·

  4. DeepSeek V4.1 Flash

    Passed: Final answer 1: right.

    1. We want the definite integral I = ∫ from 0 to 1 of x·e^x dx.
    
    2. Use integration by parts: ∫ u dv = uv - ∫ v du.
    
    3. Choose u = x, so du = dx.
       Choose dv = e^x dx, so v = e^x.
    
    4. Then:
       I = [x·e^x] from 0 to 1 - ∫ from 0 to 1 of e^x dx.
    
    5. Evaluate the boundary term:
       At x = 1: 1·e^1 = e.
       At x = 0: 0·e^0 = 0.
       So [x·e^x] from 0 to 1 = e - 0 = e.
    
    6. Evaluate the remaining integral:
       ∫ from 0 to 1 of e^x dx = [e^x] from 0 to 1 = e^1 - e^0 = e - 1.
    
    7. Therefore:
       I = e - (e - 1) = e - e + 1 = 1.
    
    8. Check: the function x·e^x is positive on [0, 1], and its values range from 0 to e ≈ 2.718, so an integral around 1 is reasonable. Substituting the antiderivative confirms the exact value.
    
    Final answer: 1

    371 tokens in, 453 out (162 of them reasoning) · 8.8 s · $0.0007 · 1 message on Pro · answered by deepseek/deepseek-v4.1-flash via Together ·

  5. GPT-6.1 Terra

    Passed: Final answer 1: right.

    1. Use integration by parts, with u = x and dv = e^x dx.
    
    du = dx
    v = e^x
    
    2. Apply the integration-by-parts formula.
    
    ∫ from 0 to 1 of x·e^x dx = [x·e^x] from 0 to 1 − ∫ from 0 to 1 of e^x dx
    = [x·e^x − e^x] from 0 to 1
    
    3. Evaluate at the endpoints and subtract.
    
    [1·e^1 − e^1] − [0·e^0 − e^0]
    = 0 − (−1)
    = 1
    
    4. Check the antiderivative by differentiation.
    
    d/dx (x·e^x − e^x) = e^x + x·e^x − e^x
    = x·e^x
    
    Final answer: 1

    346 tokens in, 282 out (79 of them reasoning) · 3.8 s · $0.0009 · 1 message on Pro · answered by openai/gpt-6.1-terra via OpenAI ·

  6. Gemini 3.8 Flash

    Passed: Final answer 1: right.

    Step 1: Identify the integral to be evaluated.
    We need to find the definite integral:
    Integral from 0 to 1 of x * e^x dx.
    
    Step 2: Choose a method of integration.
    This is a product of an algebraic term, x, and an exponential term, e^x, so we use integration by parts.
    The formula for integration by parts is:
    Integral of u dv = u * v - Integral of v du.
    
    Step 3: Assign parts for u and dv.
    Let u = x.
    Then differentiating gives:
    du = dx.
    Let dv = e^x dx.
    Then integrating gives:
    v = e^x.
    
    Step 4: Apply the integration by parts formula to find the antiderivative.
    Integral of x * e^x dx = x * e^x - Integral of e^x dx.
    Since the integral of e^x is e^x, we have:
    Integral of x * e^x dx = x * e^x - e^x.
    We can factor out e^x to simplify:
    (x - 1) * e^x.
    
    Step 5: Evaluate the antiderivative at the upper limit, x = 1.
    (1 - 1) * e^1
    0 * e^1 = 0.
    
    Step 6: Evaluate the antiderivative at the lower limit, x = 0.
    (0 - 1) * e^0
    (-1) * 1 = -1.
    
    Step 7: Subtract the lower limit evaluation from the upper limit evaluation.
    0 - (-1) = 1.
    
    Step 8: Check the result.
    Differentiating our antiderivative, F(x) = (x - 1) * e^x:
    F'(x) = 1 * e^x + (x - 1) * e^x
    F'(x) = e^x + x * e^x - e^x
    F'(x) = x * e^x.
    The derivative matches the integrand.
    Checking values:
    F(1) = 0
    F(0) = -1
    F(1) - F(0) = 0 - (-1) = 1.
    The calculation is correct.
    
    Final answer: 1

    355 tokens in, 500 out · 8.2 s · $0.0011 · 1 message on Pro · answered by google/gemini-3.8-flash via Google AI Studio ·

  7. GLM 5.3

    Passed: Final answer 1: right.

    Solve the integral of x·e^x from 0 to 1 using integration by parts.
    
    Step 1. Set up integration by parts with u = x and dv = e^x dx. Then du = dx and v = e^x.
    
    Step 2. Apply the formula integral of u dv = uv minus integral of v du:
    integral of x·e^x dx = x·e^x minus integral of e^x dx = x·e^x minus e^x + C.
    
    Step 3. Evaluate from 0 to 1:
    (x·e^x minus e^x) evaluated at x = 1: 1·e^1 minus e^1 = e minus e = 0.
    At x = 0: 0·e^0 minus e^0 = 0 minus 1 = -1.
    
    Step 4. Subtract the lower value from the upper value:
    0 minus (-1) = 1.
    
    Step 5. Check by estimating: the integrand x·e^x is between 0 and e on [0, 1], growing from 0 to about 2.718. A rough trapezoid estimate with midpoint values gives about 1.0, consistent with the exact value 1.
    
    Final answer: 1

    354 tokens in, 274 out · 1.9 s · $0.0012 · 1 message on Pro · answered by z-ai/glm-5.3 via Friendli ·

  8. GPT-6 Sol

    Passed: Final answer 1: right.

    1. Use integration by parts with u = x and dv = e^x dx.
       Then du = dx and v = e^x.
    
    2. Apply the formula ∫u dv = uv − ∫v du.
       ∫x e^x dx = x e^x − ∫e^x dx
       ∫x e^x dx = x e^x − e^x = (x − 1)e^x
    
    3. Evaluate at the bounds.
       ∫ from 0 to 1 of x e^x dx = [(x − 1)e^x] from 0 to 1
       = (1 − 1)e^1 − (0 − 1)e^0
       = 0 − (−1)
       = 1
    
    4. Check by differentiating the antiderivative.
       d/dx [(x − 1)e^x] = e^x + (x − 1)e^x = x e^x
    
    Final answer: 1

    346 tokens in, 220 out · 3.1 s · $0.0014 · 1 message on Pro · answered by openai/gpt-6-sol via OpenAI ·

  9. GPT-6.1 Sol

    Passed: Final answer 1: right.

    1. Use integration by parts:
    ∫ u dv = uv - ∫ v du
    
    Choose:
    u = x, so du = dx
    dv = e^x dx, so v = e^x
    
    2. Apply the formula:
    ∫ x·e^x dx = x·e^x - ∫ e^x dx
    = x·e^x - e^x + C
    = (x - 1)e^x + C
    
    3. Evaluate at the bounds:
    ∫ from 0 to 1 of x·e^x dx = [(x - 1)e^x] from 0 to 1
    = (1 - 1)e^1 - (0 - 1)e^0
    = 0 - (-1)
    = 1
    
    4. Check by differentiating the antiderivative:
    d/dx [(x - 1)e^x] = e^x + (x - 1)e^x
    = x·e^x
    
    This matches the original integrand.
    
    Final answer: 1

    346 tokens in, 226 out · 3.4 s · $0.0015 · 1 message on Pro · answered by openai/gpt-6.1-sol via OpenAI ·

  10. GPT-6.2 Sol

    Passed: Final answer 1: right.

    1. Use integration by parts. Choose u = x and dv = e^x dx, so du = dx and v = e^x.
    
    ∫ x e^x dx = x e^x - ∫ e^x dx
    ∫ x e^x dx = (x - 1)e^x + C
    
    2. Check the antiderivative using the product rule.
    
    d/dx [(x - 1)e^x] = e^x + (x - 1)e^x
    e^x + (x - 1)e^x = x e^x
    
    3. Subtract the antiderivative at x = 0 from its value at x = 1.
    
    [(x - 1)e^x] from 0 to 1 = (1 - 1)e^1 - (0 - 1)e^0
    = 0 - (-1)
    = 1
    
    Final answer: 1

    346 tokens in, 201 out · 3.2 s · $0.0027 · 1 message on Pro · answered by openai/gpt-6.2-sol via OpenAI ·

  11. Claude Haiku 4.5

    Passed: Final answer 1: right.

    I need to evaluate the definite integral of x·e^x from 0 to 1.
    
    Step 1: Set up the integral.
    Integral from 0 to 1 of x·e^x dx
    
    Step 2: Use integration by parts, since the integrand is a product.
    Let u = x and dv = e^x dx
    Then du = dx and v = e^x
    
    Step 3: Apply the integration by parts formula: ∫u dv = uv - ∫v du
    ∫x·e^x dx = x·e^x - ∫e^x dx
    
    Step 4: Evaluate the remaining integral.
    ∫e^x dx = e^x
    So: ∫x·e^x dx = x·e^x - e^x = e^x(x - 1)
    
    Step 5: Apply the definite integral bounds from 0 to 1.
    [e^x(x - 1)] evaluated from 0 to 1
    = e^1(1 - 1) - e^0(0 - 1)
    
    Step 6: Simplify the upper bound.
    e^1(1 - 1) = e·0 = 0
    
    Step 7: Simplify the lower bound.
    e^0(0 - 1) = 1·(-1) = -1
    
    Step 8: Combine the results.
    0 - (-1) = 1
    
    Step 9: Check the result by numerical estimation.
    At x = 0: 0·e^0 = 0
    At x = 1: 1·e^1 ≈ 2.718
    The function x·e^x is increasing on [0,1] and mostly small, so the area under the curve should be less than 1·2.718 = 2.718, and reasonably in the range of 1 seems plausible. More precisely, e - 1 ≈ 1.718 would be an upper bound if the function were constant at e. Since it increases from 0 to e, an answer of 1 seems reasonable.
    
    Another check: The antiderivative is e^x(x - 1). At x = 1: e(0) = 0. At x = 0: 1(-1) = -1. Difference: 0 - (-1) = 1. ✓
    
    Final answer: 1

    365 tokens in, 573 out · 4.1 s · $0.0032 · 1 message on Pro · answered by anthropic/claude-haiku-4.5 via Anthropic ·

  12. Gemini 4 Argon

    Passed: Final answer 1: right.

    1. Write down the definite integral we need to evaluate.
    integral from 0 to 1 of (x * e^x) dx
    
    2. Use the integration by parts formula, which states that the integral of (u * dv) equals u * v minus the integral of (v * du). We choose u and dv from our integrand.
    u = x
    dv = e^x dx
    
    3. Differentiate u to find du, and integrate dv to find v.
    du = 1 dx
    v = e^x
    
    4. Apply the integration by parts formula to find the indefinite integral first.
    integral of (x * e^x) dx = x * e^x - integral of (e^x * 1) dx
    
    5. Evaluate the remaining integral of e^x, which is simply e^x.
    integral of (x * e^x) dx = x * e^x - e^x
    
    6. Factor out e^x to make the expression easier to evaluate.
    integral of (x * e^x) dx = e^x * (x - 1)
    
    7. Check the antiderivative by differentiating e^x * (x - 1) using the product rule.
    d/dx [e^x * (x - 1)] = (d/dx [e^x]) * (x - 1) + e^x * (d/dx [x - 1])
    = e^x * (x - 1) + e^x * (1)
    = x * e^x - e^x + e^x
    = x * e^x
    This matches our original integrand, confirming the antiderivative is correct.
    
    8. Now evaluate the definite integral by plugging in the upper limit (x = 1) and subtracting the result of plugging in the lower limit (x = 0).
    [e^1 * (1 - 1)] - [e^0 * (0 - 1)]
    
    9. Simplify the terms inside the brackets, recalling that e^0 = 1.
    [e * 0] - [1 * (-1)]
    = 0 - (-1)
    = 1
    
    10. Check the numerical reasonableness of the result. On the interval from 0 to 1, the function f(x) = x * e^x starts at f(0) = 0 and increases to f(1) = e (which is about 2.718). Because the function is concave up, the area under the curve should be somewhat less than the area of a triangle with base 1 and height e. The area of that triangle is (1/2) * 1 * 2.718 = 1.359. Our exact answer of 1 is slightly less than 1.359, which makes sense.
    
    Final answer: 1

    388 tokens in, 622 out · 10.0 s · $0.0035 · 1 message on Pro · answered by google/gemini-4-argon via Google AI Studio ·

  13. Kimi K3.1 Pro

    Passed: Final answer 1: right.

    1. Write the definite integral:
    Integral from 0 to 1 of x·e^x dx.
    
    2. Use integration by parts with u = x and dv = e^x dx:
    du = dx
    v = e^x
    
    3. Apply the formula Integral u dv = u·v − Integral v du:
    Integral x·e^x dx = x·e^x − Integral e^x dx
    = x·e^x − e^x
    = (x − 1)e^x
    
    4. Evaluate the antiderivative at the bounds:
    [(x − 1)e^x] from 0 to 1 = (1 − 1)e^1 − (0 − 1)e^0
    = 0 − (−1)
    = 1
    
    5. Check by differentiating the antiderivative:
    d/dx[(x − 1)e^x] = e^x + (x − 1)e^x = x·e^x
    This matches the integrand, so the result is correct.
    
    Final answer: 1

    432 tokens in, 348 out (119 of them reasoning) · 6.0 s · $0.0038 · 1 message on Pro · answered by moonshotai/kimi-k3.1-pro via Together ·

  14. DeepSeek V4 Pro

    Passed: Final answer 1: right.

    1. Use integration by parts. Let u = x and dv = e^x dx.
    2. Then du = dx and v = e^x.
    3. The integration by parts formula gives:
       integral of x e^x dx = x e^x - integral of e^x dx.
    4. Since integral of e^x dx = e^x, the antiderivative is:
       x e^x - e^x = e^x (x - 1).
    5. Evaluate from x = 0 to x = 1:
       at x = 1: e^1 (1 - 1) = 0
       at x = 0: e^0 (0 - 1) = -1
       difference: 0 - (-1) = 1.
    6. Check by differentiating e^x (x - 1):
       d/dx [e^x (x - 1)] = e^x (x - 1) + e^x = x e^x,
       which matches the original integrand.
    7. Alternate check using the definite integral form:
       integral from 0 to 1 of x e^x dx = [x e^x]_0^1 - integral from 0 to 1 of e^x dx
       = e - (e - 1)
       = 1.
    
    Final answer: 1

    345 tokens in, 988 out (714 of them reasoning) · 4.4 s · $0.0044 · 1 message on Pro · answered by deepseek/deepseek-v4-pro-0813 via CoreWeave ·

  15. Gemini 4 Hydrogen

    Passed: Final answer 1: right.

    To find the definite integral of x*e^x from x = 0 to x = 1, we first find the antiderivative using integration by parts, and then evaluate it at the limits.
    
    1. Set up integration by parts.
    The integration by parts formula is:
    integral(u dv) = u*v - integral(v du)
    Choose u = x and dv = e^x dx, because differentiating x makes it simpler.
    
    2. Find du and v.
    Differentiate u = x to get:
    du = 1 dx
    Integrate dv = e^x dx to get:
    v = e^x
    
    3. Apply the integration by parts formula to find the antiderivative.
    integral(x*e^x dx) = x*e^x - integral(e^x dx)
    Evaluate the remaining integral, since the integral of e^x is e^x:
    integral(x*e^x dx) = x*e^x - e^x
    Factor out e^x to simplify:
    F(x) = (x - 1)*e^x
    
    4. Evaluate F(x) at the upper limit x = 1 and the lower limit x = 0.
    At x = 1:
    F(1) = (1 - 1)*e^1 = 0*e = 0
    At x = 0:
    F(0) = (0 - 1)*e^0 = (-1)*1 = -1
    
    5. Subtract F(0) from F(1) using the Fundamental Theorem of Calculus.
    F(1) - F(0) = 0 - (-1) = 1
    
    6. Check the result.
    First, differentiate F(x) = (x - 1)*e^x using the product rule to verify the antiderivative:
    F'(x) = (1)*e^x + (x - 1)*e^x
    F'(x) = e^x + x*e^x - e^x
    F'(x) = x*e^x
    This matches the original integrand.
    Second, estimate the area under y = x*e^x on [0, 1] using Simpson's rule with midpoint x = 0.5:
    At x = 0, y = 0.
    At x = 0.5, y = 0.5*e^0.5 ≈ 0.5*1.649 = 0.8245.
    At x = 1, y = 1*e^1 ≈ 2.718.
    Estimated area ≈ (1/6)*(0 + 4*0.8245 + 2.718) = 6.016/6 ≈ 1.003, which confirms the exact value of 1.
    
    Final answer: 1

    388 tokens in, 1,240 out (608 of them reasoning) · 7.1 s · $0.0049 · 1 message on Pro · answered by google/gemini-4-hydrogen via Google AI Studio ·

  16. Gemini 3.1 Pro

    Passed: Final answer 1: right.

    To evaluate the integral of x e^x from x = 0 to x = 1, we can use the method of integration by parts. 
    
    1. State the formula for integration by parts.
    integral of u dv = u v - integral of v du
    
    2. Choose the parts u and dv from the expression x e^x. Let:
    u = x
    dv = e^x dx
    
    3. Find du by differentiating u, and find v by integrating dv.
    du = dx
    v = e^x
    
    4. Apply the integration by parts formula to find the antiderivative.
    integral of x e^x dx = x e^x - integral of e^x dx
    
    5. Evaluate the remaining integral. The integral of e^x is simply e^x.
    integral of x e^x dx = x e^x - e^x
    
    6. Apply the limits of integration from x = 0 to x = 1 to this antiderivative.
    First, substitute the upper limit (x = 1):
    1 e^1 - e^1
    = e - e
    = 0
    
    Next, substitute the lower limit (x = 0):
    0 e^0 - e^0
    = 0 - 1
    = -1
    
    7. Subtract the value at the lower limit from the value at the upper limit to find the definite integral.
    0 - (-1) = 1
    
    To check the result, we can take the derivative of our antiderivative, x e^x - e^x, using the product rule on the first term:
    d/dx (x e^x - e^x) 
    = (1 e^x + x e^x) - e^x 
    = e^x + x e^x - e^x 
    = x e^x
    This matches our original integrand, confirming the antiderivative is correct. The arithmetic for the limits 0 - (-1) = 1 is also correct.
    
    Final answer: 1

    355 tokens in, 873 out (445 of them reasoning) · 7.4 s · $0.0056 · 1 message on Pro · answered by google/gemini-3.1-pro-preview via Google AI Studio ·

  17. Kimi K3

    Passed: Final answer 1: right.

    1. We want the definite integral ∫₀¹ x·e^x dx.
    
    2. Use integration by parts: ∫ u dv = u·v − ∫ v du, with u = x and dv = e^x dx.
    
    3. Then du = dx and v = e^x.
    
    4. So ∫ x·e^x dx = x·e^x − ∫ e^x dx = x·e^x − e^x + C = e^x(x − 1) + C.
    
    5. Evaluate from 0 to 1: at x = 1, e^1(1 − 1) = 0.
    
    6. At x = 0, e^0(0 − 1) = −1.
    
    7. The integral equals 0 − (−1) = 1.
    
    Check: the antiderivative's derivative is d/dx [e^x(x − 1)] = e^x(x − 1) + e^x = x·e^x, which matches the integrand. Also, x·e^x averages around 1 on [0,1] (values from 0 to e ≈ 2.72), so an integral near 1 is reasonable.
    
    Final answer: 1

    432 tokens in, 296 out (32 of them reasoning) · 3.3 s · $0.0057 · 1 message on Pro · answered by moonshotai/kimi-k3 via Together ·

  18. Grok 4.7

    Passed: Final answer 1: right.

    Step 1: Recognize that the integral of x times e^x needs integration by parts, because the product rule does not give an elementary antiderivative directly.
    Step 2: Set u = x and dv = e^x dx, so that du = dx and v = e^x.
    Step 3: Apply the integration-by-parts formula ∫ u dv = u v - ∫ v du.
    x e^x - ∫ e^x dx
    Step 4: Integrate the remaining term.
    x e^x - e^x + C
    Step 5: Factor the antiderivative.
    e^x (x - 1) + C
    Step 6: Evaluate the definite integral from 0 to 1 by subtracting the antiderivative at the lower limit from its value at the upper limit.
    e^1 (1 - 1) - e^0 (0 - 1)
    Step 7: Simplify each endpoint.
    0 - (1)(-1)
    1
    Step 8: Check by differentiating the antiderivative: the derivative of e^x (x - 1) is e^x (x - 1) + e^x = x e^x, which matches the integrand, and the endpoint arithmetic 0 - (-1) = 1 is consistent with a rough estimate (the integrand rises from 0 to about 2.7, so its average value over an interval of length 1 is near 1).
    
    Final answer: 1

    1,584 tokens in, 804 out (491 of them reasoning) · 11.5 s · $0.0063 · 1 message on Pro · answered by x-ai/grok-4.7 via xAI ·

  19. Gemini 4 Carbon

    Passed: Final answer 1: right.

    1. Set up the problem using integration by parts.
    We want to find the definite integral of x * e^x from x = 0 to x = 1. Because the integrand is a product of an algebraic term (x) and an exponential term (e^x), we use the integration by parts formula:
    integral of (u dv) = u * v - integral of (v du)
    
    2. Choose u and dv, then find du and v.
    Let u = x, because its derivative becomes simpler.
    Differentiating both sides gives:
    du = 1 dx
    
    Let dv = e^x dx, because it is easy to integrate.
    Integrating both sides gives:
    v = e^x
    
    3. Find the antiderivative (indefinite integral).
    Substitute u, v, and du into the integration by parts formula:
    integral of (x * e^x dx) = x * e^x - integral of (e^x * 1 dx)
    
    Evaluate the remaining integral of e^x dx, which is e^x:
    integral of (x * e^x dx) = x * e^x - e^x
    
    Factor out e^x to make evaluation cleaner:
    F(x) = e^x * (x - 1)
    
    4. Evaluate the antiderivative from x = 0 to x = 1.
    By the Fundamental Theorem of Calculus, the definite integral equals F(1) - F(0).
    
    First, substitute the upper limit x = 1:
    F(1) = e^1 * (1 - 1)
    F(1) = e * 0
    F(1) = 0
    
    Next, substitute the lower limit x = 0 (remembering that e^0 = 1):
    F(0) = e^0 * (0 - 1)
    F(0) = 1 * (-1)
    F(0) = -1
    
    Subtract F(0) from F(1):
    F(1) - F(0) = 0 - (-1)
    F(1) - F(0) = 1
    
    5. Check the result.
    First, check the antiderivative F(x) = x * e^x - e^x by taking its derivative using the product rule on x * e^x:
    d/dx (x * e^x - e^x) = (1 * e^x + x * e^x) - e^x
    d/dx (x * e^x - e^x) = x * e^x
    This matches the original integrand.
    
    Second, do a quick numerical estimate of the area under f(x) = x * e^x on [0, 1] using Simpson's rule with midpoint x = 0.5 (using e ≈ 2.718 and e^0.5 ≈ 1.649):
    f(0) = 0
    f(0.5) ≈ 0.5 * 1.649 = 0.8245
    f(1) ≈ 1 * 2.718 = 2.718
    Area ≈ (1 / 6) * (f(0) + 4 * f(0.5) + f(1))
    Area ≈ (1 / 6) * (0 + 3.298 + 2.718)
    Area ≈ 6.016 / 6 ≈ 1.003
    This is very close to 1, confirming our exact answer makes sense.
    
    Final answer: 1

    388 tokens in, 1,223 out (434 of them reasoning) · 16.8 s · $0.0065 · 1 message on Pro · answered by google/gemini-4-carbon via Google AI Studio ·

  20. Claude Sonnet 5

    Passed: Final answer 1: right.

    Step 1: Use integration by parts with u = x, dv = e^x dx.
    Then du = dx, v = e^x.
    
    Step 2: Apply the formula ∫u dv = uv − ∫v du.
    ∫x·e^x dx = x·e^x − ∫e^x dx
    
    Step 3: Integrate e^x.
    ∫e^x dx = e^x
    
    Step 4: Combine results to get the antiderivative.
    F(x) = x·e^x − e^x = (x − 1)e^x
    
    Step 5: Evaluate F(x) at the bounds 0 and 1.
    F(1) = (1 − 1)e^1 = 0
    F(0) = (0 − 1)e^0 = −1
    
    Step 6: Compute the definite integral.
    ∫₀¹ x·e^x dx = F(1) − F(0) = 0 − (−1) = 1
    
    Step 7: Check by differentiating F(x) = (x−1)e^x.
    F'(x) = e^x + (x−1)e^x = x·e^x ✓ matches the integrand.
    
    Step 8: Sanity check numerically — the integrand x·e^x is positive and increasing on [0,1], roughly averaging around 1 (since e^1 ≈ 2.718, and the function rises from 0 to about 2.718), so an area of about 1 over an interval of length 1 is reasonable.
    
    Final answer: 1

    452 tokens in, 578 out (121 of them reasoning) · 5.9 s · $0.0067 · 1 message on Pro · answered by anthropic/claude-sonnet-5 via Anthropic ·

  21. Claude Sonnet 5.5

    Passed: Final answer 1: right.

    We want the definite integral of x·e^x from 0 to 1. I'll use integration by parts.
    
    Step 1: Recall the integration by parts formula.
    Integral of u dv = u·v - integral of v du.
    
    Step 2: Choose u and dv.
    u = x, so du = dx
    dv = e^x dx, so v = e^x
    This choice works because differentiating x simplifies it, while e^x stays the same under integration.
    
    Step 3: Apply the formula to the indefinite integral.
    Integral of x·e^x dx = x·e^x - integral of e^x dx
    
    Step 4: Integrate the remaining term.
    Integral of x·e^x dx = x·e^x - e^x + C
    = (x - 1)·e^x + C
    
    Step 5: Evaluate from 0 to 1.
    F(x) = (x - 1)·e^x
    F(1) = (1 - 1)·e^1 = 0
    F(0) = (0 - 1)·e^0 = -1
    
    Step 6: Subtract.
    F(1) - F(0) = 0 - (-1) = 1
    
    Step 7: Check the result.
    Differentiate F(x) = (x - 1)·e^x using the product rule:
    F'(x) = 1·e^x + (x - 1)·e^x = x·e^x
    This matches the integrand, so the antiderivative is correct.
    
    As a numerical sanity check, the integrand goes from 0 at x = 0 to e ≈ 2.718 at x = 1, and it is convex. The Simpson estimate is (1/6)(0 + 4·0.5·e^0.5 + e) = (1/6)(4·0.8244 + 2.7183) = (1/6)(3.2974 + 2.7183) ≈ 1.0026, which is very close to 1.
    
    Final answer: 1

    454 tokens in, 589 out · 4.6 s · $0.0068 · 1 message on Pro · answered by anthropic/claude-sonnet-5.5 via Anthropic ·

  22. GPT-6 Astra

    Passed: Final answer 1: right.

    1. Use integration by parts:
    ∫ u dv = uv − ∫ v du
    
    Choose:
    u = x
    dv = e^x dx
    du = dx
    v = e^x
    
    2. Find an antiderivative:
    ∫ x·e^x dx = x·e^x − ∫ e^x dx
    = x·e^x − e^x + C
    = (x − 1)e^x + C
    
    3. Evaluate at the limits:
    ∫ from 0 to 1 of x·e^x dx = [(x − 1)e^x] from 0 to 1
    = (1 − 1)e^1 − (0 − 1)e^0
    = 0 − (−1)
    = 1
    
    4. Check by differentiating the antiderivative:
    d/dx [(x − 1)e^x] = e^x + (x − 1)e^x
    = x·e^x
    
    This matches the integrand, confirming the calculation.
    
    Final answer: 1

    346 tokens in, 230 out · 2.8 s · $0.0075 · 1 message on Pro · answered by openai/gpt-6-astra via OpenAI ·

  23. Mistral Large 4

    Passed: Final answer 1: right.

    Step 1: Use integration by parts, which comes from reversing the product rule for derivatives: integral of u dv = u*v - integral of v du.
    Step 2: Pick u = x and dv = e^x dx, because differentiating u makes it simpler while integrating dv is easy.
    Step 3: Compute the needed pieces.
    du = dx
    v = e^x
    Step 4: Substitute into the integration-by-parts formula.
    integral of x*e^x dx = x*e^x - integral of e^x dx
    Step 5: Evaluate the remaining integral and simplify.
    integral of e^x dx = e^x
    integral of x*e^x dx = x*e^x - e^x = e^x*(x - 1)
    Step 6: Apply the Fundamental Theorem of Calculus over the interval [0,1].
    integral from 0 to 1 of x*e^x dx = [e^x*(x - 1)] evaluated from 0 to 1
    Step 7: Plug in the upper limit x = 1.
    e^1*(1 - 1) = e*0 = 0
    Step 8: Plug in the lower limit x = 0.
    e^0*(0 - 1) = 1*(-1) = -1
    Step 9: Subtract the lower-limit value from the upper-limit value.
    0 - (-1) = 1
    Step 10: Check by differentiating the antiderivative to make sure it gives back the integrand.
    d/dx [e^x*(x - 1)] = e^x*(x - 1) + e^x*1 = e^x*(x - 1 + 1) = x*e^x
    This matches the original integrand, so the antiderivative is correct. A rough estimate also fits: on [0,1] the integrand grows from 0 to e (about 2.718), so an area of 1 is reasonable.
    
    Final answer: 1

    361 tokens in, 4,217 out (3,806 of them reasoning) · 42.4 s · $0.0100 · 1 message on Pro · answered by mistralai/mistral-large-4-0 via Mistral ·

  24. GPT-6.2 Astra

    Passed: Final answer 1: right.

    1. Use integration by parts because differentiating x gives 1. Choose u = x and dv = e^x dx. Then:
    du = dx
    v = e^x
    
    2. Apply the integration-by-parts formula, ∫ u dv = uv − ∫ v du:
    ∫ x·e^x dx = x·e^x − ∫ e^x dx
    = x·e^x − e^x + C
    
    3. Evaluate the antiderivative at the upper limit and subtract its value at the lower limit:
    ∫₀¹ x·e^x dx = (1·e^1 − e^1) − (0·e^0 − e^0)
    = 0 − (−1)
    = 1
    
    4. Check the antiderivative using the product rule:
    d/dx (x·e^x − e^x) = e^x + x·e^x − e^x
    = x·e^x
    This matches the original integrand.
    
    Final answer: 1

    346 tokens in, 226 out · 3.8 s · $0.0118 · 1 message on Pro · answered by openai/gpt-6.2-astra via OpenAI ·

  25. Claude Opus 5.5

    Passed: Final answer 1: right.

    1. Set up the integral.
    I = ∫ from 0 to 1 of x·e^x dx
    
    2. Use integration by parts, ∫ u dv = u·v − ∫ v du, because the integrand is a polynomial times an exponential.
    Let u = x, so du = dx.
    Let dv = e^x dx, so v = e^x.
    
    3. Apply the formula to get the antiderivative.
    ∫ x·e^x dx = x·e^x − ∫ e^x dx
    = x·e^x − e^x + C
    = (x − 1)·e^x + C
    
    4. Evaluate from 0 to 1.
    At x = 1: (1 − 1)·e^1 = 0
    At x = 0: (0 − 1)·e^0 = −1
    
    5. Subtract the lower value from the upper value.
    I = 0 − (−1)
    = 1
    
    6. Check by differentiating the antiderivative.
    d/dx [(x − 1)·e^x] = e^x + (x − 1)·e^x (product rule)
    = x·e^x
    This matches the integrand.
    
    7. Check numerically with Simpson's rule on [0, 1], using f(x) = x·e^x.
    f(0) = 0
    f(1/2) = (1/2)·e^(1/2) ≈ 0.8244
    f(1) = e ≈ 2.7183
    Simpson's estimate = (1/6)·(0 + 4·0.8244 + 2.7183)
    ≈ 6.0159/6
    ≈ 1.003
    This agrees with the exact value 1.
    
    Final answer: 1

    454 tokens in, 707 out (196 of them reasoning) · 6.1 s · $0.0160 · 1 message on Pro · answered by anthropic/claude-opus-5.5 via Azure ·

  26. Claude Fable 5.2

    Passed: Final answer 1: right.

    We need the integral of x·e^x dx from x = 0 to x = 1. The integrand is a product of two different kinds of functions (a polynomial and an exponential), so integration by parts is the right method.
    
    Step 1. Recall the integration by parts formula.
    integral of u dv = u·v − integral of v du
    
    Step 2. Choose u and dv.
    u = x (it gets simpler when differentiated)
    dv = e^x dx (it is easy to integrate)
    
    Step 3. Compute du and v.
    du = dx
    v = e^x
    
    Step 4. Apply the formula.
    integral of x·e^x dx = x·e^x − integral of e^x dx
    = x·e^x − e^x + C
    = (x − 1)·e^x + C
    
    Step 5. Evaluate from 0 to 1.
    At x = 1: (1 − 1)·e^1 = 0
    At x = 0: (0 − 1)·e^0 = −1
    Difference: 0 − (−1) = 1
    
    Step 6. Check the antiderivative by differentiating it.
    d/dx [(x − 1)·e^x] = 1·e^x + (x − 1)·e^x
    = e^x + x·e^x − e^x
    = x·e^x
    This matches the integrand, so the antiderivative is correct.
    
    Step 7. Sanity check by estimate.
    On [0, 1], x·e^x rises from 0 to e (about 2.718), and the curve is convex, so the area should be below the triangle-like area of (1/2)·1·2.718 = 1.359 and above the midpoint estimate 0.5·e^0.5 = about 0.824.
    The value 1 lies between 0.824 and 1.359, so it is reasonable.
    
    Final answer: 1

    454 tokens in, 566 out · 6.2 s · $0.0263 · 1 message on Pro · answered by anthropic/claude-fable-5.2 via Google ·

  27. Claude Fable 5.1

    Passed: Final answer 1: right.

    Integration by parts is the natural tool, since the integrand is a product of a polynomial and an exponential.
    
    1. Set up integration by parts, which says ∫ u dv = uv − ∫ v du.
     Choose u = x (it simplifies when differentiated) and dv = e^x dx.
     Then du = dx and v = e^x.
    
    2. Apply the formula to the definite integral:
     ∫ from 0 to 1 of x·e^x dx = [x·e^x] from 0 to 1 − ∫ from 0 to 1 of e^x dx.
    
    3. Evaluate the boundary term:
     [x·e^x] from 0 to 1 = 1·e^1 − 0·e^0 = e − 0 = e.
    
    4. Evaluate the remaining integral:
     ∫ from 0 to 1 of e^x dx = [e^x] from 0 to 1 = e − 1.
    
    5. Combine:
     e − (e − 1) = e − e + 1 = 1.
    
    Check: The antiderivative is F(x) = x·e^x − e^x = (x − 1)e^x. Differentiating, F'(x) = e^x + (x − 1)e^x = x·e^x, which matches the integrand. Then F(1) − F(0) = (0)·e − (−1)·1 = 0 + 1 = 1. As a sanity estimate, x·e^x runs from 0 to e ≈ 2.718 on [0, 1] and is convex, so the area should be somewhat below the trapezoid value (0 + 2.718)/2 ≈ 1.36; a value of 1 is consistent with that.
    
    Final answer: 1

    454 tokens in, 541 out · 6.7 s · $0.0316 · 1 message on Pro · answered by anthropic/claude-fable-5.1 via Google ·

More AI math solver test inputs

The other AI math solver test inputs, each with every model's reply, and the results across all five.

Questions

Which AI does best on “A definite integral by parts”?

All 27 models passed this AI math solver test input's check (final answer). The cheapest reply that passed was GPT-6 Luna's, at $0.000080; the fastest, GLM 5.3's in 1.9 s. The dearest reply, Claude Fable 5.1's, cost 397 times as much ($0.0316).

What does a reply to “A definite integral by parts” cost?

Through the models' APIs, what OpenRouter charged us ran from $0.000080 (GPT-6 Luna) to $0.0316 (Claude Fable 5.1) for this test input. In llmwise you don't pay by the token: a reply like these counts as one message on Pro, whichever model answers.

Claude, GPT, Gemini, DeepSeek, Grok, Kimi, GLM, and Mistral, in one chat.

See what a message costs before you send it. Every plan is month to month: cancel in two clicks. Sign in with an email link, no password.