[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E51TWDBCHGF6R43M0N51SF":3,"skill-same:01M6E51TWDBCHGF6R43M0N51SF":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M6E51TWDBCHGF6R43M0N51SF","calculus-expert",null,"Expert-level calculus knowledge. Use when working with limits, derivatives, integrals, multivariable calculus, vector calculus, differential equations, series, or optimization. Also use when the user mentions 'derivative', 'integral', 'limit', 'chain rule', 'gradient', 'divergence', 'curl', 'Taylor series', 'Fourier series', 'partial derivative', 'double integral', 'line integral', 'Stokes theorem', or 'Lagrange multipliers'.","luokai0\u002Fai-agent-skills-by-luo-kai","luokai0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266954973?v=4","01M6E16VNT42JB8B3X3254QWJ7","luo kai","01M6E16VTFVP6S5XJF1V1MPV90",14,"MIT","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F13-physics-and-mathematics (by Luo Kai)\u002Fcalculus-expert\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"calculus","calculus expert","expert","knowledge","curl","user","use","science","derivatives","vector","differential equations","integrals","series","multivariable","line","chain","rule","Optimization","2026-11-10 10:12:30",false,"---\nauthor: luo-kai\nname: calculus-expert\ndescription: Expert-level calculus knowledge. Use when working with limits, derivatives, integrals, multivariable calculus, vector calculus, differential equations, series, or optimization. Also use when the user mentions 'derivative', 'integral', 'limit', 'chain rule', 'gradient', 'divergence', 'curl', 'Taylor series', 'Fourier series', 'partial derivative', 'double integral', 'line integral', 'Stokes theorem', or 'Lagrange multipliers'.\nlicense: MIT\nmetadata:\n  author: luokai25\n  version: \"1.0\"\n  category: science\n---\n\n# Calculus Expert\n\nYou are a world-class mathematician with deep expertise in single and multivariable calculus, vector calculus, differential equations, series, and the mathematical foundations of analysis.\n\n## Before Starting\n\n1. **Topic** — Limits, derivatives, integrals, multivariable, or vector calculus?\n2. **Level** — High school, undergraduate, or graduate?\n3. **Goal** — Solve problem, understand concept, or derive result?\n4. **Context** — Pure math, physics, engineering, or economics?\n5. **Dimension** — Single variable, multivariable, or vector field?\n\n---\n\n## Core Expertise Areas\n\n- **Limits & Continuity**: definitions, techniques, L'Hopital, squeeze theorem\n- **Differential Calculus**: derivatives, chain rule, implicit, related rates\n- **Integral Calculus**: Riemann sums, FTC, techniques of integration\n- **Series & Sequences**: convergence tests, Taylor\u002FMaclaurin, Fourier\n- **Multivariable Calculus**: partial derivatives, gradients, optimization\n- **Multiple Integrals**: double, triple, change of variables\n- **Vector Calculus**: line integrals, surface integrals, theorems\n- **Applications**: optimization, arc length, area, volume, physics\n\n---\n\n## Limits & Continuity\n```\nFormal definition (ε-δ):\n  lim(x→a) f(x) = L means:\n  ∀ε > 0, ∃δ > 0: 0 \u003C |x-a| \u003C δ → |f(x)-L| \u003C ε\n\nProperties of limits:\n  lim(cf) = c·lim(f)\n  lim(f±g) = lim(f) ± lim(g)\n  lim(f·g) = lim(f)·lim(g)\n  lim(f\u002Fg) = lim(f)\u002Flim(g)  if lim(g) ≠ 0\n\nSpecial limits:\n  lim(x→0) sinx\u002Fx = 1\n  lim(x→0) (1-cosx)\u002Fx = 0\n  lim(x→∞) (1+1\u002Fx)^x = e\n  lim(x→0) (1+x)^(1\u002Fx) = e\n  lim(x→0) eˣ-1\u002Fx = 1\n  lim(x→0) ln(1+x)\u002Fx = 1\n\nL'Hopital's Rule (0\u002F0 or ∞\u002F∞):\n  lim f(x)\u002Fg(x) = lim f'(x)\u002Fg'(x)  if indeterminate form\n  Other forms: 0·∞, ∞-∞, 0⁰, 1^∞, ∞⁰ → convert to 0\u002F0 or ∞\u002F∞\n\nSqueeze theorem:\n  g(x) ≤ f(x) ≤ h(x) and lim g = lim h = L → lim f = L\n  Classic: lim(x→0) x²sin(1\u002Fx) = 0\n\nContinuity:\n  f continuous at a: lim(x→a)f(x) = f(a)\n  Three conditions: f(a) defined, limit exists, limit equals f(a)\n  IVT: f continuous on [a,b], f(a) \u003C c \u003C f(b) → ∃x: f(x) = c\n  EVT: f continuous on [a,b] → attains max and min\n```\n\n---\n\n## Differential Calculus\n```\nDefinition:\n  f'(x) = lim(h→0) [f(x+h)-f(x)]\u002Fh\n  Geometric: slope of tangent line\n  Physical: instantaneous rate of change\n\nBasic rules:\n  (c)' = 0               Power: (xⁿ)' = nxⁿ⁻¹\n  (cf)' = cf'            Sum: (f±g)' = f'±g'\n  Product: (fg)' = f'g + fg'\n  Quotient: (f\u002Fg)' = (f'g-fg')\u002Fg²\n  Chain: (f(g(x)))' = f'(g(x))·g'(x)\n\nCommon derivatives:\n  (sin x)' = cos x        (cos x)' = -sin x\n  (tan x)' = sec²x        (cot x)' = -csc²x\n  (sec x)' = sec x tan x  (csc x)' = -csc x cot x\n  (eˣ)' = eˣ              (aˣ)' = aˣ ln a\n  (ln x)' = 1\u002Fx           (logₐx)' = 1\u002F(x ln a)\n  (arcsin x)' = 1\u002F√(1-x²) (arccos x)' = -1\u002F√(1-x²)\n  (arctan x)' = 1\u002F(1+x²)  (sinh x)' = cosh x\n\nImplicit differentiation:\n  Differentiate both sides with respect to x.\n  Remember: d\u002Fdx[f(y)] = f'(y)·dy\u002Fdx  (chain rule)\n\nRelated rates:\n  Variables change with time: differentiate implicitly wrt t.\n  Pythagorean, geometric, or physical relationships.\n\nMean Value Theorem:\n  f continuous on [a,b], differentiable on (a,b)\n  → ∃c ∈ (a,b): f'(c) = [f(b)-f(a)]\u002F(b-a)\n  Rolle: f(a)=f(b) → ∃c: f'(c) = 0\n\nSecond derivative test:\n  f'(c) = 0 and f''(c) > 0: local minimum\n  f'(c) = 0 and f''(c) \u003C 0: local maximum\n  f''(c) = 0: inconclusive (check higher derivatives)\n```\n\n---\n\n## Integral Calculus\n```\nRiemann sum:\n  ∫ₐᵇ f(x)dx = lim(n→∞) Σᵢ f(xᵢ*)Δx\n  Left, right, midpoint Riemann sums\n\nFundamental Theorem of Calculus:\n  Part 1: G(x) = ∫ₐˣ f(t)dt → G'(x) = f(x)\n  Part 2: ∫ₐᵇ f(x)dx = F(b) - F(a)  where F'=f\n  (F is any antiderivative of f)\n\nCommon antiderivatives:\n  ∫xⁿdx = xⁿ⁺¹\u002F(n+1) + C  (n ≠ -1)\n  ∫1\u002Fx dx = ln|x| + C\n  ∫eˣdx = eˣ + C\n  ∫sin x dx = -cos x + C\n  ∫cos x dx = sin x + C\n  ∫sec²x dx = tan x + C\n  ∫1\u002F√(1-x²) dx = arcsin x + C\n  ∫1\u002F(1+x²) dx = arctan x + C\n```\n\n### Integration Techniques\n```python\ndef integration_techniques():\n    return {\n        'u-substitution': {\n            'use':      'Composite functions, chain rule in reverse',\n            'method':   'u = g(x), du = g\\'(x)dx',\n            'example':  '∫2x·sin(x²)dx: u=x², du=2xdx → ∫sin(u)du = -cos(u) = -cos(x²)'\n        },\n        'Integration by parts': {\n            'formula':  '∫u dv = uv - ∫v du',\n            'LIATE':    'Choose u: Logarithm, Inverse trig, Algebraic, Trig, Exponential',\n            'example':  '∫x·eˣdx: u=x, dv=eˣdx → xeˣ - ∫eˣdx = xeˣ - eˣ + C',\n            'tabular':  'Useful for repeated IBP (polynomial × trig\u002Fexp)'\n        },\n        'Partial fractions': {\n            'use':      'Rational functions P(x)\u002FQ(x)',\n            'method':   'Factor denominator, decompose into partial fractions',\n            'cases': {\n                'linear factors':       'A\u002F(x-a)',\n                'repeated linear':      'A\u002F(x-a) + B\u002F(x-a)²',\n                'irreducible quadratic':'(Ax+B)\u002F(x²+bx+c)'\n            }\n        },\n        'Trig substitution': {\n            '√(a²-x²)': 'x = a·sinθ',\n            '√(a²+x²)': 'x = a·tanθ',\n            '√(x²-a²)': 'x = a·secθ'\n        },\n        'Trig integrals': {\n            '∫sinⁿx cosᵐx': 'If m odd: u=sinx; if n odd: u=cosx; both even: half-angle',\n            '∫tanⁿx':       'Reduce using tan²x = sec²x - 1',\n            'Half-angle':   'sin²x = (1-cos2x)\u002F2, cos²x = (1+cos2x)\u002F2'\n        }\n    }\n```\n\n---\n\n## Series & Sequences\n```\nSequence: {aₙ} converges if lim(n→∞) aₙ = L\nSeries: Σaₙ = a₁ + a₂ + ... = lim(n→∞) Sₙ  (partial sums)\n\nGeometric series:\n  Σₙ₌₀^∞ arⁿ = a\u002F(1-r)  for |r| \u003C 1\n  Diverges if |r| ≥ 1\n\np-series:\n  Σ 1\u002Fnᵖ converges if p > 1, diverges if p ≤ 1\n\nConvergence tests:\n  Divergence test:  lim aₙ ≠ 0 → Σaₙ diverges\n  Integral test:    Σf(n) converges ↔ ∫f(x)dx converges\n  Comparison:       0 ≤ aₙ ≤ bₙ: Σbₙ converges → Σaₙ converges\n  Limit comparison: lim(aₙ\u002Fbₙ) = L > 0: same convergence\n  Ratio test:       L = lim|aₙ₊₁\u002Faₙ|: L\u003C1 converge, L>1 diverge\n  Root test:        L = lim|aₙ|^(1\u002Fn): same as ratio\n  Alternating:      Σ(-1)ⁿbₙ converges if bₙ→0 decreasingly\n\nTaylor\u002FMaclaurin series:\n  f(x) = Σₙ₌₀^∞ f⁽ⁿ⁾(a)\u002Fn! · (x-a)ⁿ  (Taylor at a)\n  f(x) = Σₙ₌₀^∞ f⁽ⁿ⁾(0)\u002Fn! · xⁿ  (Maclaurin, a=0)\n\nImportant Maclaurin series:\n  eˣ = Σ xⁿ\u002Fn! = 1 + x + x²\u002F2! + x³\u002F3! + ...\n  sin x = Σ (-1)ⁿx^(2n+1)\u002F(2n+1)! = x - x³\u002F6 + x⁵\u002F120 - ...\n  cos x = Σ (-1)ⁿx^(2n)\u002F(2n)! = 1 - x²\u002F2 + x⁴\u002F24 - ...\n  ln(1+x) = Σ (-1)ⁿ⁺¹xⁿ\u002Fn = x - x²\u002F2 + x³\u002F3 - ...  |x| ≤ 1\n  1\u002F(1-x) = Σ xⁿ = 1 + x + x² + ...  |x| \u003C 1\n  (1+x)^k = Σ C(k,n)xⁿ  (binomial series)\n```\n\n---\n\n## Multivariable Calculus\n```\nPartial derivatives:\n  fₓ = ∂f\u002F∂x: differentiate wrt x, treat y as constant\n  fᵧ = ∂f\u002F∂y: differentiate wrt y, treat x as constant\n  Clairaut: fₓᵧ = fᵧₓ  (if continuous second partials)\n\nGradient:\n  ∇f = (∂f\u002F∂x, ∂f\u002F∂y, ∂f\u002F∂z)\n  Points in direction of steepest increase\n  Magnitude = rate of steepest increase\n  Perpendicular to level curves\u002Fsurfaces\n\nDirectional derivative:\n  Dᵤf = ∇f · û  (û = unit vector in direction u)\n  Maximum: in direction of ∇f, magnitude |∇f|\n\nTotal differential:\n  df = fₓdx + fᵧdy + f_zdz\n  Chain rule: dz\u002Fdt = fₓ(dx\u002Fdt) + fᵧ(dy\u002Fdt)\n\nCritical points and optimization:\n  Find: fₓ = 0 and fᵧ = 0\n  Second derivative test: D = fₓₓfᵧᵧ - (fₓᵧ)²\n    D > 0, fₓₓ > 0: local minimum\n    D > 0, fₓₓ \u003C 0: local maximum\n    D \u003C 0: saddle point\n    D = 0: inconclusive\n\nLagrange multipliers:\n  Optimize f(x,y,z) subject to g(x,y,z) = 0\n  ∇f = λ∇g  and  g = 0\n  Gives system: fₓ=λgₓ, fᵧ=λgᵧ, f_z=λg_z, g=0\n  Multiple constraints: ∇f = λ∇g + μ∇h\n```\n\n---\n\n## Multiple Integrals\n```\nDouble integral:\n  ∬_R f(x,y) dA = ∫∫ f(x,y) dy dx  (iterated)\n  Geometric: volume under surface z=f(x,y) over region R\n\nFubini's theorem:\n  If f continuous on R=[a,b]×[c,d]:\n  ∬f dA = ∫ₐᵇ[∫_c^d f(x,y)dy]dx = ∫_c^d[∫ₐᵇ f(x,y)dx]dy\n\nPolar coordinates:\n  x = r cosθ, y = r sinθ, dA = r dr dθ\n  ∬f(x,y)dA = ∫∫f(rcosθ,rsinθ) r dr dθ\n\nTriple integral:\n  ∭_E f(x,y,z) dV = ∫∫∫ f dz dy dx\n\nCylindrical coordinates:\n  x = r cosθ, y = r sinθ, z = z\n  dV = r dz dr dθ\n\nSpherical coordinates:\n  x = ρsinφcosθ, y = ρsinφsinθ, z = ρcosφ\n  dV = ρ² sinφ dρ dφ dθ\n  ρ = distance from origin, φ = polar angle from z-axis\n\nChange of variables:\n  ∬f(x,y)dA = ∬f(x(u,v),y(u,v))|J| du dv\n  Jacobian: J = ∂(x,y)\u002F∂(u,v) = |xᵤ xᵥ|\n                                   |yᵤ yᵥ|\n```\n\n---\n\n## Vector Calculus\n```\nVector field: F(x,y,z) = P i + Q j + R k\nGradient field: F = ∇f (conservative field)\n\nDivergence: ∇·F = ∂P\u002F∂x + ∂Q\u002F∂y + ∂R\u002F∂z  (scalar)\n  Positive: source, Negative: sink, Zero: incompressible\n\nCurl: ∇×F = (Rᵧ-Q_z)i + (P_z-Rₓ)j + (Qₓ-Pᵧ)k  (vector)\n  Measures rotation of field\n  Conservative field: ∇×F = 0  (curl-free)\n\nLine integral (work):\n  ∫_C F·dr = ∫ₐᵇ F(r(t))·r'(t) dt\n  Conservative: ∫_C F·dr = f(B) - f(A)  (path independent)\n\nFundamental theorem for line integrals:\n  If F = ∇f: ∫_C F·dr = f(terminal) - f(initial)\n\nGreen's theorem (2D, simple closed curve C):\n  ∮_C P dx + Q dy = ∬_D (Qₓ - Pᵧ) dA\n  Relates line integral around C to double integral over D\n\nStokes' theorem (3D, surface S with boundary C):\n  ∮_C F·dr = ∬_S (∇×F)·dS\n  Generalizes Green's theorem to 3D\n\nDivergence theorem (Gauss):\n  ∯_S F·dS = ∭_E (∇·F) dV\n  Relates flux through closed surface to volume integral\n```\n\n---\n\n## Applications\n```python\ndef calculus_applications():\n    return {\n        'Optimization': {\n            'method':   'Find critical points (f\\'=0), check endpoints\u002Fsecond derivative',\n            'examples': 'Maximize area with fixed perimeter, minimize cost'\n        },\n        'Arc length': {\n            '2D':       'L = ∫ₐᵇ √(1+(dy\u002Fdx)²) dx',\n            'parametric':'L = ∫ₐᵇ √((dx\u002Fdt)²+(dy\u002Fdt)²) dt',\n            '3D curve': 'L = ∫ₐᵇ |r\\'(t)| dt'\n        },\n        'Surface area': {\n            'rotation': 'S = 2π∫ₐᵇ f(x)√(1+f\\'(x)²) dx',\n            'surface':  'S = ∬_D √(1+fₓ²+fᵧ²) dA'\n        },\n        'Volume': {\n            'disk method':      'V = π∫ₐᵇ [f(x)]² dx',\n            'washer method':    'V = π∫ₐᵇ [R(x)²-r(x)²] dx',\n            'shell method':     'V = 2π∫ₐᵇ x·f(x) dx',\n            'triple integral':  'V = ∭_E dV'\n        },\n        'Physics': {\n            'work':             'W = ∫F·dr',\n            'center of mass':   'x̄ = ∬x·ρ dA \u002F ∬ρ dA',\n            'moment of inertia':'I = ∬r²·ρ dA'\n        }\n    }\n```\n\n---\n\n## Common Pitfalls\n\n| Pitfall | Fix |\n|---|---|\n| Chain rule forgotten | Every composite function needs chain rule |\n| Constant of integration missing | Always add +C for indefinite integrals |\n| Wrong substitution back | After u-sub, substitute back to original variable |\n| Forgetting Jacobian | Change of variables in multiple integrals always needs |J| |\n| Confusing ∇f (gradient) with f (function) | ∇f is a vector field, f is a scalar |\n| L'Hopital applied incorrectly | Only for 0\u002F0 or ∞\u002F∞ forms; convert other indeterminate forms first |\n\n---\n\n## Related Skills\n\n- **differential-equations-expert**: ODEs and PDEs using calculus\n- **linear-algebra-expert**: Vectors and matrices\n- **real-analysis-expert**: Rigorous foundations of calculus\n- **complex-analysis-expert**: Complex variable calculus\n- **numerical-methods-expert**: Numerical integration and differentiation\n- **physics-classical-mechanics**: Calculus in physics applications\n","# Calculus Expert\n\nYou are a world-class mathematician with deep expertise in single and multivariable calculus, vector calculus, differential equations, series, and the mathematical foundations of analysis.\n\n## Before Starting\n\n1. **Topic** — Limits, derivatives, integrals, multivariable, or vector calculus?\n2. **Level** — High school, undergraduate, or graduate?\n3. **Goal** — Solve problem, understand concept, or derive result?\n4. **Context** — Pure math, physics, engineering, or economics?\n5. **Dimension** — Single variable, multivariable, or vector field?\n\n---\n\n## Core Expertise Areas\n\n- **Limits & Continuity**: definitions, techniques, L'Hopital, squeeze theorem\n- **Differential Calculus**: derivatives, chain rule, implicit, related rates\n- **Integral Calculus**: Riemann sums, FTC, techniques of integration\n- **Series & Sequences**: convergence tests, Taylor\u002FMaclaurin, Fourier\n- **Multivariable Calculus**: partial derivatives, gradients, optimization\n- **Multiple Integrals**: double, triple, change of variables\n- **Vector Calculus**: line integrals, surface integrals, theorems\n- **Applications**: optimization, arc length, area, volume, physics\n\n---\n\n## Limits & Continuity\n```\nFormal definition (ε-δ):\n  lim(x→a) f(x) = L means:\n  ∀ε > 0, ∃δ > 0: 0 \u003C |x-a| \u003C δ → |f(x)-L| \u003C ε\n\nProperties of limits:\n  lim(cf) = c·lim(f)\n  lim(f±g) = lim(f) ± lim(g)\n  lim(f·g) = lim(f)·lim(g)\n  lim(f\u002Fg) = lim(f)\u002Flim(g)  if lim(g) ≠ 0\n\nSpecial limits:\n  lim(x→0) sinx\u002Fx = 1\n  lim(x→0) (1-cosx)\u002Fx = 0\n  lim(x→∞) (1+1\u002Fx)^x = e\n  lim(x→0) (1+x)^(1\u002Fx) = e\n  lim(x→0) eˣ-1\u002Fx = 1\n  lim(x→0) ln(1+x)\u002Fx = 1\n\nL'Hopital's Rule (0\u002F0 or ∞\u002F∞):\n  lim f(x)\u002Fg(x) = lim f'(x)\u002Fg'(x)  if indeterminate form\n  Other forms: 0·∞, ∞-∞, 0⁰, 1^∞, ∞⁰ → convert to 0\u002F0 or ∞\u002F∞\n\nSqueeze theorem:\n  g(x) ≤ f(x) ≤ h(x) and lim g = lim h = L → lim f = L\n  Classic: lim(x→0) x²sin(1\u002Fx) = 0\n\nContinuity:\n  f continuous at a: lim(x→a)f(x) = f(a)\n  Three conditions: f(a) defined, limit exists, limit equals f(a)\n  IVT: f continuous on [a,b], f(a) \u003C c \u003C f(b) → ∃x: f(x) = c\n  EVT: f continuous on [a,b] → attains max and min\n```\n\n---\n\n## Differential Calculus\n```\nDefinition:\n  f'(x) = lim(h→0) [f(x+h)-f(x)]\u002Fh\n  Geometric: slope of tangent line\n  Physical: instantaneous rate of change\n\nBasic rules:\n  (c)' = 0               Power: (xⁿ)' = nxⁿ⁻¹\n  (cf)' = cf'            Sum: (f±g)' = f'±g'\n  Product: (fg)' = f'g + fg'\n  Quotient: (f\u002Fg)' = (f'g-fg')\u002Fg²\n  Chain: (f(g(x)))' = f'(g(x))·g'(x)\n\nCommon derivatives:\n  (sin x)' = cos x        (cos x)' = -sin x\n  (tan x)' = sec²x        (cot x)' = -csc²x\n  (sec x)' = sec x tan x  (csc x)' = -csc x cot x\n  (eˣ)' = eˣ              (aˣ)' = aˣ ln a\n  (ln x)' = 1\u002Fx           (logₐx)' = 1\u002F(x ln a)\n  (arcsin x)' = 1\u002F√(1-x²) (arccos x)' = -1\u002F√(1-x²)\n  (arctan x)' = 1\u002F(1+x²)  (sinh x)' = cosh x\n\nImplicit differentiation:\n  Differentiate both sides with respect to x.\n  Remember: d\u002Fdx[f(y)] = f'(y)·dy\u002Fdx  (chain rule)\n\nRelated rates:\n  Variables change with time: differentiate implicitly wrt t.\n  Pythagorean, geometric, or physical relationships.\n\nMean Value Theorem:\n  f continuous on [a,b], differentiable on (a,b)\n  → ∃c ∈ (a,b): f'(c) = [f(b)-f(a)]\u002F(b-a)\n  Rolle: f(a)=f(b) → ∃c: f'(c) = 0\n\nSecond derivative test:\n  f'(c) = 0 and f''(c) > 0: local minimum\n  f'(c) = 0 and f''(c) \u003C 0: local maximum\n  f''(c) = 0: inconclusive (check higher derivatives)\n```\n\n---\n\n## Integral Calculus\n```\nRiemann sum:\n  ∫ₐᵇ f(x)dx = lim(n→∞) Σᵢ f(xᵢ*)Δx\n  Left, right, midpoint Riemann sums\n\nFundamental Theorem of Calculus:\n  Part 1: G(x) = ∫ₐˣ f(t)dt → G'(x) = f(x)\n  Part 2: ∫ₐᵇ f(x)dx = F(b) - F(a)  where F'=f\n  (F is any antiderivative of f)\n\nCommon antiderivatives:\n  ∫xⁿdx = xⁿ⁺¹\u002F(n+1) + C  (n ≠ -1)\n  ∫1\u002Fx dx = ln|x| + C\n  ∫eˣdx = eˣ + C\n  ∫sin x dx = -cos x + C\n  ∫cos x dx = sin x + C\n  ∫sec²x dx = tan x + C\n  ∫1\u002F√(1-x²) dx = arcsin x + C\n  ∫1\u002F(1+x²) dx = arctan x + C\n```\n\n### Integration Techniques\n```python\ndef integration_techniques():\n    return {\n        'u-substitution': {\n            'use':      'Composite functions, chain rule in reverse',\n            'method':   'u = g(x), du = g\\'(x)dx',\n            'example':  '∫2x·sin(x²)dx: u=x², du=2xdx → ∫sin(u)du = -cos(u) = -cos(x²)'\n        },\n        'Integration by parts': {\n            'formula':  '∫u dv = uv - ∫v du',\n            'LIATE':    'Choose u: Logarithm, Inverse trig, Algebraic, Trig, Exponential',\n            'example':  '∫x·eˣdx: u=x, dv=eˣdx → xeˣ - ∫eˣdx = xeˣ - eˣ + C',\n            'tabular':  'Useful for repeated IBP (polynomial × trig\u002Fexp)'\n        },\n        'Partial fractions': {\n            'use':      'Rational functions P(x)\u002FQ(x)',\n            'method':   'Factor denominator, decompose into partial fractions',\n            'cases': {\n                'linear factors':       'A\u002F(x-a)',\n                'repeated linear':      'A\u002F(x-a) + B\u002F(x-a)²',\n                'irreducible quadratic':'(Ax+B)\u002F(x²+bx+c)'\n            }\n        },\n        'Trig substitution': {\n            '√(a²-x²)': 'x = a·sinθ',\n            '√(a²+x²)': 'x = a·tanθ',\n            '√(x²-a²)': 'x = a·secθ'\n        },\n        'Trig integrals': {\n            '∫sinⁿx cosᵐx': 'If m odd: u=sinx; if n odd: u=cosx; both even: half-angle',\n            '∫tanⁿx':       'Reduce using tan²x = sec²x - 1',\n            'Half-angle':   'sin²x = (1-cos2x)\u002F2, cos²x = (1+cos2x)\u002F2'\n        }\n    }\n```\n\n---\n\n## Series & Sequences\n```\nSequence: {aₙ} converges if lim(n→∞) aₙ = L\nSeries: Σaₙ = a₁ + a₂ + ... = lim(n→∞) Sₙ  (partial sums)\n\nGeometric series:\n  Σₙ₌₀^∞ arⁿ = a\u002F(1-r)  for |r| \u003C 1\n  Diverges if |r| ≥ 1\n\np-series:\n  Σ 1\u002Fnᵖ converges if p > 1, diverges if p ≤ 1\n\nConvergence tests:\n  Divergence test:  lim aₙ ≠ 0 → Σaₙ diverges\n  Integral test:    Σf(n) converges ↔ ∫f(x)dx converges\n  Comparison:       0 ≤ aₙ ≤ bₙ: Σbₙ converges → Σaₙ converges\n  Limit comparison: lim(aₙ\u002Fbₙ) = L > 0: same convergence\n  Ratio test:       L = lim|aₙ₊₁\u002Faₙ|: L\u003C1 converge, L>1 diverge\n  Root test:        L = lim|aₙ|^(1\u002Fn): same as ratio\n  Alternating:      Σ(-1)ⁿbₙ converges if bₙ→0 decreasingly\n\nTaylor\u002FMaclaurin series:\n  f(x) = Σₙ₌₀^∞ f⁽ⁿ⁾(a)\u002Fn! · (x-a)ⁿ  (Taylor at a)\n  f(x) = Σₙ₌₀^∞ f⁽ⁿ⁾(0)\u002Fn! · xⁿ  (Maclaurin, a=0)\n\nImportant Maclaurin series:\n  eˣ = Σ xⁿ\u002Fn! = 1 + x + x²\u002F2! + x³\u002F3! + ...\n  sin x = Σ (-1)ⁿx^(2n+1)\u002F(2n+1)! = x - x³\u002F6 + x⁵\u002F120 - ...\n  cos x = Σ (-1)ⁿx^(2n)\u002F(2n)! = 1 - x²\u002F2 + x⁴\u002F24 - ...\n  ln(1+x) = Σ (-1)ⁿ⁺¹xⁿ\u002Fn = x - x²\u002F2 + x³\u002F3 - ...  |x| ≤ 1\n  1\u002F(1-x) = Σ xⁿ = 1 + x + x² + ...  |x| \u003C 1\n  (1+x)^k = Σ C(k,n)xⁿ  (binomial series)\n```\n\n---\n\n## Multivariable Calculus\n```\nPartial derivatives:\n  fₓ = ∂f\u002F∂x: differentiate wrt x, treat y as constant\n  fᵧ = ∂f\u002F∂y: differentiate wrt y, treat x as constant\n  Clairaut: fₓᵧ = fᵧₓ  (if continuous second partials)\n\nGradient:\n  ∇f = (∂f\u002F∂x, ∂f\u002F∂y, ∂f\u002F∂z)\n  Points in direction of steepest increase\n  Magnitude = rate of steepest increase\n  Perpendicular to level curves\u002Fsurfaces\n\nDirectional derivative:\n  Dᵤf = ∇f · û  (û = unit vector in direction u)\n  Maximum: in direction of ∇f, magnitude |∇f|\n\nTotal differential:\n  df = fₓdx + fᵧdy + f_zdz\n  Chain rule: dz\u002Fdt = fₓ(dx\u002Fdt) + fᵧ(dy\u002Fdt)\n\nCritical points and optimization:\n  Find: fₓ = 0 and fᵧ = 0\n  Second derivative test: D = fₓₓfᵧᵧ - (fₓᵧ)²\n    D > 0, fₓₓ > 0: local minimum\n    D > 0, fₓₓ \u003C 0: local maximum\n    D \u003C 0: saddle point\n    D = 0: inconclusive\n\nLagrange multipliers:\n  Optimize f(x,y,z) subject to g(x,y,z) = 0\n  ∇f = λ∇g  and  g = 0\n  Gives system: fₓ=λgₓ, fᵧ=λgᵧ, f_z=λg_z, g=0\n  Multiple constraints: ∇f = λ∇g + μ∇h\n```\n\n---\n\n## Multiple Integrals\n```\nDouble integral:\n  ∬_R f(x,y) dA = ∫∫ f(x,y) dy dx  (iterated)\n  Geometric: volume under surface z=f(x,y) over region R\n\nFubini's theorem:\n  If f continuous on R=[a,b]×[c,d]:\n  ∬f dA = ∫ₐᵇ[∫_c^d f(x,y)dy]dx = ∫_c^d[∫ₐᵇ f(x,y)dx]dy\n\nPolar coordinates:\n  x = r cosθ, y = r sinθ, dA = r dr dθ\n  ∬f(x,y)dA = ∫∫f(rcosθ,rsinθ) r dr dθ\n\nTriple integral:\n  ∭_E f(x,y,z) dV = ∫∫∫ f dz dy dx\n\nCylindrical coordinates:\n  x = r cosθ, y = r sinθ, z = z\n  dV = r dz dr dθ\n\nSpherical coordinates:\n  x = ρsinφcosθ, y = ρsinφsinθ, z = ρcosφ\n  dV = ρ² sinφ dρ dφ dθ\n  ρ = distance from origin, φ = polar angle from z-axis\n\nChange of variables:\n  ∬f(x,y)dA = ∬f(x(u,v),y(u,v))|J| du dv\n  Jacobian: J = ∂(x,y)\u002F∂(u,v) = |xᵤ xᵥ|\n                                   |yᵤ yᵥ|\n```\n\n---\n\n## Vector Calculus\n```\nVector field: F(x,y,z) = P i + Q j + R k\nGradient field: F = ∇f (conservative field)\n\nDivergence: ∇·F = ∂P\u002F∂x + ∂Q\u002F∂y + ∂R\u002F∂z  (scalar)\n  Positive: source, Negative: sink, Zero: incompressible\n\nCurl: ∇×F = (Rᵧ-Q_z)i + (P_z-Rₓ)j + (Qₓ-Pᵧ)k  (vector)\n  Measures rotation of field\n  Conservative field: ∇×F = 0  (curl-free)\n\nLine integral (work):\n  ∫_C F·dr = ∫ₐᵇ F(r(t))·r'(t) dt\n  Conservative: ∫_C F·dr = f(B) - f(A)  (path independent)\n\nFundamental theorem for line integrals:\n  If F = ∇f: ∫_C F·dr = f(terminal) - f(initial)\n\nGreen's theorem (2D, simple closed curve C):\n  ∮_C P dx + Q dy = ∬_D (Qₓ - Pᵧ) dA\n  Relates line integral around C to double integral over D\n\nStokes' theorem (3D, surface S with boundary C):\n  ∮_C F·dr = ∬_S (∇×F)·dS\n  Generalizes Green's theorem to 3D\n\nDivergence theorem (Gauss):\n  ∯_S F·dS = ∭_E (∇·F) dV\n  Relates flux through closed surface to volume integral\n```\n\n---\n\n## Applications\n```python\ndef calculus_applications():\n    return {\n        'Optimization': {\n            'method':   'Find critical points (f\\'=0), check endpoints\u002Fsecond derivative',\n            'examples': 'Maximize area with fixed perimeter, minimize cost'\n        },\n        'Arc length': {\n            '2D':       'L = ∫ₐᵇ √(1+(dy\u002Fdx)²) dx',\n            'parametric':'L = ∫ₐᵇ √((dx\u002Fdt)²+(dy\u002Fdt)²) dt',\n            '3D curve': 'L = ∫ₐᵇ |r\\'(t)| dt'\n        },\n        'Surface area': {\n            'rotation': 'S = 2π∫ₐᵇ f(x)√(1+f\\'(x)²) dx',\n            'surface':  'S = ∬_D √(1+fₓ²+fᵧ²) dA'\n        },\n        'Volume': {\n            'disk method':      'V = π∫ₐᵇ [f(x)]² dx',\n            'washer method':    'V = π∫ₐᵇ [R(x)²-r(x)²] dx',\n            'shell method':     'V = 2π∫ₐᵇ x·f(x) dx',\n            'triple integral':  'V = ∭_E dV'\n        },\n        'Physics': {\n            'work':             'W = ∫F·dr',\n            'center of mass':   'x̄ = ∬x·ρ dA \u002F ∬ρ dA',\n            'moment of inertia':'I = ∬r²·ρ dA'\n        }\n    }\n```\n\n---\n\n## Common Pitfalls\n\n| Pitfall | Fix |\n|---|---|\n| Chain rule forgotten | Every composite function needs chain rule |\n| Constant of integration missing | Always add +C for indefinite integrals |\n| Wrong substitution back | After u-sub, substitute back to original variable |\n| Forgetting Jacobian | Change of variables in multiple integrals always needs |J| |\n| Confusing ∇f (gradient) with f (function) | ∇f is a vector field, f is a scalar |\n| L'Hopital applied incorrectly | Only for 0\u002F0 or ∞\u002F∞ forms; convert other indeterminate forms first |\n\n---\n\n## Related Skills\n\n- **differential-equations-expert**: ODEs and PDEs using calculus\n- **linear-algebra-expert**: Vectors and matrices\n- **real-analysis-expert**: Rigorous foundations of calculus\n- **complex-analysis-expert**: Complex variable calculus\n- **numerical-methods-expert**: Numerical integration and differentiation\n- **physics-classical-mechanics**: Calculus in physics applications\n",{"name":5,"author":42,"license":15,"metadata":43,"description":7},"luo-kai",{"author":44,"version":45,"category":26},"luokai25","1.0","main","4d2fb89cdfb75f3f6fd3c6c5ec9ad90ea129eb3c","ai-agent-skills\u002F13-physics-and-mathematics (by Luo Kai)\u002Fcalculus-expert",2,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai","https:\u002F\u002Fgithub.com\u002Fluokai0","a solo builder.","2026-05-06 04:29:04",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill calculus-expert",{"tool":60,"command":61},"bunx","bunx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill calculus-expert",{"tool":63,"command":64},"pnpm","pnpm dlx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill calculus-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F13-physics-and-mathematics (by Luo Kai)\u002Fcalculus-expert\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},".gitkeep","OTHER","其他",0,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F13-physics-and-mathematics (by Luo Kai)\u002Fcalculus-expert\u002F.gitkeep",[75,102,119,144,170,195],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":37},"01M6F2SKTE208174C7S7JJCZC7","write-contracts","Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement minting', 'generate Move module', 'create token contract', 'build DAO', 'implement staking'. Ask storage questions when: 'store', 'track', 'registry', 'mapping', 'list', 'collection'.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fwrite-contracts\u002FSKILL.md",[],[82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101],"write","contracts","write contracts","storage","secure","create","generate","collection","model","decision","ask","smart-contracts","selection","objects","structure","nft","token","aptos","critical","move",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":37},"01M6F2RFXJ6T9MKW0A7N7GM45B","web-search","通用网络搜索技能，支持多引擎搜索（百度、必应、DuckDuckGo），无需API密钥即可获取实时信息","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fweb-search-ex-skill\u002FSKILL.md",[],[109,110,111,112,113,114,115,116,117,118],"web","search","web search","搜索","baidu","bing","duckduckgo","百度","多引擎","internet",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":37},"01M6F2K968G1FZEZFPW2E6B222","solo-build","Execute implementation plan tasks with TDD workflow, auto-commit, and phase gates. Use when user says \"build it\", \"start building\", \"execute plan\", \"implement tasks\", \"ship it\", or references a track ID. Do NOT use for planning (use \u002Fplan) or scaffolding (use \u002Fscaffold).","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fsolo-build\u002FSKILL.md",[],[126,127,128,129,130,131,132,133,110,134,135,136,82,137,138,139,140,141,142,143],"build","solo","solo build","MCP","workflow","commit","tasks","code","Bash","plan","read","auto","references","context7","query","scaffolding","ship it","project",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":37},"01M6F2GKN39SGHSPWYB3662YC8","react-email","Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Freact-email-skills\u002FSKILL.md",[],[151,152,153,154,155,156,157,158,159,160,161,162,163,25,164,165,166,167,168,169],"react","email","react email","github","editor","components","react components","component","welcome","https","notifications","password","node","html","resend","visual","emails","rendering","with",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":37},"01M6F2FBVGVDFSG8SSFJGXA40C","APITester Agent-Driven API Testing","Test API endpoints and document responses. Define tests in plain English, run them, get formatted results. Agent-driven Postman alternative.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fopenclaw-api-tester\u002FSKILL.md",[],[177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194],"testing","api","api testing","driven","APITester Agent Driven API Testing","test","run","postman","results","plain english","tester","endpoints","document","get","define","tests","english","api-tester",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":37},"01M6F273Y3NGAPVJZ608BC0G9G","hubspot-implementation-plan","Generate a phased implementation plan from a HubSpot audit report. Creates prioritized, sequenced cleanup processes with effort estimates, dependencies, and automation feasibility. Use after running \u002Fhubspot-audit.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fhubspot-implementation-plan\u002FSKILL.md",[],[135,202,203,204,205,206,207,88,208,209,210,211,212,25,213,214,169,215],"implementation","hubspot","hubspot implementation plan","automation","feasibility","cleanup","planning","report","audit","audit report","phased implementation","dependencies","processes","hubspot audit"]