diff --git a/content/lessons/EDITORIAL_REVIEW.md b/content/lessons/EDITORIAL_REVIEW.md
new file mode 100644
index 00000000..16989262
--- /dev/null
+++ b/content/lessons/EDITORIAL_REVIEW.md
@@ -0,0 +1,481 @@
+# Bilingual editorial review
+
+25 of 390 lessons reviewed. 365 remain.
+
+A checked lesson has had both language files rewritten or reviewed against its configuration and visualization source. Automated validation alone does not mark a lesson reviewed. Browser interaction and independent learner review remain separate checks.
+
+Scope: every lesson, including summaries, parameter labels, examples, exercises, explanations, formulas, derivation notes, and applications.
+
+## aerodynamics (0/15)
+
+- [ ] [bernoulli](aerodynamics/bernoulli/en.md) · [Arabic](aerodynamics/bernoulli/ar.md)
+- [ ] [boundary-layer](aerodynamics/boundary-layer/en.md) · [Arabic](aerodynamics/boundary-layer/ar.md)
+- [ ] [drag-equation](aerodynamics/drag-equation/en.md) · [Arabic](aerodynamics/drag-equation/ar.md)
+- [ ] [four-forces-of-flight](aerodynamics/four-forces-of-flight/en.md) · [Arabic](aerodynamics/four-forces-of-flight/ar.md)
+- [ ] [gliding-and-glide-ratio](aerodynamics/gliding-and-glide-ratio/en.md) · [Arabic](aerodynamics/gliding-and-glide-ratio/ar.md)
+- [ ] [helicopters-and-rotors](aerodynamics/helicopters-and-rotors/en.md) · [Arabic](aerodynamics/helicopters-and-rotors/ar.md)
+- [ ] [how-wings-really-lift](aerodynamics/how-wings-really-lift/en.md) · [Arabic](aerodynamics/how-wings-really-lift/ar.md)
+- [ ] [lift](aerodynamics/lift/en.md) · [Arabic](aerodynamics/lift/ar.md)
+- [ ] [lift-to-drag](aerodynamics/lift-to-drag/en.md) · [Arabic](aerodynamics/lift-to-drag/ar.md)
+- [ ] [mach-number](aerodynamics/mach-number/en.md) · [Arabic](aerodynamics/mach-number/ar.md)
+- [ ] [propellers-and-jets](aerodynamics/propellers-and-jets/en.md) · [Arabic](aerodynamics/propellers-and-jets/ar.md)
+- [ ] [reynolds-number](aerodynamics/reynolds-number/en.md) · [Arabic](aerodynamics/reynolds-number/ar.md)
+- [ ] [stall-and-angle-of-attack](aerodynamics/stall-and-angle-of-attack/en.md) · [Arabic](aerodynamics/stall-and-angle-of-attack/ar.md)
+- [ ] [terminal-velocity](aerodynamics/terminal-velocity/en.md) · [Arabic](aerodynamics/terminal-velocity/ar.md)
+- [ ] [wingtip-vortices-and-induced-drag](aerodynamics/wingtip-vortices-and-induced-drag/en.md) · [Arabic](aerodynamics/wingtip-vortices-and-induced-drag/ar.md)
+
+## ai (0/17)
+
+- [ ] [activation-functions](ai/activation-functions/en.md) · [Arabic](ai/activation-functions/ar.md)
+- [ ] [ai-agents](ai/ai-agents/en.md) · [Arabic](ai/ai-agents/ar.md)
+- [ ] [attention](ai/attention/en.md) · [Arabic](ai/attention/ar.md)
+- [ ] [convolution](ai/convolution/en.md) · [Arabic](ai/convolution/ar.md)
+- [ ] [diffusion](ai/diffusion/en.md) · [Arabic](ai/diffusion/ar.md)
+- [ ] [linear-regression](ai/linear-regression/en.md) · [Arabic](ai/linear-regression/ar.md)
+- [ ] [logistic-regression](ai/logistic-regression/en.md) · [Arabic](ai/logistic-regression/ar.md)
+- [ ] [loss-landscape](ai/loss-landscape/en.md) · [Arabic](ai/loss-landscape/ar.md)
+- [ ] [neural-network](ai/neural-network/en.md) · [Arabic](ai/neural-network/ar.md)
+- [ ] [next-word-prediction](ai/next-word-prediction/en.md) · [Arabic](ai/next-word-prediction/ar.md)
+- [ ] [overfitting](ai/overfitting/en.md) · [Arabic](ai/overfitting/ar.md)
+- [ ] [rlhf](ai/rlhf/en.md) · [Arabic](ai/rlhf/ar.md)
+- [ ] [scaling-laws](ai/scaling-laws/en.md) · [Arabic](ai/scaling-laws/ar.md)
+- [ ] [temperature-and-softmax](ai/temperature-and-softmax/en.md) · [Arabic](ai/temperature-and-softmax/ar.md)
+- [ ] [tokenization](ai/tokenization/en.md) · [Arabic](ai/tokenization/ar.md)
+- [ ] [what-is-machine-learning](ai/what-is-machine-learning/en.md) · [Arabic](ai/what-is-machine-learning/ar.md)
+- [ ] [word-embeddings](ai/word-embeddings/en.md) · [Arabic](ai/word-embeddings/ar.md)
+
+## algebra (0/12)
+
+- [ ] [absolute-value-inequalities](algebra/absolute-value-inequalities/en.md) · [Arabic](algebra/absolute-value-inequalities/ar.md)
+- [ ] [complex-numbers](algebra/complex-numbers/en.md) · [Arabic](algebra/complex-numbers/ar.md)
+- [ ] [determinant](algebra/determinant/en.md) · [Arabic](algebra/determinant/ar.md)
+- [ ] [eigenvectors](algebra/eigenvectors/en.md) · [Arabic](algebra/eigenvectors/ar.md)
+- [ ] [exponents-and-powers](algebra/exponents-and-powers/en.md) · [Arabic](algebra/exponents-and-powers/ar.md)
+- [ ] [linear-equations](algebra/linear-equations/en.md) · [Arabic](algebra/linear-equations/ar.md)
+- [ ] [logarithms](algebra/logarithms/en.md) · [Arabic](algebra/logarithms/ar.md)
+- [ ] [matrices-as-transformations](algebra/matrices-as-transformations/en.md) · [Arabic](algebra/matrices-as-transformations/ar.md)
+- [ ] [percent-and-compound-growth](algebra/percent-and-compound-growth/en.md) · [Arabic](algebra/percent-and-compound-growth/ar.md)
+- [ ] [powers-of-complex-numbers](algebra/powers-of-complex-numbers/en.md) · [Arabic](algebra/powers-of-complex-numbers/ar.md)
+- [ ] [quadratic-roots](algebra/quadratic-roots/en.md) · [Arabic](algebra/quadratic-roots/ar.md)
+- [ ] [vectors](algebra/vectors/en.md) · [Arabic](algebra/vectors/ar.md)
+
+## biology (0/13)
+
+- [ ] [action-potential](biology/action-potential/en.md) · [Arabic](biology/action-potential/ar.md)
+- [ ] [bacterial-growth](biology/bacterial-growth/en.md) · [Arabic](biology/bacterial-growth/ar.md)
+- [ ] [cell-size-and-surface-area](biology/cell-size-and-surface-area/en.md) · [Arabic](biology/cell-size-and-surface-area/ar.md)
+- [ ] [diffusion-and-osmosis](biology/diffusion-and-osmosis/en.md) · [Arabic](biology/diffusion-and-osmosis/ar.md)
+- [ ] [dna-and-mutation-rates](biology/dna-and-mutation-rates/en.md) · [Arabic](biology/dna-and-mutation-rates/ar.md)
+- [ ] [enzyme-kinetics](biology/enzyme-kinetics/en.md) · [Arabic](biology/enzyme-kinetics/ar.md)
+- [ ] [hardy-weinberg](biology/hardy-weinberg/en.md) · [Arabic](biology/hardy-weinberg/ar.md)
+- [ ] [heart-rate-and-blood-flow](biology/heart-rate-and-blood-flow/en.md) · [Arabic](biology/heart-rate-and-blood-flow/ar.md)
+- [ ] [logistic-population](biology/logistic-population/en.md) · [Arabic](biology/logistic-population/ar.md)
+- [ ] [natural-selection](biology/natural-selection/en.md) · [Arabic](biology/natural-selection/ar.md)
+- [ ] [photosynthesis-and-light](biology/photosynthesis-and-light/en.md) · [Arabic](biology/photosynthesis-and-light/ar.md)
+- [ ] [predator-prey](biology/predator-prey/en.md) · [Arabic](biology/predator-prey/ar.md)
+- [ ] [sir-epidemic](biology/sir-epidemic/en.md) · [Arabic](biology/sir-epidemic/ar.md)
+
+## calculus (1/17)
+
+- [ ] [area-under-curve](calculus/area-under-curve/en.md) · [Arabic](calculus/area-under-curve/ar.md)
+- [ ] [chain-and-product-rule](calculus/chain-and-product-rule/en.md) · [Arabic](calculus/chain-and-product-rule/ar.md)
+- [ ] [continuity](calculus/continuity/en.md) · [Arabic](calculus/continuity/ar.md)
+- [x] [derivative](calculus/derivative/en.md) · [Arabic](calculus/derivative/ar.md)
+- [ ] [differential-equations-intro](calculus/differential-equations-intro/en.md) · [Arabic](calculus/differential-equations-intro/ar.md)
+- [ ] [exponential-growth](calculus/exponential-growth/en.md) · [Arabic](calculus/exponential-growth/ar.md)
+- [ ] [fundamental-theorem](calculus/fundamental-theorem/en.md) · [Arabic](calculus/fundamental-theorem/ar.md)
+- [ ] [gradient](calculus/gradient/en.md) · [Arabic](calculus/gradient/ar.md)
+- [ ] [improper-integrals](calculus/improper-integrals/en.md) · [Arabic](calculus/improper-integrals/ar.md)
+- [ ] [integral](calculus/integral/en.md) · [Arabic](calculus/integral/ar.md)
+- [ ] [limit](calculus/limit/en.md) · [Arabic](calculus/limit/ar.md)
+- [ ] [limits-at-infinity](calculus/limits-at-infinity/en.md) · [Arabic](calculus/limits-at-infinity/ar.md)
+- [ ] [logistic-growth](calculus/logistic-growth/en.md) · [Arabic](calculus/logistic-growth/ar.md)
+- [ ] [one-sided-and-infinite-limits](calculus/one-sided-and-infinite-limits/en.md) · [Arabic](calculus/one-sided-and-infinite-limits/ar.md)
+- [ ] [partial-derivatives-saddle](calculus/partial-derivatives-saddle/en.md) · [Arabic](calculus/partial-derivatives-saddle/ar.md)
+- [ ] [sum-of-all-numbers](calculus/sum-of-all-numbers/en.md) · [Arabic](calculus/sum-of-all-numbers/ar.md)
+- [ ] [taylor-series](calculus/taylor-series/en.md) · [Arabic](calculus/taylor-series/ar.md)
+
+## chemistry (0/13)
+
+- [ ] [atomic-structure](chemistry/atomic-structure/en.md) · [Arabic](chemistry/atomic-structure/ar.md)
+- [ ] [chemical-equilibrium](chemistry/chemical-equilibrium/en.md) · [Arabic](chemistry/chemical-equilibrium/ar.md)
+- [ ] [chemical-reaction](chemistry/chemical-reaction/en.md) · [Arabic](chemistry/chemical-reaction/ar.md)
+- [ ] [dilution-molarity](chemistry/dilution-molarity/en.md) · [Arabic](chemistry/dilution-molarity/ar.md)
+- [ ] [electrochemistry-cells](chemistry/electrochemistry-cells/en.md) · [Arabic](chemistry/electrochemistry-cells/ar.md)
+- [ ] [ideal-gas-law](chemistry/ideal-gas-law/en.md) · [Arabic](chemistry/ideal-gas-law/ar.md)
+- [ ] [ionic-and-covalent-bonding](chemistry/ionic-and-covalent-bonding/en.md) · [Arabic](chemistry/ionic-and-covalent-bonding/ar.md)
+- [ ] [moles-and-molar-mass](chemistry/moles-and-molar-mass/en.md) · [Arabic](chemistry/moles-and-molar-mass/ar.md)
+- [ ] [periodic-table](chemistry/periodic-table/en.md) · [Arabic](chemistry/periodic-table/ar.md)
+- [ ] [periodic-trends](chemistry/periodic-trends/en.md) · [Arabic](chemistry/periodic-trends/ar.md)
+- [ ] [ph-scale](chemistry/ph-scale/en.md) · [Arabic](chemistry/ph-scale/ar.md)
+- [ ] [reaction-rate](chemistry/reaction-rate/en.md) · [Arabic](chemistry/reaction-rate/ar.md)
+- [ ] [titration-curve](chemistry/titration-curve/en.md) · [Arabic](chemistry/titration-curve/ar.md)
+
+## computer-science (0/12)
+
+- [ ] [algorithms-and-complexity](computer-science/algorithms-and-complexity/en.md) · [Arabic](computer-science/algorithms-and-complexity/ar.md)
+- [ ] [binary-numbers](computer-science/binary-numbers/en.md) · [Arabic](computer-science/binary-numbers/ar.md)
+- [ ] [breadth-first-search](computer-science/breadth-first-search/en.md) · [Arabic](computer-science/breadth-first-search/ar.md)
+- [ ] [bubble-sort](computer-science/bubble-sort/en.md) · [Arabic](computer-science/bubble-sort/ar.md)
+- [ ] [depth-first-search](computer-science/depth-first-search/en.md) · [Arabic](computer-science/depth-first-search/ar.md)
+- [ ] [dijkstra](computer-science/dijkstra/en.md) · [Arabic](computer-science/dijkstra/ar.md)
+- [ ] [exponential-vs-polynomial](computer-science/exponential-vs-polynomial/en.md) · [Arabic](computer-science/exponential-vs-polynomial/ar.md)
+- [ ] [half-adder](computer-science/half-adder/en.md) · [Arabic](computer-science/half-adder/ar.md)
+- [ ] [logic-gates](computer-science/logic-gates/en.md) · [Arabic](computer-science/logic-gates/ar.md)
+- [ ] [merge-sort](computer-science/merge-sort/en.md) · [Arabic](computer-science/merge-sort/ar.md)
+- [ ] [quicksort](computer-science/quicksort/en.md) · [Arabic](computer-science/quicksort/ar.md)
+- [ ] [sorting-in-the-real-world](computer-science/sorting-in-the-real-world/en.md) · [Arabic](computer-science/sorting-in-the-real-world/ar.md)
+
+## cosmos (0/12)
+
+- [ ] [cosmic-microwave-background](cosmos/cosmic-microwave-background/en.md) · [Arabic](cosmos/cosmic-microwave-background/ar.md)
+- [ ] [dark-energy](cosmos/dark-energy/en.md) · [Arabic](cosmos/dark-energy/ar.md)
+- [ ] [dark-matter-rotation-curves](cosmos/dark-matter-rotation-curves/en.md) · [Arabic](cosmos/dark-matter-rotation-curves/ar.md)
+- [ ] [exoplanet-transits](cosmos/exoplanet-transits/en.md) · [Arabic](cosmos/exoplanet-transits/ar.md)
+- [ ] [expanding-universe-hubble-law](cosmos/expanding-universe-hubble-law/en.md) · [Arabic](cosmos/expanding-universe-hubble-law/ar.md)
+- [ ] [gravitational-lensing](cosmos/gravitational-lensing/en.md) · [Arabic](cosmos/gravitational-lensing/ar.md)
+- [ ] [life-of-a-star](cosmos/life-of-a-star/en.md) · [Arabic](cosmos/life-of-a-star/ar.md)
+- [ ] [parallax-and-distances](cosmos/parallax-and-distances/en.md) · [Arabic](cosmos/parallax-and-distances/ar.md)
+- [ ] [quark-confinement](cosmos/quark-confinement/en.md) · [Arabic](cosmos/quark-confinement/ar.md)
+- [ ] [quarks-and-protons](cosmos/quarks-and-protons/en.md) · [Arabic](cosmos/quarks-and-protons/ar.md)
+- [ ] [quasars](cosmos/quasars/en.md) · [Arabic](cosmos/quasars/ar.md)
+- [ ] [the-scale-of-the-universe](cosmos/the-scale-of-the-universe/en.md) · [Arabic](cosmos/the-scale-of-the-universe/ar.md)
+
+## cryptography (0/20)
+
+- [ ] [block-ciphers-and-aes](cryptography/block-ciphers-and-aes/en.md) · [Arabic](cryptography/block-ciphers-and-aes/ar.md)
+- [ ] [caesar-cipher](cryptography/caesar-cipher/en.md) · [Arabic](cryptography/caesar-cipher/ar.md)
+- [ ] [confusion-and-diffusion](cryptography/confusion-and-diffusion/en.md) · [Arabic](cryptography/confusion-and-diffusion/ar.md)
+- [ ] [diffie-hellman](cryptography/diffie-hellman/en.md) · [Arabic](cryptography/diffie-hellman/ar.md)
+- [ ] [digital-signatures](cryptography/digital-signatures/en.md) · [Arabic](cryptography/digital-signatures/ar.md)
+- [ ] [elliptic-curve-cryptography](cryptography/elliptic-curve-cryptography/en.md) · [Arabic](cryptography/elliptic-curve-cryptography/ar.md)
+- [ ] [enigma-machine](cryptography/enigma-machine/en.md) · [Arabic](cryptography/enigma-machine/ar.md)
+- [ ] [frequency-analysis](cryptography/frequency-analysis/en.md) · [Arabic](cryptography/frequency-analysis/ar.md)
+- [ ] [hash-functions](cryptography/hash-functions/en.md) · [Arabic](cryptography/hash-functions/ar.md)
+- [ ] [lattice-cryptography](cryptography/lattice-cryptography/en.md) · [Arabic](cryptography/lattice-cryptography/ar.md)
+- [ ] [modular-arithmetic](cryptography/modular-arithmetic/en.md) · [Arabic](cryptography/modular-arithmetic/ar.md)
+- [ ] [one-way-functions](cryptography/one-way-functions/en.md) · [Arabic](cryptography/one-way-functions/ar.md)
+- [ ] [password-salting](cryptography/password-salting/en.md) · [Arabic](cryptography/password-salting/ar.md)
+- [ ] [rsa-encryption](cryptography/rsa-encryption/en.md) · [Arabic](cryptography/rsa-encryption/ar.md)
+- [ ] [secret-sharing](cryptography/secret-sharing/en.md) · [Arabic](cryptography/secret-sharing/ar.md)
+- [ ] [stream-ciphers](cryptography/stream-ciphers/en.md) · [Arabic](cryptography/stream-ciphers/ar.md)
+- [ ] [transposition-ciphers](cryptography/transposition-ciphers/en.md) · [Arabic](cryptography/transposition-ciphers/ar.md)
+- [ ] [vigenere-cipher](cryptography/vigenere-cipher/en.md) · [Arabic](cryptography/vigenere-cipher/ar.md)
+- [ ] [xor-and-one-time-pad](cryptography/xor-and-one-time-pad/en.md) · [Arabic](cryptography/xor-and-one-time-pad/ar.md)
+- [ ] [zero-knowledge-proofs](cryptography/zero-knowledge-proofs/en.md) · [Arabic](cryptography/zero-knowledge-proofs/ar.md)
+
+## data (0/12)
+
+- [ ] [bits-bytes-and-data-sizes](data/bits-bytes-and-data-sizes/en.md) · [Arabic](data/bits-bytes-and-data-sizes/ar.md)
+- [ ] [column-storage-and-bigquery](data/column-storage-and-bigquery/en.md) · [Arabic](data/column-storage-and-bigquery/ar.md)
+- [ ] [compression-and-entropy](data/compression-and-entropy/en.md) · [Arabic](data/compression-and-entropy/ar.md)
+- [ ] [data-visualisation-honestly](data/data-visualisation-honestly/en.md) · [Arabic](data/data-visualisation-honestly/ar.md)
+- [ ] [grouping-and-totals](data/grouping-and-totals/en.md) · [Arabic](data/grouping-and-totals/ar.md)
+- [ ] [hashing-and-checksums](data/hashing-and-checksums/en.md) · [Arabic](data/hashing-and-checksums/ar.md)
+- [ ] [indexes-and-fast-search](data/indexes-and-fast-search/en.md) · [Arabic](data/indexes-and-fast-search/ar.md)
+- [ ] [joins-between-tables](data/joins-between-tables/en.md) · [Arabic](data/joins-between-tables/ar.md)
+- [ ] [mapreduce](data/mapreduce/en.md) · [Arabic](data/mapreduce/ar.md)
+- [ ] [parallel-computing](data/parallel-computing/en.md) · [Arabic](data/parallel-computing/ar.md)
+- [ ] [sampling-big-data](data/sampling-big-data/en.md) · [Arabic](data/sampling-big-data/ar.md)
+- [ ] [tables-and-filtering](data/tables-and-filtering/en.md) · [Arabic](data/tables-and-filtering/ar.md)
+
+## discrete (0/12)
+
+- [ ] [graph-colouring](discrete/graph-colouring/en.md) · [Arabic](discrete/graph-colouring/ar.md)
+- [ ] [graphs-and-euler-paths](discrete/graphs-and-euler-paths/en.md) · [Arabic](discrete/graphs-and-euler-paths/ar.md)
+- [ ] [implication-and-equivalence](discrete/implication-and-equivalence/en.md) · [Arabic](discrete/implication-and-equivalence/ar.md)
+- [ ] [modular-patterns-and-clocks](discrete/modular-patterns-and-clocks/en.md) · [Arabic](discrete/modular-patterns-and-clocks/ar.md)
+- [ ] [pigeonhole-and-counting](discrete/pigeonhole-and-counting/en.md) · [Arabic](discrete/pigeonhole-and-counting/ar.md)
+- [ ] [proof-by-induction](discrete/proof-by-induction/en.md) · [Arabic](discrete/proof-by-induction/ar.md)
+- [ ] [propositional-logic](discrete/propositional-logic/en.md) · [Arabic](discrete/propositional-logic/ar.md)
+- [ ] [quantifiers](discrete/quantifiers/en.md) · [Arabic](discrete/quantifiers/ar.md)
+- [ ] [relations-and-functions](discrete/relations-and-functions/en.md) · [Arabic](discrete/relations-and-functions/ar.md)
+- [ ] [sequences-and-recurrences](discrete/sequences-and-recurrences/en.md) · [Arabic](discrete/sequences-and-recurrences/ar.md)
+- [ ] [sets-and-venn-diagrams](discrete/sets-and-venn-diagrams/en.md) · [Arabic](discrete/sets-and-venn-diagrams/ar.md)
+- [ ] [trees-and-spanning-trees](discrete/trees-and-spanning-trees/en.md) · [Arabic](discrete/trees-and-spanning-trees/ar.md)
+
+## earth-space (0/19)
+
+- [ ] [day-length-and-latitude](earth-space/day-length-and-latitude/en.md) · [Arabic](earth-space/day-length-and-latitude/ar.md)
+- [ ] [earth-size](earth-space/earth-size/en.md) · [Arabic](earth-space/earth-size/ar.md)
+- [ ] [earthquake-magnitude](earth-space/earthquake-magnitude/en.md) · [Arabic](earth-space/earthquake-magnitude/ar.md)
+- [ ] [eclipses](earth-space/eclipses/en.md) · [Arabic](earth-space/eclipses/ar.md)
+- [ ] [escape-velocity](earth-space/escape-velocity/en.md) · [Arabic](earth-space/escape-velocity/ar.md)
+- [ ] [greenhouse-effect](earth-space/greenhouse-effect/en.md) · [Arabic](earth-space/greenhouse-effect/ar.md)
+- [ ] [kepler-orbits](earth-space/kepler-orbits/en.md) · [Arabic](earth-space/kepler-orbits/ar.md)
+- [ ] [moon-distance](earth-space/moon-distance/en.md) · [Arabic](earth-space/moon-distance/ar.md)
+- [ ] [moon-phases](earth-space/moon-phases/en.md) · [Arabic](earth-space/moon-phases/ar.md)
+- [ ] [moon-size](earth-space/moon-size/en.md) · [Arabic](earth-space/moon-size/ar.md)
+- [ ] [planet-distances](earth-space/planet-distances/en.md) · [Arabic](earth-space/planet-distances/ar.md)
+- [ ] [plate-tectonics](earth-space/plate-tectonics/en.md) · [Arabic](earth-space/plate-tectonics/ar.md)
+- [ ] [radioactive-dating](earth-space/radioactive-dating/en.md) · [Arabic](earth-space/radioactive-dating/ar.md)
+- [ ] [seasons](earth-space/seasons/en.md) · [Arabic](earth-space/seasons/ar.md)
+- [ ] [sun-distance](earth-space/sun-distance/en.md) · [Arabic](earth-space/sun-distance/ar.md)
+- [ ] [sun-size](earth-space/sun-size/en.md) · [Arabic](earth-space/sun-size/ar.md)
+- [ ] [the-water-cycle-and-clouds](earth-space/the-water-cycle-and-clouds/en.md) · [Arabic](earth-space/the-water-cycle-and-clouds/ar.md)
+- [ ] [tides](earth-space/tides/en.md) · [Arabic](earth-space/tides/ar.md)
+- [ ] [transit-of-venus](earth-space/transit-of-venus/en.md) · [Arabic](earth-space/transit-of-venus/ar.md)
+
+## economics (0/12)
+
+- [ ] [budgeting-and-saving](economics/budgeting-and-saving/en.md) · [Arabic](economics/budgeting-and-saving/ar.md)
+- [ ] [compound-interest](economics/compound-interest/en.md) · [Arabic](economics/compound-interest/ar.md)
+- [ ] [elasticity](economics/elasticity/en.md) · [Arabic](economics/elasticity/ar.md)
+- [ ] [exchange-rates](economics/exchange-rates/en.md) · [Arabic](economics/exchange-rates/ar.md)
+- [ ] [gdp-and-growth](economics/gdp-and-growth/en.md) · [Arabic](economics/gdp-and-growth/ar.md)
+- [ ] [inflation](economics/inflation/en.md) · [Arabic](economics/inflation/ar.md)
+- [ ] [loan-amortization](economics/loan-amortization/en.md) · [Arabic](economics/loan-amortization/ar.md)
+- [ ] [present-value](economics/present-value/en.md) · [Arabic](economics/present-value/ar.md)
+- [ ] [price-controls](economics/price-controls/en.md) · [Arabic](economics/price-controls/ar.md)
+- [ ] [risk-and-diversification](economics/risk-and-diversification/en.md) · [Arabic](economics/risk-and-diversification/ar.md)
+- [ ] [supply-and-demand](economics/supply-and-demand/en.md) · [Arabic](economics/supply-and-demand/ar.md)
+- [ ] [taxes-and-brackets](economics/taxes-and-brackets/en.md) · [Arabic](economics/taxes-and-brackets/ar.md)
+
+## electricity (0/14)
+
+- [ ] [ac-power](electricity/ac-power/en.md) · [Arabic](electricity/ac-power/ar.md)
+- [ ] [batteries-and-internal-resistance](electricity/batteries-and-internal-resistance/en.md) · [Arabic](electricity/batteries-and-internal-resistance/ar.md)
+- [ ] [capacitors](electricity/capacitors/en.md) · [Arabic](electricity/capacitors/ar.md)
+- [ ] [charge-and-current](electricity/charge-and-current/en.md) · [Arabic](electricity/charge-and-current/ar.md)
+- [ ] [electric-power-and-energy-bills](electricity/electric-power-and-energy-bills/en.md) · [Arabic](electricity/electric-power-and-energy-bills/ar.md)
+- [ ] [electrical-safety](electricity/electrical-safety/en.md) · [Arabic](electricity/electrical-safety/ar.md)
+- [ ] [kirchhoffs-laws](electricity/kirchhoffs-laws/en.md) · [Arabic](electricity/kirchhoffs-laws/ar.md)
+- [ ] [ohms-law](electricity/ohms-law/en.md) · [Arabic](electricity/ohms-law/ar.md)
+- [ ] [rc-circuit](electricity/rc-circuit/en.md) · [Arabic](electricity/rc-circuit/ar.md)
+- [ ] [resistance-and-resistivity](electricity/resistance-and-resistivity/en.md) · [Arabic](electricity/resistance-and-resistivity/ar.md)
+- [ ] [rlc-resonance](electricity/rlc-resonance/en.md) · [Arabic](electricity/rlc-resonance/ar.md)
+- [ ] [series-parallel](electricity/series-parallel/en.md) · [Arabic](electricity/series-parallel/ar.md)
+- [ ] [smith-chart](electricity/smith-chart/en.md) · [Arabic](electricity/smith-chart/ar.md)
+- [ ] [voltage-and-energy](electricity/voltage-and-energy/en.md) · [Arabic](electricity/voltage-and-energy/ar.md)
+
+## electromagnetism (0/12)
+
+- [ ] [amperes-law-and-solenoid](electromagnetism/amperes-law-and-solenoid/en.md) · [Arabic](electromagnetism/amperes-law-and-solenoid/ar.md)
+- [ ] [coulombs-law](electromagnetism/coulombs-law/en.md) · [Arabic](electromagnetism/coulombs-law/ar.md)
+- [ ] [electric-motors](electromagnetism/electric-motors/en.md) · [Arabic](electromagnetism/electric-motors/ar.md)
+- [ ] [electric-potential](electromagnetism/electric-potential/en.md) · [Arabic](electromagnetism/electric-potential/ar.md)
+- [ ] [electromagnetic-induction-in-daily-life](electromagnetism/electromagnetic-induction-in-daily-life/en.md) · [Arabic](electromagnetism/electromagnetic-induction-in-daily-life/ar.md)
+- [ ] [electromagnetic-waves-and-the-spectrum](electromagnetism/electromagnetic-waves-and-the-spectrum/en.md) · [Arabic](electromagnetism/electromagnetic-waves-and-the-spectrum/ar.md)
+- [ ] [faradays-law](electromagnetism/faradays-law/en.md) · [Arabic](electromagnetism/faradays-law/ar.md)
+- [ ] [gauss-law](electromagnetism/gauss-law/en.md) · [Arabic](electromagnetism/gauss-law/ar.md)
+- [ ] [generators-and-ac](electromagnetism/generators-and-ac/en.md) · [Arabic](electromagnetism/generators-and-ac/ar.md)
+- [ ] [lorentz-force](electromagnetism/lorentz-force/en.md) · [Arabic](electromagnetism/lorentz-force/ar.md)
+- [ ] [magnets-and-field-lines](electromagnetism/magnets-and-field-lines/en.md) · [Arabic](electromagnetism/magnets-and-field-lines/ar.md)
+- [ ] [transformers](electromagnetism/transformers/en.md) · [Arabic](electromagnetism/transformers/ar.md)
+
+## engineering (0/12)
+
+- [ ] [beam-bending](engineering/beam-bending/en.md) · [Arabic](engineering/beam-bending/ar.md)
+- [ ] [bridges-and-trusses](engineering/bridges-and-trusses/en.md) · [Arabic](engineering/bridges-and-trusses/ar.md)
+- [ ] [decibels](engineering/decibels/en.md) · [Arabic](engineering/decibels/ar.md)
+- [ ] [feedback-and-stability](engineering/feedback-and-stability/en.md) · [Arabic](engineering/feedback-and-stability/ar.md)
+- [ ] [fourier-series](engineering/fourier-series/en.md) · [Arabic](engineering/fourier-series/ar.md)
+- [ ] [gears-and-gear-ratios](engineering/gears-and-gear-ratios/en.md) · [Arabic](engineering/gears-and-gear-ratios/ar.md)
+- [ ] [levers-pulleys-and-mechanical-advantage](engineering/levers-pulleys-and-mechanical-advantage/en.md) · [Arabic](engineering/levers-pulleys-and-mechanical-advantage/ar.md)
+- [ ] [low-pass-filter](engineering/low-pass-filter/en.md) · [Arabic](engineering/low-pass-filter/ar.md)
+- [ ] [pid-control](engineering/pid-control/en.md) · [Arabic](engineering/pid-control/ar.md)
+- [ ] [sampling-and-aliasing](engineering/sampling-and-aliasing/en.md) · [Arabic](engineering/sampling-and-aliasing/ar.md)
+- [ ] [signals-and-noise](engineering/signals-and-noise/en.md) · [Arabic](engineering/signals-and-noise/ar.md)
+- [ ] [stress-strain-and-materials](engineering/stress-strain-and-materials/en.md) · [Arabic](engineering/stress-strain-and-materials/ar.md)
+
+## functions (12/12)
+
+- [x] [composing-functions](functions/composing-functions/en.md) · [Arabic](functions/composing-functions/ar.md)
+- [x] [domain-and-range](functions/domain-and-range/en.md) · [Arabic](functions/domain-and-range/ar.md)
+- [x] [exponential-and-logarithmic-functions](functions/exponential-and-logarithmic-functions/en.md) · [Arabic](functions/exponential-and-logarithmic-functions/ar.md)
+- [x] [function-graph](functions/function-graph/en.md) · [Arabic](functions/function-graph/ar.md)
+- [x] [inverse-functions](functions/inverse-functions/en.md) · [Arabic](functions/inverse-functions/ar.md)
+- [x] [periodic-functions](functions/periodic-functions/en.md) · [Arabic](functions/periodic-functions/ar.md)
+- [x] [piecewise-and-absolute-value](functions/piecewise-and-absolute-value/en.md) · [Arabic](functions/piecewise-and-absolute-value/ar.md)
+- [x] [polynomial-shape](functions/polynomial-shape/en.md) · [Arabic](functions/polynomial-shape/ar.md)
+- [x] [quadratic-functions](functions/quadratic-functions/en.md) · [Arabic](functions/quadratic-functions/ar.md)
+- [x] [rational-functions-and-asymptotes](functions/rational-functions-and-asymptotes/en.md) · [Arabic](functions/rational-functions-and-asymptotes/ar.md)
+- [x] [slope](functions/slope/en.md) · [Arabic](functions/slope/ar.md)
+- [x] [transformations-of-graphs](functions/transformations-of-graphs/en.md) · [Arabic](functions/transformations-of-graphs/ar.md)
+
+## geometry (0/19)
+
+- [ ] [angles-and-parallel-lines](geometry/angles-and-parallel-lines/en.md) · [Arabic](geometry/angles-and-parallel-lines/ar.md)
+- [ ] [area-and-perimeter](geometry/area-and-perimeter/en.md) · [Arabic](geometry/area-and-perimeter/ar.md)
+- [ ] [building-dimensions](geometry/building-dimensions/en.md) · [Arabic](geometry/building-dimensions/ar.md)
+- [ ] [circle](geometry/circle/en.md) · [Arabic](geometry/circle/ar.md)
+- [ ] [circle-theorems](geometry/circle-theorems/en.md) · [Arabic](geometry/circle-theorems/ar.md)
+- [ ] [congruence-and-similarity](geometry/congruence-and-similarity/en.md) · [Arabic](geometry/congruence-and-similarity/ar.md)
+- [ ] [coordinate-geometry](geometry/coordinate-geometry/en.md) · [Arabic](geometry/coordinate-geometry/ar.md)
+- [ ] [distance-in-any-dimension](geometry/distance-in-any-dimension/en.md) · [Arabic](geometry/distance-in-any-dimension/ar.md)
+- [ ] [eleven-dimensions](geometry/eleven-dimensions/en.md) · [Arabic](geometry/eleven-dimensions/ar.md)
+- [ ] [higher-dimensions](geometry/higher-dimensions/en.md) · [Arabic](geometry/higher-dimensions/ar.md)
+- [ ] [nets-and-solids](geometry/nets-and-solids/en.md) · [Arabic](geometry/nets-and-solids/ar.md)
+- [ ] [polygons-and-tessellation](geometry/polygons-and-tessellation/en.md) · [Arabic](geometry/polygons-and-tessellation/ar.md)
+- [ ] [pythagorean-theorem](geometry/pythagorean-theorem/en.md) · [Arabic](geometry/pythagorean-theorem/ar.md)
+- [ ] [slicing-higher-dimensions](geometry/slicing-higher-dimensions/en.md) · [Arabic](geometry/slicing-higher-dimensions/ar.md)
+- [ ] [surface-area-and-volume](geometry/surface-area-and-volume/en.md) · [Arabic](geometry/surface-area-and-volume/ar.md)
+- [ ] [tesseract](geometry/tesseract/en.md) · [Arabic](geometry/tesseract/ar.md)
+- [ ] [transformations-and-symmetry](geometry/transformations-and-symmetry/en.md) · [Arabic](geometry/transformations-and-symmetry/ar.md)
+- [ ] [triangle-angles-and-sides](geometry/triangle-angles-and-sides/en.md) · [Arabic](geometry/triangle-angles-and-sides/ar.md)
+- [ ] [what-is-a-dimension](geometry/what-is-a-dimension/en.md) · [Arabic](geometry/what-is-a-dimension/ar.md)
+
+## networking (0/15)
+
+- [ ] [bluetooth](networking/bluetooth/en.md) · [Arabic](networking/bluetooth/ar.md)
+- [ ] [cdn](networking/cdn/en.md) · [Arabic](networking/cdn/ar.md)
+- [ ] [cell-towers](networking/cell-towers/en.md) · [Arabic](networking/cell-towers/ar.md)
+- [ ] [cloud-vpc](networking/cloud-vpc/en.md) · [Arabic](networking/cloud-vpc/ar.md)
+- [ ] [dialer-codes](networking/dialer-codes/en.md) · [Arabic](networking/dialer-codes/ar.md)
+- [ ] [dns](networking/dns/en.md) · [Arabic](networking/dns/ar.md)
+- [ ] [firewall](networking/firewall/en.md) · [Arabic](networking/firewall/ar.md)
+- [ ] [latency-and-bandwidth](networking/latency-and-bandwidth/en.md) · [Arabic](networking/latency-and-bandwidth/ar.md)
+- [ ] [nas-and-raid](networking/nas-and-raid/en.md) · [Arabic](networking/nas-and-raid/ar.md)
+- [ ] [packet-switching](networking/packet-switching/en.md) · [Arabic](networking/packet-switching/ar.md)
+- [ ] [routers](networking/routers/en.md) · [Arabic](networking/routers/ar.md)
+- [ ] [ss7](networking/ss7/en.md) · [Arabic](networking/ss7/ar.md)
+- [ ] [tcp](networking/tcp/en.md) · [Arabic](networking/tcp/ar.md)
+- [ ] [vpn](networking/vpn/en.md) · [Arabic](networking/vpn/ar.md)
+- [ ] [wifi](networking/wifi/en.md) · [Arabic](networking/wifi/ar.md)
+
+## nuclear (0/16)
+
+- [ ] [alpha-beta-gamma](nuclear/alpha-beta-gamma/en.md) · [Arabic](nuclear/alpha-beta-gamma/ar.md)
+- [ ] [binding-energy](nuclear/binding-energy/en.md) · [Arabic](nuclear/binding-energy/ar.md)
+- [ ] [chain-reaction](nuclear/chain-reaction/en.md) · [Arabic](nuclear/chain-reaction/ar.md)
+- [ ] [chart-of-nuclides](nuclear/chart-of-nuclides/en.md) · [Arabic](nuclear/chart-of-nuclides/ar.md)
+- [ ] [decay-chains](nuclear/decay-chains/en.md) · [Arabic](nuclear/decay-chains/ar.md)
+- [ ] [fusion-in-stars](nuclear/fusion-in-stars/en.md) · [Arabic](nuclear/fusion-in-stars/ar.md)
+- [ ] [fusion-reactors](nuclear/fusion-reactors/en.md) · [Arabic](nuclear/fusion-reactors/ar.md)
+- [ ] [mass-defect](nuclear/mass-defect/en.md) · [Arabic](nuclear/mass-defect/ar.md)
+- [ ] [medical-isotopes](nuclear/medical-isotopes/en.md) · [Arabic](nuclear/medical-isotopes/ar.md)
+- [ ] [nuclear-fission](nuclear/nuclear-fission/en.md) · [Arabic](nuclear/nuclear-fission/ar.md)
+- [ ] [nuclear-fusion](nuclear/nuclear-fusion/en.md) · [Arabic](nuclear/nuclear-fusion/ar.md)
+- [ ] [nuclear-reactor](nuclear/nuclear-reactor/en.md) · [Arabic](nuclear/nuclear-reactor/ar.md)
+- [ ] [radiation-dose](nuclear/radiation-dose/en.md) · [Arabic](nuclear/radiation-dose/ar.md)
+- [ ] [radioactive-decay](nuclear/radioactive-decay/en.md) · [Arabic](nuclear/radioactive-decay/ar.md)
+- [ ] [size-of-the-nucleus](nuclear/size-of-the-nucleus/en.md) · [Arabic](nuclear/size-of-the-nucleus/ar.md)
+- [ ] [the-nucleus](nuclear/the-nucleus/en.md) · [Arabic](nuclear/the-nucleus/ar.md)
+
+## numbers (12/12)
+
+- [x] [big-number-names](numbers/big-number-names/en.md) · [Arabic](numbers/big-number-names/ar.md)
+- [x] [binary-and-other-bases](numbers/binary-and-other-bases/en.md) · [Arabic](numbers/binary-and-other-bases/ar.md)
+- [x] [doubling-and-the-chessboard](numbers/doubling-and-the-chessboard/en.md) · [Arabic](numbers/doubling-and-the-chessboard/ar.md)
+- [x] [estimation-and-rounding](numbers/estimation-and-rounding/en.md) · [Arabic](numbers/estimation-and-rounding/ar.md)
+- [x] [fractions-and-decimals](numbers/fractions-and-decimals/en.md) · [Arabic](numbers/fractions-and-decimals/ar.md)
+- [x] [how-big-is-a-million](numbers/how-big-is-a-million/en.md) · [Arabic](numbers/how-big-is-a-million/ar.md)
+- [x] [negative-numbers](numbers/negative-numbers/en.md) · [Arabic](numbers/negative-numbers/ar.md)
+- [x] [percentages-in-daily-life](numbers/percentages-in-daily-life/en.md) · [Arabic](numbers/percentages-in-daily-life/ar.md)
+- [x] [place-value](numbers/place-value/en.md) · [Arabic](numbers/place-value/ar.md)
+- [x] [powers-of-ten](numbers/powers-of-ten/en.md) · [Arabic](numbers/powers-of-ten/ar.md)
+- [x] [prime-numbers](numbers/prime-numbers/en.md) · [Arabic](numbers/prime-numbers/ar.md)
+- [x] [scientific-notation](numbers/scientific-notation/en.md) · [Arabic](numbers/scientific-notation/ar.md)
+
+## physics (0/15)
+
+- [ ] [bernoulli-and-flow-rate](physics/bernoulli-and-flow-rate/en.md) · [Arabic](physics/bernoulli-and-flow-rate/ar.md)
+- [ ] [buoyancy-archimedes](physics/buoyancy-archimedes/en.md) · [Arabic](physics/buoyancy-archimedes/ar.md)
+- [ ] [circular-motion](physics/circular-motion/en.md) · [Arabic](physics/circular-motion/ar.md)
+- [ ] [friction-inclined-plane](physics/friction-inclined-plane/en.md) · [Arabic](physics/friction-inclined-plane/ar.md)
+- [ ] [kinematics-constant-acceleration](physics/kinematics-constant-acceleration/en.md) · [Arabic](physics/kinematics-constant-acceleration/ar.md)
+- [ ] [kinetic-and-potential-energy](physics/kinetic-and-potential-energy/en.md) · [Arabic](physics/kinetic-and-potential-energy/ar.md)
+- [ ] [momentum-and-impulse](physics/momentum-and-impulse/en.md) · [Arabic](physics/momentum-and-impulse/ar.md)
+- [ ] [newtons-second-law](physics/newtons-second-law/en.md) · [Arabic](physics/newtons-second-law/ar.md)
+- [ ] [pressure-in-fluids](physics/pressure-in-fluids/en.md) · [Arabic](physics/pressure-in-fluids/ar.md)
+- [ ] [projectile-motion](physics/projectile-motion/en.md) · [Arabic](physics/projectile-motion/ar.md)
+- [ ] [simple-harmonic-motion](physics/simple-harmonic-motion/en.md) · [Arabic](physics/simple-harmonic-motion/ar.md)
+- [ ] [torque-and-levers](physics/torque-and-levers/en.md) · [Arabic](physics/torque-and-levers/ar.md)
+- [ ] [universal-gravitation](physics/universal-gravitation/en.md) · [Arabic](physics/universal-gravitation/ar.md)
+- [ ] [velocity-time-area](physics/velocity-time-area/en.md) · [Arabic](physics/velocity-time-area/ar.md)
+- [ ] [work-and-energy](physics/work-and-energy/en.md) · [Arabic](physics/work-and-energy/ar.md)
+
+## quantum (0/13)
+
+- [ ] [de-broglie-waves](quantum/de-broglie-waves/en.md) · [Arabic](quantum/de-broglie-waves/ar.md)
+- [ ] [double-slit-experiment](quantum/double-slit-experiment/en.md) · [Arabic](quantum/double-slit-experiment/ar.md)
+- [ ] [entanglement](quantum/entanglement/en.md) · [Arabic](quantum/entanglement/ar.md)
+- [ ] [hydrogen-spectrum](quantum/hydrogen-spectrum/en.md) · [Arabic](quantum/hydrogen-spectrum/ar.md)
+- [ ] [lasers-and-stimulated-emission](quantum/lasers-and-stimulated-emission/en.md) · [Arabic](quantum/lasers-and-stimulated-emission/ar.md)
+- [ ] [photoelectric-effect](quantum/photoelectric-effect/en.md) · [Arabic](quantum/photoelectric-effect/ar.md)
+- [ ] [photons-and-plancks-constant](quantum/photons-and-plancks-constant/en.md) · [Arabic](quantum/photons-and-plancks-constant/ar.md)
+- [ ] [quantum-gates-and-a-tiny-computer](quantum/quantum-gates-and-a-tiny-computer/en.md) · [Arabic](quantum/quantum-gates-and-a-tiny-computer/ar.md)
+- [ ] [quantum-tunnelling](quantum/quantum-tunnelling/en.md) · [Arabic](quantum/quantum-tunnelling/ar.md)
+- [ ] [schrodinger-equation-particle-in-a-box](quantum/schrodinger-equation-particle-in-a-box/en.md) · [Arabic](quantum/schrodinger-equation-particle-in-a-box/ar.md)
+- [ ] [schrodingers-cat-and-qubits](quantum/schrodingers-cat-and-qubits/en.md) · [Arabic](quantum/schrodingers-cat-and-qubits/ar.md)
+- [ ] [spin-and-the-stern-gerlach-experiment](quantum/spin-and-the-stern-gerlach-experiment/en.md) · [Arabic](quantum/spin-and-the-stern-gerlach-experiment/ar.md)
+- [ ] [uncertainty-principle](quantum/uncertainty-principle/en.md) · [Arabic](quantum/uncertainty-principle/ar.md)
+
+## relativity (0/12)
+
+- [ ] [adding-velocities](relativity/adding-velocities/en.md) · [Arabic](relativity/adding-velocities/ar.md)
+- [ ] [black-holes](relativity/black-holes/en.md) · [Arabic](relativity/black-holes/ar.md)
+- [ ] [galileo-falling-objects](relativity/galileo-falling-objects/en.md) · [Arabic](relativity/galileo-falling-objects/ar.md)
+- [ ] [gps-and-time](relativity/gps-and-time/en.md) · [Arabic](relativity/gps-and-time/ar.md)
+- [ ] [gravitational-waves](relativity/gravitational-waves/en.md) · [Arabic](relativity/gravitational-waves/ar.md)
+- [ ] [gravity-as-curved-spacetime](relativity/gravity-as-curved-spacetime/en.md) · [Arabic](relativity/gravity-as-curved-spacetime/ar.md)
+- [ ] [length-contraction](relativity/length-contraction/en.md) · [Arabic](relativity/length-contraction/ar.md)
+- [ ] [mass-energy-equivalence](relativity/mass-energy-equivalence/en.md) · [Arabic](relativity/mass-energy-equivalence/ar.md)
+- [ ] [special-relativity-time-dilation](relativity/special-relativity-time-dilation/en.md) · [Arabic](relativity/special-relativity-time-dilation/ar.md)
+- [ ] [the-equivalence-principle](relativity/the-equivalence-principle/en.md) · [Arabic](relativity/the-equivalence-principle/ar.md)
+- [ ] [the-speed-of-light-is-constant](relativity/the-speed-of-light-is-constant/en.md) · [Arabic](relativity/the-speed-of-light-is-constant/ar.md)
+- [ ] [the-twin-paradox](relativity/the-twin-paradox/en.md) · [Arabic](relativity/the-twin-paradox/ar.md)
+
+## statistics (0/13)
+
+- [ ] [bayes-theorem](statistics/bayes-theorem/en.md) · [Arabic](statistics/bayes-theorem/ar.md)
+- [ ] [binomial-distribution](statistics/binomial-distribution/en.md) · [Arabic](statistics/binomial-distribution/ar.md)
+- [ ] [combinations](statistics/combinations/en.md) · [Arabic](statistics/combinations/ar.md)
+- [ ] [confidence-intervals](statistics/confidence-intervals/en.md) · [Arabic](statistics/confidence-intervals/ar.md)
+- [ ] [expected-value](statistics/expected-value/en.md) · [Arabic](statistics/expected-value/ar.md)
+- [ ] [hypothesis-testing](statistics/hypothesis-testing/en.md) · [Arabic](statistics/hypothesis-testing/ar.md)
+- [ ] [law-of-large-numbers](statistics/law-of-large-numbers/en.md) · [Arabic](statistics/law-of-large-numbers/ar.md)
+- [ ] [mean-and-spread](statistics/mean-and-spread/en.md) · [Arabic](statistics/mean-and-spread/ar.md)
+- [ ] [normal-distribution](statistics/normal-distribution/en.md) · [Arabic](statistics/normal-distribution/ar.md)
+- [ ] [permutations](statistics/permutations/en.md) · [Arabic](statistics/permutations/ar.md)
+- [ ] [poisson-distribution](statistics/poisson-distribution/en.md) · [Arabic](statistics/poisson-distribution/ar.md)
+- [ ] [probability-basics](statistics/probability-basics/en.md) · [Arabic](statistics/probability-basics/ar.md)
+- [ ] [sampling-and-polls](statistics/sampling-and-polls/en.md) · [Arabic](statistics/sampling-and-polls/ar.md)
+
+## thermodynamics (0/11)
+
+- [ ] [entropy-and-heat-engines](thermodynamics/entropy-and-heat-engines/en.md) · [Arabic](thermodynamics/entropy-and-heat-engines/ar.md)
+- [ ] [first-law-thermodynamics](thermodynamics/first-law-thermodynamics/en.md) · [Arabic](thermodynamics/first-law-thermodynamics/ar.md)
+- [ ] [gas-laws](thermodynamics/gas-laws/en.md) · [Arabic](thermodynamics/gas-laws/ar.md)
+- [ ] [heat-transfer-conduction-convection-radiation](thermodynamics/heat-transfer-conduction-convection-radiation/en.md) · [Arabic](thermodynamics/heat-transfer-conduction-convection-radiation/ar.md)
+- [ ] [phase-changes-and-latent-heat](thermodynamics/phase-changes-and-latent-heat/en.md) · [Arabic](thermodynamics/phase-changes-and-latent-heat/ar.md)
+- [ ] [refrigerators-and-heat-pumps](thermodynamics/refrigerators-and-heat-pumps/en.md) · [Arabic](thermodynamics/refrigerators-and-heat-pumps/ar.md)
+- [ ] [specific-heat](thermodynamics/specific-heat/en.md) · [Arabic](thermodynamics/specific-heat/ar.md)
+- [ ] [temperature-and-kinetic-energy](thermodynamics/temperature-and-kinetic-energy/en.md) · [Arabic](thermodynamics/temperature-and-kinetic-energy/ar.md)
+- [ ] [the-second-law](thermodynamics/the-second-law/en.md) · [Arabic](thermodynamics/the-second-law/ar.md)
+- [ ] [thermal-conductivity-and-insulation](thermodynamics/thermal-conductivity-and-insulation/en.md) · [Arabic](thermodynamics/thermal-conductivity-and-insulation/ar.md)
+- [ ] [thermal-expansion](thermodynamics/thermal-expansion/en.md) · [Arabic](thermodynamics/thermal-expansion/ar.md)
+
+## trigonometry (0/13)
+
+- [ ] [angles-of-elevation-and-depression](trigonometry/angles-of-elevation-and-depression/en.md) · [Arabic](trigonometry/angles-of-elevation-and-depression/ar.md)
+- [ ] [cosine-rule](trigonometry/cosine-rule/en.md) · [Arabic](trigonometry/cosine-rule/ar.md)
+- [ ] [degrees-and-radians](trigonometry/degrees-and-radians/en.md) · [Arabic](trigonometry/degrees-and-radians/ar.md)
+- [ ] [inverse-trig-functions](trigonometry/inverse-trig-functions/en.md) · [Arabic](trigonometry/inverse-trig-functions/ar.md)
+- [ ] [polar-coordinates](trigonometry/polar-coordinates/en.md) · [Arabic](trigonometry/polar-coordinates/ar.md)
+- [ ] [sine-function-parameters](trigonometry/sine-function-parameters/en.md) · [Arabic](trigonometry/sine-function-parameters/ar.md)
+- [ ] [sine-rule](trigonometry/sine-rule/en.md) · [Arabic](trigonometry/sine-rule/ar.md)
+- [ ] [solving-right-triangles](trigonometry/solving-right-triangles/en.md) · [Arabic](trigonometry/solving-right-triangles/ar.md)
+- [ ] [tangent-function](trigonometry/tangent-function/en.md) · [Arabic](trigonometry/tangent-function/ar.md)
+- [ ] [trig-equations](trigonometry/trig-equations/en.md) · [Arabic](trigonometry/trig-equations/ar.md)
+- [ ] [trig-identities](trigonometry/trig-identities/en.md) · [Arabic](trigonometry/trig-identities/ar.md)
+- [ ] [unit-circle](trigonometry/unit-circle/en.md) · [Arabic](trigonometry/unit-circle/ar.md)
+- [ ] [vector-components](trigonometry/vector-components/en.md) · [Arabic](trigonometry/vector-components/ar.md)
+
+## waves (0/15)
+
+- [ ] [damped-oscillation-resonance](waves/damped-oscillation-resonance/en.md) · [Arabic](waves/damped-oscillation-resonance/ar.md)
+- [ ] [diffraction](waves/diffraction/en.md) · [Arabic](waves/diffraction/ar.md)
+- [ ] [doppler-effect](waves/doppler-effect/en.md) · [Arabic](waves/doppler-effect/ar.md)
+- [ ] [interference-and-beats](waves/interference-and-beats/en.md) · [Arabic](waves/interference-and-beats/ar.md)
+- [ ] [polarisation](waves/polarisation/en.md) · [Arabic](waves/polarisation/ar.md)
+- [ ] [reflection-and-echoes](waves/reflection-and-echoes/en.md) · [Arabic](waves/reflection-and-echoes/ar.md)
+- [ ] [refraction-snells-law](waves/refraction-snells-law/en.md) · [Arabic](waves/refraction-snells-law/ar.md)
+- [ ] [sine-wave](waves/sine-wave/en.md) · [Arabic](waves/sine-wave/ar.md)
+- [ ] [sound-intensity-and-decibels](waves/sound-intensity-and-decibels/en.md) · [Arabic](waves/sound-intensity-and-decibels/ar.md)
+- [ ] [speed-of-sound](waves/speed-of-sound/en.md) · [Arabic](waves/speed-of-sound/ar.md)
+- [ ] [standing-waves](waves/standing-waves/en.md) · [Arabic](waves/standing-waves/ar.md)
+- [ ] [thin-lenses](waves/thin-lenses/en.md) · [Arabic](waves/thin-lenses/ar.md)
+- [ ] [total-internal-reflection](waves/total-internal-reflection/en.md) · [Arabic](waves/total-internal-reflection/ar.md)
+- [ ] [transverse-and-longitudinal](waves/transverse-and-longitudinal/en.md) · [Arabic](waves/transverse-and-longitudinal/ar.md)
+- [ ] [wave-basics](waves/wave-basics/en.md) · [Arabic](waves/wave-basics/ar.md)
diff --git a/content/lessons/STYLE.en.md b/content/lessons/STYLE.en.md
index 1ad81d49..15f60582 100644
--- a/content/lessons/STYLE.en.md
+++ b/content/lessons/STYLE.en.md
@@ -37,6 +37,6 @@ Run `pnpm check` after editing. It validates structure, formulas and challenge s
## Reviewed examples and remaining work
-The following lessons have received a complete bilingual editorial pass under this guide: `place-value`, `negative-numbers`, `fractions-and-decimals`, `slope`, and `derivative`. They demonstrate the intended approach, not a claim that the catalog has been reviewed.
+See [the lesson-by-lesson review checklist](EDITORIAL_REVIEW.md) for coverage. The Numbers and Functions sections and the derivative lesson have received a complete bilingual editorial pass under this guide.
-The remaining lessons still need individual review of their summaries, controls, explanations, examples and challenges. Track progress by lesson, and do not treat a global phrase replacement or a successful build as an editorial review.
+The remaining lessons still need individual review of their summaries, controls, explanations, examples and challenges. Do not treat a global phrase replacement or a successful build as an editorial review.
diff --git a/content/lessons/functions/composing-functions/ar.md b/content/lessons/functions/composing-functions/ar.md
index 6f597b0c..74fa4842 100644
--- a/content/lessons/functions/composing-functions/ar.md
+++ b/content/lessons/functions/composing-functions/ar.md
@@ -1,64 +1,68 @@
---
title: تركيب الدوال
-summary: >-
- حوّل العملة ثم أضف الضريبة. قاعدتان في واحدة، والترتيب يغيّر الجواب.
+summary: طبق قاعدة أولى، ثم استخدم نتيجتها مدخلًا لقاعدة ثانية.
parameters:
- x: دولارات x
- r: r — سعر الصرف (الآلة g)
- t: t — نسبة الضريبة (الآلة f)
+ x: المبلغ الابتدائي x
+ r: معامل التحويل r
+ t: الجزء المضاف t؛ القيمة 0.15 تعني 15%
variables:
- - المبلغ الذي تبدأ به، بالدولار
- - سعر الصرف، وكل دولار يصبح هذا العدد من الوحدات
- - نسبة الضريبة المضافة بعد التحويل، كنسبة عشرية
+ - المبلغ الابتدائي بالوحدة الأصلية
+ - عدد الوحدات الجديدة المقابلة لكل وحدة أصلية
+ - الجزء الذي نضيفه إلى المبلغ بعد التحويل
---
## Try it
-1. حرّك «x»، وهو مبلغ بالدولار، وراقب المنحنى يُظهر الناتج بعد مرور المبلغ بالآلتين.
-2. ارفع «r»، آلة التحويل. يميل المنحنى كله أكثر. كل دولار يساوي الآن أكثر حتى قبل حساب الضريبة.
-3. الآن ارفع «t»، آلة الضريبة. يميل المنحنى أكثر مرة أخرى، فوق الميل الأول. آلتان تعملان معًا، وأثراهما يتراكبان.
+1. اضبط x على 100 وr على 3.75 وt على 0.15. يعطي الضرب أولًا 375، ثم نضيف 15% منها فنحصل على 431.25. يعرض الرسم الناتج النهائي.
+2. أبقِ x وr ثابتين واضبط t على 0. يصبح الناتج 375، لأن القاعدة الثانية تترك مدخلها دون تغيير.
+3. أبقِ x عند 100 وt عند 0، واضبط r على 2. يصبح الناتج 200. قاعدة التحويل وحدها تضاعف المدخل الآن.
## Real-life examples
-1. **تحويل دولارات إلى ريالات ثم دفع الضريبة.** 100 دولار بسعر صرف r=3.75 تصبح 375 ريالًا. ضريبة 15% بعد التحويل ترفع المجموع إلى 431.25.
-2. **دولارات إلى يورو بضريبة أصغر.** 50 دولارًا بسعر r=0.85 تصبح 42.5 يورو. ضريبة 8% بعد ذلك ترفعها إلى 45.90.
-3. **تحويل عملة بلا ضريبة.** 150 دولارًا بسعر r=1.35 تصبح 202.50 دولارًا كنديًا، بلا ضريبة (t=0)، فالآلة الثانية لا تغيّر شيئًا هنا.
+1. **تحويل تتبعه رسوم.** بمعامل افتراضي قدره 3.75، يصبح المبلغ 100 مساويًا لـ375. إضافة 15% تعطي 431.25. هذه قيم للتدريب، وليست أسعار صرف حالية.
+2. **قيم تدريبية أخرى.** ضرب 50 في 0.85 يعطي 42.50. إضافة 8% تعطي 45.90.
+3. **دون رسوم إضافية.** ضرب 150 في 1.35 يعطي 202.50. عند t = 0، تترك القاعدة الثانية هذه النتيجة كما هي.
## Test yourself
-1. جد x وr وt بحيث يكون المبلغ النهائي 300 بالضبط.
-2. جد r وx وt بحيث يكون مقدار الضريبة وحدها 15 بالضبط.
-3. جد r وt بحيث يضاعف التحويل ثم الضريبة مالك بالضبط.
+1. اختر x وr وt ليكون الناتج النهائي نحو 300.
+2. اختر قيمًا تجعل الجزء المضاف وحده، حاصل ضرب r وx وt، نحو 15.
+3. اختر r وt ليبتعد معامل الضرب الكلي عن 2 بأقل من 0.05.
## Intuition
-تخيل آلتين مثبتتين على حزام ناقل، الواحدة خلف الأخرى. الآلة الأولى، g، تأخذ x دولاراتك وتحوّلها. أدخل 100 دولار بسعر صرف r=3.75 فيخرج 375 ريالًا. الآلة الثانية، f، تأخذ ما خرج من الأولى وتضيف الضريبة. أدخل 375 ريالًا بضريبة 15% فيخرج 431.25. تركيب f مع g يعني ببساطة تمرير ناتج الأولى إلى الثانية مباشرة، بلا أي شيء بينهما.
+لنفترض أننا نحول كمية بالضرب في 3.75. إذا بدأنا من 100 نحصل على 375. ثم تطبق قاعدة ثانية زيادة قدرها 15% على المبلغ الذي يصل إليها، فتحول 375 إلى 431.25. تستخدم العملية الثانية ناتج الأولى.
-المنحنى على الشاشة هو خط الإنتاج كله مرسومًا كقاعدة واحدة. لكل x دولار تبدأ به، يُظهر المنحنى بالضبط ما يخرج من الطرف الآخر بعد مرور المبلغ بالآلتين. حرّك «r» فتتغيّر آلة التحويل، فتتحرك كل نقطة على المنحنى. حرّك «t» بدلًا منها فتتغيّر الآلة الثانية وحدها، ومع ذلك يتحرك المنحنى كله، لأن كل ما يأتي بعد آلة تغيّرت يتغيّر معها.
+هذا هو تركيب الدوال. نسمي القاعدة الأولى g والثانية f. تعني الكتابة f(g(x)) أن نحسب g(x) أولًا، ثم نطبق f على الناتج. نقرأها من الداخل إلى الخارج.
+
+يعرض الرسم القاعدة المركبة؛ المبلغ الابتدائي على المحور الأفقي، والمبلغ النهائي على الرأسي. لا يرسم نقطة مستقلة للمبلغ الوسيط. احسب هذه القيمة الوسيطة لتفهم كيف وصلنا إلى الناتج النهائي.
## Formal
-لدالتين $g$ و$f$، تركيبهما $(f \circ g)(x) = f(g(x))$ يطبّق $g$ أولًا، ثم يطبّق $f$ على الناتج. التركيب معرَّف فقط حين تقع $g(x)$ داخل مجموعة المدخلات التي تقبلها $f$.
+نكتب التركيب بالصورة $(f\circ g)(x)=f(g(x))$. لا يمكن حسابه إلا إذا كان x مدخلًا مسموحًا للدالة g، وكانت g(x) مدخلًا مسموحًا للدالة f.
-هنا $g(x) = rx$ و$f(u) = u(1+t)$، فيكون $(f \circ g)(x) = rx(1+t)$. هذه قاعدة جديدة واحدة مبنية كليًا من القاعدتين الأخريين، بلا أي قيمة أُهملت أو استُخدمت مرتين.
+هنا $g(x)=rx$ و$f(u)=u(1+t)$، حيث u اسم مدخل القاعدة الثانية. بالتعويض نحصل على $(f\circ g)(x)=rx(1+t)$. القيمة العشرية t = 0.15 تعني 15%، وليس 0.15%.
## Advanced
-التركيب تجميعي، أي $(f \circ g) \circ h = f \circ (g \circ h)$، لكنه ليس تبديليًا عمومًا. التحويل ثم فرض الضريبة ليس القاعدة نفسها كفرض الضريبة ثم التحويل، إلا إذا انطبقت الضريبة على العملة الأصلية بالتساوي. لهذا يهم ترتيب الآلات الحقيقية كهذه فعلًا.
+القاعدتان في هذا المثال عمليتا ضرب، ولذلك يعطي عكس ترتيبهما النتيجة العددية نفسها إذا سمحت الوحدات والتفسير بذلك. لكن تركيب الدوال ليس تبادليًا عمومًا. إضافة 3 إلى 4 ثم مضاعفة الناتج تعطي 14، بينما مضاعفة 4 ثم إضافة 3 تعطي 11. ويكون التركيب تجميعيًا حيثما كانت المدخلات المطلوبة مسموحة.
## Derivation
-1. الآلة الأولى تحوّل المدخل: g(x) = rx.
-2. الآلة الثانية تضيف الضريبة إلى ما تستقبله: f(u) = u(1+t).
-3. تمرير إحداهما إلى الأخرى يعطي القاعدة المركّبة الواحدة: f(g(x)) = rx(1+t).
+1. نضرب المدخل الابتدائي x في معامل التحويل r.
+2. نعرّف القاعدة الثانية لأي مبلغ تستقبله ونسميه u: نحتفظ به ونضيف إليه الجزء t منه.
+3. نستبدل u بناتج القاعدة الأولى rx للحصول على القاعدة المركبة.
## Real world
-### خطوط معالجة البيانات
-خط معالجة بيانات ينظّف البيانات ثم يحوّلها ثم يحمّلها هو تركيب ثلاث دوال، تُطبَّق بترتيب ثابت.
+### تحويل الوحدات
+
+نحول طولًا إلى وحدة جديدة، ثم نصغره لبناء نموذج. يصبح ناتج التحويل مدخلًا لعملية التصغير.
+
+### تحرير الصور
+
+قص الصورة ثم تغيير حجمها تركيب لعمليتين. قد يعطي عكس الترتيب صورة مختلفة.
-### سلاسل تحويل الوحدات
-تحويل الإنش إلى سنتيمتر، ثم السنتيمتر إلى مقياس نموذج مصغّر، هو دالة تحويل مركّبة مع دالة أخرى.
+### البرمجة
-### معالجة البنوك والمدفوعات
-تحويل العملة وخصم الرسوم والضريبة غالبًا ثلاث دوال منفصلة مركّبة تُطبَّق على المعاملة نفسها، بهذا الترتيب.
+يمكن للبرنامج تمرير ناتج دالة مباشرة إلى دالة أخرى. يجب أن تقبل كل دالة نوع القيمة التي تصل إليها.
diff --git a/content/lessons/functions/composing-functions/en.md b/content/lessons/functions/composing-functions/en.md
index 6ec74da2..89c790c4 100644
--- a/content/lessons/functions/composing-functions/en.md
+++ b/content/lessons/functions/composing-functions/en.md
@@ -1,65 +1,68 @@
---
title: Composing functions
-summary: >-
- Chain two simple rules — convert currency, then add tax — into one, and see
- why the order in which you run them can change the final answer.
+summary: Apply one rule, then use its result as the input to a second rule.
parameters:
- x: dollars x
- r: r — exchange rate (machine g)
- t: t — tax rate (machine f)
+ x: starting amount x
+ r: conversion multiplier r
+ t: added fraction t (0.15 means 15%)
variables:
- - the amount of money you start with, in dollars
- - the exchange rate — dollars become this many units for every one dollar
- - the tax rate applied after conversion, as a fraction
+ - starting amount in the original units
+ - number of new units for each original unit
+ - fraction added to the converted amount
---
## Try it
-1. Drag «x», money in dollars, and watch the curve show what comes out after both machines run.
-2. Raise «r», the conversion machine. The whole curve tilts steeper: every dollar is now worth more before tax even applies.
-3. Now raise «t», the tax machine. The curve tilts steeper again, on top of the first tilt — two machines, two effects, stacked.
+1. Set x to 100, r to 3.75 and t to 0.15. First multiply to get 375; then add 15% of 375 to get 431.25. The graph shows the final output.
+2. Keep x and r fixed and set t to 0. The output becomes 375, because the second rule now leaves its input unchanged.
+3. Keep x at 100 and t at 0, and set r to 2. The output becomes 200. The conversion rule alone now doubles the input.
## Real-life examples
-1. **Converting dollars to riyals, then paying tax.** 1 dollars 00 at a rate of r=3.75 becomes 375 riyals; a 15% tax after conversion brings the total to 431.25.
-2. **Dollars to euros with a smaller tax.** 5 dollars 0 at r=0.85 becomes 42.5 euros; an 8% tax after that brings it to 45.90.
-3. **A tax-free currency swap.** 1 dollars 50 at r=1.35 becomes 202.50 Canadian dollars, with no tax added (t=0), so the second machine changes nothing at all.
+1. **Conversion followed by a charge.** Using an illustrative multiplier of 3.75, an amount of 100 becomes 375. Adding 15% gives 431.25. These are practice settings, not a current exchange-rate quote.
+2. **A second set of practice values.** An amount of 50 multiplied by 0.85 gives 42.50. Adding 8% gives 45.90.
+3. **No added charge.** An amount of 150 multiplied by 1.35 gives 202.50. With t = 0, the second rule leaves that result unchanged.
## Test yourself
-1. Find x, r and t so the final amount comes out to exactly 300.
-2. Find r, x and t so the tax portion alone equals exactly 15.
-3. Find r and t so that converting and then taxing exactly doubles your money.
+1. Choose x, r and t to make the final output about 300.
+2. Choose settings so the added portion alone, r times x times t, is about 15.
+3. Choose r and t so the combined multiplier is within 0.05 of 2.
## Intuition
-Picture two machines bolted one after the other on a conveyor belt. The first machine, g, takes your x dollars and converts them: feed in 100 dollars at a rate of r=3.75 and out comes 375 riyals. The second machine, f, takes whatever comes out of the first and adds tax: feed in 375 riyals at 15% tax and out comes 431.25. Composing f and g just means running the output of one straight into the input of the other, with nothing in between.
+Suppose a quantity is converted by multiplying it by 3.75. Starting with 100 gives 375. A second rule adds 15% to whatever it receives, so it takes 375 to 431.25. The second calculation uses the first calculation's answer.
-The curve on screen is the whole pipeline drawn as a single rule: for every x dollars you could start with, it shows exactly what comes out the far end after both machines have run. Slide «r» and the conversion machine changes, which shifts every point on the curve. Slide «t» instead and only the second machine changes, yet the whole curve still moves, because everything downstream of a changed machine changes too.
+This is composition of functions. Call the first rule g and the second rule f. The notation f(g(x)) means calculate g(x) first, then apply f to that result. Read it from the inside out.
+
+The graph shows the combined rule, with the starting amount on the horizontal axis and the final amount on the vertical axis. It does not plot a separate point for the intermediate amount. Calculate that intermediate value to understand how the final result was obtained.
## Formal
-Given two functions $g$ and $f$, their composition $(f \circ g)(x) = f(g(x))$ first applies $g$, then applies $f$ to the result. Composition is only defined where $g(x)$ lands inside the set of inputs $f$ is willing to accept.
+The composition is $(f\circ g)(x)=f(g(x))$. It is defined only when x is an allowed input for g and g(x) is an allowed input for f.
-Here $g(x) = rx$ and $f(u) = u(1+t)$, so $(f \circ g)(x) = rx(1+t)$: a single new function built entirely from the other two, with no value skipped or reused.
+Here $g(x)=rx$ and $f(u)=u(1+t)$, where u names the second rule's input. Substitution gives $(f\circ g)(x)=rx(1+t)$. The decimal t = 0.15 means 15%, not 0.15%.
## Advanced
-Composition is associative, $(f \circ g) \circ h = f \circ (g \circ h)$, but not commutative in general: converting then taxing is not the same rule as taxing then converting unless the tax applies equally to the original currency, which is why the order of real-world machines like these genuinely matters.
+These two particular rules are multiplications, so reversing their order gives the same numerical result when their units and interpretation permit it. Composition does not generally commute: adding 3 and then doubling sends 4 to 14, while doubling and then adding 3 sends 4 to 11. Composition is associative wherever the relevant inputs are allowed.
## Derivation
-1. The first machine converts the input: g(x) = rx.
-2. The second machine adds tax to whatever it receives: f(u) = u(1+t).
-3. Feeding one into the other gives the single combined rule: f(g(x)) = rx(1+t).
+1. Apply the conversion multiplier r to the initial input x.
+2. Define the second rule for any received amount u: keep that amount and add the fraction t of it.
+3. Replace u with the first rule's output rx to obtain the combined rule.
## Real world
-### Software pipelines
-A data pipeline that cleans data, then transforms it, then loads it is a composition of three functions, applied in a fixed order.
+### Unit conversions
+
+Convert a length into a new unit, then scale it for a model. The output of the conversion becomes the input to scaling.
+
+### Image editing
+
+Cropping an image and then resizing it combines two operations. Reversing their order can produce a different image.
-### Unit conversion chains
-Converting inches to centimetres, then centimetres to a scale-model size, is one conversion function composed with another.
+### Software
-### Bank and payment processing
-Currency conversion, fee deduction and tax are often three separate composed functions applied to the same transaction, in that order.
+A program can pass the result of one function directly into another. Each function must accept the type of value it receives.
diff --git a/content/lessons/functions/domain-and-range/ar.md b/content/lessons/functions/domain-and-range/ar.md
index 86f73fe6..e88fa083 100644
--- a/content/lessons/functions/domain-and-range/ar.md
+++ b/content/lessons/functions/domain-and-range/ar.md
@@ -1,67 +1,68 @@
---
title: المجال والمدى
-summary: >-
- قبل أن تحسب، اعرف أي أرقام تقبلها الصيغة: لا جذر لعدد سالب ولا قسمة على صفر.
+summary: ميّز بين المدخلات التي تسمح بها القاعدة والنواتج التي يمكن أن تعطيها.
parameters:
- x: النقطة x
- a: a — أصغر مدخل مسموح
- b: b — المدخل الممنوع
+ x: المدخل x
+ a: الحد الذي يفرضه الجذر a
+ b: المدخل الذي يجعل المقام صفرًا b
variables:
- - النقطة التي تسحبها على المنحنى
- - أصغر مدخل مسموح به، فلا يُرسم شيء قبله لأن الجذر التربيعي يحتاجه
- - المدخل الوحيد الممنوع تمامًا، لأن القسمة عليه مستحيلة
+ - المدخل المختار
+ - الحد الأدنى الذي يشترطه الجذر التربيعي
+ - المدخل الذي يجعل المقام صفرًا؛ نستبعده إن كان ضمن المدخلات المسموحة أصلًا
---
## Try it
-1. حرّك «x» من الطرف الأيسر إلى اليمين. قبل «a» لا يوجد منحنى على الإطلاق، لأن جذر عدد سالب ليس له جواب.
-2. راقب ما يحدث حين يقترب «x» من «b». يقفز المنحنى إلى الأعلى أو الأسفل ويختفي تمامًا عند تلك النقطة بالذات.
-3. حرّك «a» و«b» بمنزلقيهما. الجزء الممنوع في البداية والنقطة الممنوعة في المنتصف يتحركان معهما.
+1. اضبط a على 2 وb على 8. قارن x = 1 مع x = 6. الأول لا يعطي ناتجًا حقيقيًا، والثاني يعطي -1.
+2. أبقِ a وb ثابتين واضبط x على 8. يصبح المقام صفرًا، فلا تكون للدالة قيمة عند هذا المدخل.
+3. اضبط x على 2. الناتج 0، لأن البسط صفر والمقام غير صفر. وجود الصفر في البسط مسموح.
## Real-life examples
-1. **تفريغ مسبح.** لا يمكن قياس المسبح إلا ابتداءً من اليوم a=2، لأن يومًا سالبًا لا معنى له. في اليوم x=6، مع عطل في المستشعر عند اليوم b=8 بالضبط، تكون القراءة sqrt(6-2)/(6-8) = -1.
-2. **قسمة فاتورة بين أصدقاء.** قسمة تكلفة بين x أصدقاء تنهار تمامًا عند x=b=0 صديق. لا توجد قسمة كهذه مهما كانت بقية الصيغة.
-3. **أقصى ما يصل إليه كابل.** لا يمكن قياس الكابل إلا ابتداءً من a=4 أمتار فوق العمود. عند x=4 بالضبط، أي عند هذا الحد الأدنى نفسه، تكون القراءة 0، وهي حافة المسموح. نقطة تثبيت العمود عند b=8 تُستبعد دائمًا.
+1. **مدخل مسموح.** عند a = 2 وb = 8 وx = 6، يساوي الجذر 2 والمقام -2. ناتج القسمة -1.
+2. **مقام يساوي صفرًا.** عند a = -2 وb = 0 وx = 0، يمكن حساب الجذر، لكن المقام صفر. لذلك نستبعد هذا المدخل.
+3. **حد مسموح للمجال.** عند a = 4 وb = 8 وx = 4، يساوي البسط صفرًا والمقام -4. الناتج 0.
## Test yourself
-1. جد a وb وx بحيث لا يكون المنحنى موجودًا أصلًا: اجعل x أقل من a.
-2. جد a وb بحيث تقف النقطة بالضبط على المدخل الممنوع الوحيد.
-3. جد a وb وx بحيث تكون قيمة المنحنى 1 بالضبط.
+1. اختر x أصغر من a حتى لا يكون للجذر ناتج حقيقي.
+2. اجعل x مساويًا لـb حتى يصبح المقام صفرًا.
+3. اختر مدخلًا مسموحًا وقيمًا للمعاملات تعطي ناتجًا يبتعد عن 1 بما لا يزيد على 0.05.
## Intuition
-تخيل حوضًا لا يبدأ تفريغه إلا إذا كان فيه لترين على الأقل. املأه بأقل من ذلك فلا معنى لصيغة التفريغ، فلا يُرسم شيء قبل x=2. اسحب النقطة على المنحنى الأزرق. إلى يسار x=2 لا يوجد شيء تسحبه إليه أصلًا. هذا الجزء كله من المدخلات ممنوع تمامًا. هذا هو المجال، مجموعة المدخلات التي تقبلها القاعدة.
+لنفترض أن لدينا قاعدة تأخذ جذرًا تربيعيًا ثم تقسم. نحتاج قبل الحساب إلى فحص شرطين: هل ما داخل الجذر غير سالب؟ وهل المقام غير صفر؟ لا نقبل المدخل إلا إذا حقق الشرطين. نسمي مجموعة المدخلات المسموحة «المجال».
-الآن راقب ما يحدث حين تقترب النقطة من x=8. يقفز المنحنى إلى الأعلى أو الأسفل ويختفي تمامًا عند هذا المدخل بالذات، لأن القاعدة تقسم على (x-8)، والقسمة على صفر ليس لها جواب في أي مكان. غيّر المنزلق «b» فتتبعه هذه النقطة الممنوعة الوحيدة. لكل دالة مجموعة من المدخلات تقبلها فعلًا، وهذا هو المجال. ولها أيضًا مجموعة من القيم تنتجها فعلًا، وهذا هو المدى. هذا الرسم يُظهر الاثنين معًا.
+هنا، عند a = 2 وb = 8، يأخذ الجذر القيمة x ناقص 2، ولذلك يجب ألا يقل x عن 2. وتستخدم القسمة المقام x ناقص 8، ولذلك لا يجوز أن يساوي x العدد 8. فالمدخلان 2 و6 مسموحان، و1 و8 غير مسموحين. هذه القيود ناتجة عن القاعدة نفسها.
+
+أما «المدى» فيجيب عن سؤال آخر: ما النواتج التي يمكن أن تعطيها الدالة؟ تمثل المدخلات المواضع الأفقية، وتمثل النواتج الارتفاعات. يساعدنا الرسم على دراسة المدى، لكن نافذة محدودة لا تعرض كل القيم الممكنة. خروج النقطة عن الشاشة لا يعني بالضرورة خروج المدخل عن المجال.
## Formal
-بالنسبة لدالة $f$، المجال هو مجموعة المدخلات $x$ التي تكون عندها $f(x)$ معرَّفة، والمدى هو مجموعة القيم التي تنتجها $f(x)$ فعلًا. هنا $f(x) = \dfrac{\sqrt{x-a}}{x-b}$ تحتاج $x - a \ge 0$ من أجل الجذر التربيعي و$x - b \neq 0$ من أجل القسمة، فيكون المجال $x \in [a, \infty)$ مع استبعاد النقطة الوحيدة $x = b$.
+للدالة $f(x)=\sqrt{x-a}/(x-b)$ في الأعداد الحقيقية، يكون المجال $\{x\in\mathbb{R}:x\ge a,\ x\ne b\}$. إذا كان b أصغر من a، فهو خارج الفترة المسموحة أصلًا، ولا يضيف فجوة داخلها.
-المدى هو مجموعة الارتفاعات التي يصل إليها المنحنى فعلًا على المحور الرأسي، وتُقرأ مباشرة من الرسم لا من افتراض مسبق على الصيغة وحدها.
+المدى هو مجموعة قيم الدالة عند جميع المدخلات المسموحة. عند القيمتين الافتراضيتين a = 2 وb = 8، يشمل المدى جميع الأعداد الحقيقية. يعطي الفرع الأيسر الصفر وكل القيم السالبة، ويعطي الأيمن كل القيم الموجبة. نعتمد هنا على الفرعين كاملين، لا على الجزء الظاهر منهما فقط.
## Advanced
-بالنسبة لأي دالة عامة، يجب فحص المجال والمدى أينما احتوت الصيغة على جذر من رتبة زوجية، أو مقام، أو لوغاريتم، أو دالة مثلثية عكسية. وعند اجتماع أكثر من قيد كما هنا يتقاطع كل قيد مع الآخر. وقد يحتاج إيجاد المدى الحقيقي إلى حساب التفاضل لا مجرد النظر إلى الصيغة.
+يتغير المدى بتغير المعاملات. إذا تساوى a وb، تختصر الدالة إلى مقلوب جذر تربيعي عند x أكبر من a، ويكون مداها الأعداد الحقيقية الموجبة. وإذا كان b أصغر من a، يبدأ المدى من الصفر ويصل إلى قيمة عظمى موجبة محدودة. لذلك نراجع القيود كلما تغيرت المعاملات.
## Derivation
-1. الجذر التربيعي يحتاج رقمًا غير سالب بداخله، فيجب أن يكون x − a على الأقل صفرًا، أي x ≥ a.
-2. القسمة تحتاج مقامًا لا يساوي صفرًا، فلا يجوز أن يكون x − b صفرًا، أي x ≠ b.
-3. اجمع الشرطين: المجال هو كل x من a فصاعدًا، باستثناء النقطة الوحيدة x = b.
+1. يشترط الجذر الحقيقي ألا تكون x ناقص a سالبة، فنحصل على x أكبر من a أو مساوية لها.
+2. تشترط القسمة ألا تكون x ناقص b صفرًا، فنستبعد x المساوية لـb.
+3. نحتفظ بالمدخلات التي تحقق الشرطين. يدخل حد الجذر في المجال إلا إذا جعل المقام صفرًا أيضًا.
## Real world
-### أجهزة الاستشعار
-جهاز يعرض جذر القراءة التربيعي لا يقبل إلا قراءات غير سالبة. كل ما هو دون نقطة الصفر لا يُعرض أصلًا.
+### تقاسم التكلفة
+
+لا يمكن قسمة تكلفة على صفر من الأشخاص. وفي التطبيق الفعلي يجب أن يكون عدد الأشخاص عددًا صحيحًا موجبًا أيضًا.
+
+### طول ضلع المربع
-### صيغ الإيجار والفوترة
-تكلفة الفرد الواحد الناتجة عن قسمة على عدد الأشخاص تنهار عند صفر أشخاص، ولذلك تمنع برامج الفوترة هذا المدخل صراحة.
+الجذر التربيعي للمساحة يعطينا طول الضلع. في هذا الموقف تكون المساحة المدخلة والطول الناتج غير سالبين.
-### تفاوتات الهندسة
-كثير من صيغ التصميم لا معنى لها إلا فوق حجم أدنى أو دون حمل أقصى. القيم خارج هذا المجال لا معنى لها حتى قبل أي حساب.
+### استخدام نموذج
-### جداول أسعار التذاكر
-جدول سعر تذكرة أو جدول ضريبي لا يحتوي إلا مدخلات معيّنة، كأعمار محددة أو شرائح دخل. البحث عن قيمة خارج الجدول لا يعطي سعرًا معرَّفًا، تمامًا كقيمة خارج مجال دالة.
+قد تعطي المعادلة نتيجة عددية خارج الظروف التي بُني لها النموذج. لذلك قد يكون مجال الاستخدام الفعلي أصغر من المجال الرياضي.
diff --git a/content/lessons/functions/domain-and-range/en.md b/content/lessons/functions/domain-and-range/en.md
index 354b42e0..127b07d8 100644
--- a/content/lessons/functions/domain-and-range/en.md
+++ b/content/lessons/functions/domain-and-range/en.md
@@ -1,69 +1,68 @@
---
title: Domain and range
-summary: >-
- Know before you even calculate whether a formula makes sense for the
- numbers you have — a square root needs a non-negative input, and you can
- never divide by zero.
+summary: Distinguish the inputs a rule allows from the outputs it can produce.
parameters:
- x: point x
- a: a — smallest allowed input
- b: b — the forbidden input
+ x: input x
+ a: square-root boundary a
+ b: excluded denominator input b
variables:
- - the input you drag along the curve
- - the smallest input allowed — nothing is plotted before it, because the square root needs it
- - the one input that is never allowed — dividing by it is impossible
+ - chosen input
+ - lower boundary imposed by the square root
+ - input making the denominator zero; excluded if it otherwise lies in the domain
---
## Try it
-1. Drag «x» from the left edge to the right. Below «a», the curve simply is not there — the square root of a negative number has no answer.
-2. Now watch what happens as «x» creeps up toward «b». The curve shoots off the top or bottom of the screen and is missing at exactly that one point.
-3. Move «a» and «b» themselves with their sliders. The forbidden stretch at the start and the single forbidden point in the middle both move with them.
+1. Set a to 2 and b to 8. Compare x = 1 and x = 6. The first has no real output; the second gives -1.
+2. Keep a and b fixed and set x to 8. The denominator is zero, so the function has no value there.
+3. Set x to 2. The output is 0, because the numerator is zero while the denominator is not. Zero in a numerator is allowed.
## Real-life examples
-1. **Draining a pool.** The pool can only be measured from day a=2 onward (a negative day makes no sense); on day x=6, with a sensor glitch fixed at day b=8, the reading is sqrt(6-2)/(6-8) = -1.
-2. **Splitting a bill among friends.** Dividing a cost among x friends breaks down completely at x=b=0 friends — there is no such split, no matter how the rest of the formula looks.
-3. **A cable's minimum reach.** The cable can only be measured from a=4 metres up the pole; at exactly x=4, right at that minimum, the reading is 0 — the very edge of what is allowed, with the pole's anchor at b=8 always skipped.
+1. **An allowed input.** With a = 2, b = 8 and x = 6, the square root is 2 and the denominator is -2. Their quotient is -1.
+2. **A zero denominator.** With a = -2, b = 0 and x = 0, the square root exists, but the denominator is zero. The input is excluded.
+3. **A boundary that is allowed.** With a = 4, b = 8 and x = 4, the numerator is zero and the denominator is -4. The output is 0.
## Test yourself
-1. Find a, b and x so the curve simply is not there — put x below a.
-2. Find a and b so the point can land exactly on the one forbidden input.
-3. Find a, b and x so the curve's value is exactly 1.
+1. Choose x below a so the square root has no real value.
+2. Set x equal to b so the denominator is zero.
+3. Choose an allowed input and parameters that give an output within 0.05 of 1.
## Intuition
-Picture a tub that only starts draining once it holds at least 2 litres — fill it with less and the draining formula makes no sense, so nothing is plotted before x=2. Drag the point along the blue curve: to the left of x=2 there is nothing to drag onto at all. That whole stretch of input is simply not allowed. This is the domain: the set of inputs the rule is willing to accept.
+Consider a rule that takes a square root and then divides. Before calculating, we need two checks. Is the quantity inside the square root nonnegative? Is the denominator nonzero? An input is allowed only if it passes both checks. The collection of allowed inputs is the domain.
-Now watch what happens as the point creeps toward x=8. The curve shoots up or down and vanishes completely right at that one input, because the rule divides by (x-8), and dividing by zero has no answer anywhere. Change the slider «b» and this single forbidden point follows it. Every function has some set of inputs it can actually use — the domain — and some set of values it can actually produce — the range — and this picture makes both visible at once.
+Here, with a = 2 and b = 8, the square root uses x minus 2, so x must be at least 2. The division uses x minus 8, so x cannot be 8. Thus 2 and 6 are allowed, but 1 and 8 are not. These restrictions come from the rule itself, not from a story about a sensor or a pool.
+
+The range answers a different question: which outputs can the rule produce? On a graph, inputs are horizontal positions and outputs are heights. The graph helps us investigate the range, but a limited window cannot show every possible input or output. A point outside the screen is not necessarily outside the domain.
## Formal
-For a function $f$, the domain is the set of inputs $x$ for which $f(x)$ is defined, and the range is the set of values $f(x)$ actually takes. Here $f(x) = \dfrac{\sqrt{x-a}}{x-b}$ needs $x - a \ge 0$ for the square root and $x - b \neq 0$ for the division, so the domain is $x \in [a, \infty)$ with the single point $x = b$ removed.
+For $f(x)=\sqrt{x-a}/(x-b)$ over the real numbers, the domain is $\{x\in\mathbb{R}:x\ge a,\ x\ne b\}$. If b is below a, it is already outside the allowed interval; there is no additional hole within that interval.
-The range is whatever set of heights the curve actually reaches on the vertical axis, read directly off the picture rather than assumed from the formula alone.
+The range is the set of all actual function values at allowed inputs. For the default a = 2 and b = 8, it is all real numbers: the left branch gives zero and every negative value, while the right branch gives every positive value. This conclusion uses the full branches, not just their visible portions.
## Advanced
-For a general function, domain and range must be checked wherever the defining expression contains a root of even order, a denominator, a logarithm, or an inverse trigonometric function; combining several such restrictions, as here, intersects each one's allowed set, and finding the true range can require calculus rather than simple inspection.
+The range depends on the parameters. If a equals b, the function reduces to the reciprocal of a square root for x greater than a, so its range is positive real numbers. If b is below a, the range starts at zero and has a finite positive maximum. Restrictions must be reconsidered after parameters change.
## Derivation
-1. The square root needs a non-negative number inside it, so x − a must be at least 0, which means x ≥ a.
-2. Division needs a non-zero denominator, so x − b cannot be 0, which means x ≠ b.
-3. Putting both together: the domain is every x from a upward, except the single point x = b.
+1. A real square root requires x minus a to be nonnegative, giving x at least a.
+2. Division requires x minus b to be nonzero, excluding x equal to b.
+3. Keep only inputs satisfying both conditions. The square-root boundary is included unless it also makes the denominator zero.
## Real world
-### Speedometers and sensors
-A sensor that reports the square root of a reading only accepts non-negative readings; anything below its zero point is simply not shown.
+### Sharing a cost
+
+A cost divided by the number of people is undefined at zero people. In practice the number of people must also be a positive whole number.
+
+### A square's side length
-### Rental and billing formulas
-A per-person cost that divides by the number of people breaks down at zero people, so billing software explicitly blocks that input.
+Taking the square root of an area gives a side length. In this setting both the area input and the length output are nonnegative.
-### Engineering tolerances
-Design formulas often only make sense above some minimum size or below some maximum load; values outside that domain are meaningless before any calculation even starts.
+### Using a model
-### Ticket price tables
-A ticket-price or tax table only has entries for certain inputs, such as specific ages or income brackets; a lookup outside that table has no defined price, exactly like a value outside a function's domain.
+A formula may give a numerical answer outside the conditions under which a model was established. Its practical domain can be smaller than its mathematical domain.
diff --git a/content/lessons/functions/exponential-and-logarithmic-functions/ar.md b/content/lessons/functions/exponential-and-logarithmic-functions/ar.md
index 6951bd11..bd3cb5e6 100644
--- a/content/lessons/functions/exponential-and-logarithmic-functions/ar.md
+++ b/content/lessons/functions/exponential-and-logarithmic-functions/ar.md
@@ -1,67 +1,68 @@
---
title: الدوال الأسية واللوغاريتمية
-summary: >-
- منحنى يتضاعف كل خطوة ويقفز خارج الشاشة، ومرآته ترتفع ببطء شديد. هذان وراء الديسيبل ومقياس الزلازل.
+summary: استخدم الدالة الأسية لحساب الضرب المتكرر، واللوغاريتم لمعرفة الأس الذي أعطى النتيجة.
parameters:
- x: النقطة x
- sel: المنحنى — 0 أسّي، 1 لوغاريتمي
- b: b — الأساس
+ x: المدخل x
+ sel: الدالة؛ 0 للأسية و1 للوغاريتم
+ b: الأساس b؛ لا يقبل اللوغاريتم الأساس 1
variables:
- - الأساس — فوق 1 ينمو (نوع المضاعفة)، وبين 0 و1 يتضاءل (نوع القسمة على 2)
- - المدخل الذي تسحبه على طول المنحنى
- - الناتج، يُقرأ مباشرة من المنحنى الأسّي، أو يُعطى للمنحنى اللوغاريتمي
+ - الأساس الموجب؛ ويشترط للوغاريتم ألا يساوي 1 أيضًا
+ - الأس في العلاقة الأسية
+ - الناتج الموجب للعملية الأسية، ويصبح مدخل اللوغاريتم
---
## Try it
-1. المنحنى مضبوط على أسّي بأساس b=2. اسحب x يمينًا. راقب الناتج يتضاعف، ثم يتضاعف من جديد. كل خطوة إضافية بمقدار 1 على x تضاعف الارتفاع.
-2. أنزل الأساس تحت 1 بدلًا من ذلك، لنقل إلى 0.5. ينقلب المنحنى من الصعود إلى الانزلاق نحو الأسفل، يقترب من الصفر من غير أن يلمسه أبدًا.
-3. بدّل المنحنى إلى لوغاريتمي. اسحب x عبر المدى نفسه: يصعد المنحنى الآن، لكن أبطأ بكثير، بالكاد يرتفع مع أن x نفسها تكبر باطراد.
+1. اضبط sel على 0 وb على 2. قارن مدخلات قريبة من 1 و2 و3. النواتج قريبة من 2 و4 و8؛ كل زيادة بمقدار 1 تضاعف الناتج.
+2. أبقِ sel عند 0 واضبط b على 0.5. زيادة x بمقدار 1 تخفض الناتج إلى النصف الآن.
+3. اضبط sel على 1 وb على 2. المدخل القريب من 4 يعطي ناتجًا قريبًا من 2؛ فاللوغاريتم يسأل عن الأس الذي نرفع إليه 2 لنحصل على 4. استخدم الأساس 2 لهذه المقارنة، لا 0.5 ولا 1.
## Real-life examples
-1. **المضاعفة — مقطع فيديو يُعاد تداوله.** بالضبط على أسّي بأساس 2 (sel=0، b=2). بعد x=3 جولات من التداول تضاعف العدد ثلاث مرات، أي نموًا بمقدار 8 أضعاف من نقطة البداية.
-2. **القسمة على 2 — كرة ترتد.** بالضبط على أسّي بأساس 0.5 (sel=0، b=0.5). بعد x=2 ارتدادتين انخفض ارتفاع الكرة إلى نصفه مرتين، أي ربع ما كانت عليه، وتتقلص نحو الأرض مع كل ارتدادة.
-3. **صعود اللوغاريتم البطيء.** بالضبط على لوغاريتمي بأساس 10 (sel=1، b=10). حتى بعد x=5 لا يكاد المنحنى يتجاوز نصف وحدة. هذا هو الشكل البطيء نفسه المستعمل في مقياس الديسيبل ومقياس شدة الزلازل.
+1. **ثلاث عمليات تضاعف.** عند sel = 0 وb = 2 وx = 3، يكون الناتج 8. تصبح الكمية الابتدائية ثمانية أمثالها عند ضربها في هذا المعامل.
+2. **التنصيف مرتين.** عند sel = 0 وb = 0.5 وx = 2، يكون الناتج 0.25. يبقى ربع الكمية الابتدائية.
+3. **إيجاد الأس.** عند sel = 1 وb = 10 وx = 5، يكون الناتج نحو 0.699. رفع عشرة إلى هذا الأس يعطي نحو 5.
## Test yourself
-1. بدّل إلى المنحنى الأسّي، واجعل الأساس فوق 1.9، قريبًا من المضاعفة، وادفع x فوق 3.5.
-2. بدّل إلى المنحنى الأسّي، واجعل الأساس تحت 0.6، وهي قسمة سريعة على 2، وادفع x فوق 3.
-3. بدّل إلى المنحنى اللوغاريتمي، واجعل الأساس فوق 9، قريبًا من أساس مقياس الديسيبل 10، وادفع x فوق 4.
+1. اختر الدالة الأسية، واجعل b أكبر من 1.9 وx أكبر من 3.5.
+2. اختر الدالة الأسية، واجعل b أصغر من 0.6 وx أكبر من 3.
+3. اختر اللوغاريتم، واجعل b أكبر من 9 وx أكبر من 4.
## Intuition
-تخيل مقطع فيديو يُعاد تداوله. في كل جولة يشاركه كل من يملكه مع العدد نفسه من الأشخاص الجدد من جديد. مع أساس 2 تضاعف كل جولة المجموع. بعد x=3 جولات يصبح عدد المشاهدين 8 أضعاف بدايته، وسحب النقطة إلى x=3 على المنحنى الأسّي يُظهر تلك القفزة بالضبط. ادفع x أكثر فلا يستمر المنحنى في الصعود فحسب، بل يصعد أسرع فأسرع، لأن كل جولة جديدة تضاعف عددًا هو أصلًا أكبر من سابقه.
+نبدأ بقطعة واحدة ونضاعف العدد في كل جولة. بعد جولة يصبح 2، وبعد جولتين 4، وبعد ثلاث جولات 8. تأخذ القاعدة الأسية عدد الجولات مدخلًا، وتعطي معامل الزيادة ناتجًا.
-أنزل الأساس تحت 1 وسينقلب المنحنى نفسه من صعود إلى انزلاق. كرة ترتد تفقد نسبة ثابتة من ارتفاعها في كل ارتدادة، فيستمر ارتفاعها بعد x ارتدادات في التقلص نحو الأرض من غير أن يلمسها أبدًا. هذا هو الخط المستوي الذي يلازمه المنحنى ولا يعبره. بدّل إلى المنحنى اللوغاريتمي وستتبادل الأدوار. يصعد المنحنى الآن، لكن ببطء موجع، لأنه يسأل السؤال المعاكس، كم مضاعفة لزمت للوصول إلى هذا الناتج. والمضاعفات تراكم القيمة أسرع بكثير مما تراكم العدد.
+نعكس السؤال الآن: كم عملية تضاعف تنقلنا من 1 إلى 8؟ الإجابة 3. يحسب اللوغاريتم هذا الأس. وقد يعطي جوابًا ليس عددًا صحيحًا أيضًا؛ فالأس اللازم للوصول إلى قيمة بين 4 و8 يقع بين 2 و3.
+
+تغيير الأساس يغير معامل الضرب. الأساس الأكبر من 1 يعطي نموًا، والأساس بين 0 و1 يعطي تناقصًا كلما زاد الأس. يعكس اللوغاريتم كلتا القاعدتين، لكنه لا يقبل إلا مدخلًا موجبًا. الأساس 1 حالة خاصة؛ دالته الأسية تعطي 1 دائمًا، فلا يكون لها لوغاريتم عكسي.
## Formal
-الدالة الأسية $y = b^x$ تأخذ أي عدد حقيقي $x$ وتعطي دائمًا ناتجًا موجبًا. حين تكون $b > 1$ تنمو الدالة، وحين تكون $0 < b < 1$ تتضاءل بدلًا من ذلك، وتنكمش نحو $0$ من غير أن تبلغه أبدًا.
+عند $b>0$، تقبل الدالة الأسية $y=b^x$ كل x حقيقي، وتعطي y موجبًا. تتزايد إذا كان b أكبر من 1، وتتناقص إذا كان بين 0 و1. وعند b = 1 تكون ثابتة.
-صورتها المرآتية، $x = \log_b y$، تُلغي بالضبط ما تفعله الدالة الأسية. أعطها الناتج فتعيد لك المدخل. ولأن مدخل $b^x$ يجب أن يبقى موجبًا ليُعكس، لا يقبل اللوغاريتم إلا $y > 0$. منحناه يرتفع ببطء شديد، محاذيًا خطًا رأسيًا عند $y=0$ لا يقدر أن يعبره أبدًا.
+عند $b>0$ و$b\ne1$، تكون العبارة اللوغاريتمية المكافئة $x=\log_b y$، بشرط أن يكون y موجبًا. عند رسم اللوغاريتم بالاسم المعتاد للمدخل x، نكتب لوغاريتم x للأساس b، ويكون خط تقاربه الرأسي x = 0. يتزايد إذا كان b أكبر من 1، ويتناقص إذا كان بين 0 و1.
## Advanced
-انعكاس رسم أي دالة قابلة للعكس حول الخط $y=x$ يحوّله إلى رسم معكوسها، وهذه بالضبط العلاقة المرآتية بين $b^x$ و $\log_b x$ التي تراها هنا. هذه القدرة على الضغط هي سبب وجود مقياسي الديسيبل وشدة الزلازل أصلًا. شدة الصوت قد تمتد على معامل يقارب التريليون بين همسة ومحرك طائرة، والمقياس اللوغاريتمي يحوّل ذلك المدى الهائل إلى سلسلة أرقام مقبولة من نحو 0 إلى 140.
+ينعكس الرسمان العكسيان حول الخط y = x. يبدّل العرض بينهما ولا يرسمهما معًا، ويعرض مواضع مدخلات موجبة فقط. حدود النافذة لا تقيد المجال الرياضي الكامل للدالة الأسية. الزيادات المتساوية بالضرب في مدخل اللوغاريتم تعطي زيادات متساوية بالجمع في ناتجه.
## Derivation
-1. ابدأ من العبارة الأسية نفسها: $b^x = y$، أي الأساس مرفوعًا إلى المدخل يساوي الناتج.
-2. طبّق $\log_b$ على الطرفين. هذه خطوة سليمة لأن $\log_b$ دالة حقيقية، فالمدخلات المتساوية تعطي نواتج متساوية، أي $\log_b(b^x) = \log_b y$.
-3. يتبسّط الطرف الأيسر لأن $\log_b$ ورفع $b$ إلى قوة يُلغي أحدهما الآخر بالضبط، فيبقى $x = \log_b y$، وهي الحقيقة نفسها مكتوبة الآن بصيغة لوغاريتمية.
+1. نبدأ بعبارة أن رفع b إلى الأس x يعطي y، مع افتراض أساس موجب لا يساوي 1.
+2. نطبق اللوغاريتم بالأساس نفسه على الطرفين الموجبين.
+3. يسترجع اللوغاريتم الأس x. تصف المعادلة الناتجة العلاقة نفسها في الاتجاه المعاكس.
## Real world
-### الصوت والديسيبل
-تمتد شدة الصوت على معامل يقارب التريليون بين همسة ومحرك طائرة. مقياس الديسيبل لوغاريتم يضغط ذلك المدى كله إلى نحو 0 إلى 140.
+### تغيير الحجم مرارًا
+
+الكمية التي تُضرب في المعامل نفسه كل خطوة تتبع نمطًا أسيًا. يفترض النموذج ثبات هذا المعامل.
+
+### مقارنة نسب كبيرة
-### شدة الزلازل
-كل درجة كاملة ترتفعها على مقياس شبيه بريختر تعني طاقة أكبر بنحو 32 مرة، فالمقياس اللوغاريتمي يخفي قفزة أسية هائلة.
+يجعل العرض اللوغاريتمي النسب المتساوية تشغل مسافات متساوية، فيمكن عرض مقادير شديدة الاختلاف على مقياس واحد.
-### الاضمحلال الإشعاعي وعمر النصف
-تفقد عينة مشعة نسبة ثابتة مما تبقى منها في كل فترة زمنية متساوية، وهو شكل القسمة على 2 نفسه الذي يرسمه منحنى الاضمحلال هنا.
+### معرفة عدد الخطوات
-### الفائدة المركبة والانتشار الفيروسي
-مال يُترك ليتراكم، أو اتجاه يُعاد تداوله بمعدل ثابت، كلاهما ينمو بالمعامل نفسه في كل خطوة زمنية متساوية.
+إذا تضاعفت كمية مخزنة كل جولة، يحدد لوغاريتم الأساس 2 عدد الجولات اللازمة للوصول إلى مضاعف معين للقيمة الابتدائية.
diff --git a/content/lessons/functions/exponential-and-logarithmic-functions/en.md b/content/lessons/functions/exponential-and-logarithmic-functions/en.md
index 0e76a2db..ad0eb3ef 100644
--- a/content/lessons/functions/exponential-and-logarithmic-functions/en.md
+++ b/content/lessons/functions/exponential-and-logarithmic-functions/en.md
@@ -1,69 +1,68 @@
---
title: Exponential and logarithmic functions
-summary: >-
- One curve doubles or halves every equal step and shoots off the screen;
- its mirror image climbs so slowly it barely moves — the same pair of
- shapes behind decibels and earthquake magnitude.
+summary: Use an exponential to calculate repeated multiplication, and a logarithm to recover the exponent.
parameters:
- x: point x
- sel: curve — 0 exponential, 1 logarithm
- b: b — base
+ x: input x
+ sel: function (0 exponential, 1 logarithm)
+ b: base b (logarithms require b other than 1)
variables:
- - the base — above 1 it grows (doubling-type), between 0 and 1 it decays (halving-type)
- - the input being dragged along the curve
- - the output — read directly off the exponential curve, or supplied to the logarithm curve
+ - positive base; logarithms also require it to differ from 1
+ - exponent in the exponential rule
+ - positive result of exponentiation, used as the logarithm's input
---
## Try it
-1. Curve is set to exponential with base b=2. Drag x to the right. Watch the output double, then double again — every extra step of 1 on x doubles the height.
-2. Drop the base below 1 instead, say to 0.5. The curve flips from climbing to sliding downward, homing in on zero but never quite touching it.
-3. Switch the curve to logarithm. Drag x across the same stretch: the curve now climbs, but far more slowly, barely rising even as x itself keeps growing steadily.
+1. Set sel to 0 and b to 2. Compare inputs near 1, 2 and 3. The outputs are near 2, 4 and 8; each increase of 1 doubles the output.
+2. Keep sel at 0 and set b to 0.5. Increasing x by 1 now halves the output.
+3. Set sel to 1 and b to 2. An input near 4 gives an output near 2: the logarithm asks what power of 2 gives 4. Use b = 2 for this comparison, not 0.5 or 1.
## Real-life examples
-1. **Doubling — a shared video.** Set to exponential with base 2 (sel=0, b=2): after x=3 rounds of sharing, the output has doubled three times over — 8-fold growth from wherever it started.
-2. **Halving — a bouncing ball.** Set to exponential with base 0.5 (sel=0, b=0.5): after x=2 bounces, the ball's height has halved twice — a quarter of where it started, shrinking toward the ground with every bounce.
-3. **The log's slow climb.** Set to logarithm with base 10 (sel=1, b=10): even after x=5, the curve has barely climbed past half a unit — the same slow-growing shape used for the decibel and earthquake-magnitude scales.
+1. **Three doublings.** With sel = 0, b = 2 and x = 3, the output is 8. A starting quantity multiplied by this factor becomes eight times as large.
+2. **Two halvings.** With sel = 0, b = 0.5 and x = 2, the output is 0.25. One quarter of the starting amount remains.
+3. **Recovering an exponent.** With sel = 1, b = 10 and x = 5, the output is about 0.699. Ten raised to that power is approximately 5.
## Test yourself
-1. Switch to the exponential curve, set the base above 1.9 — close to doubling — and push x past 3.5.
-2. Switch to the exponential curve, set the base under 0.6 — a fast halving — and push x past 3.
-3. Switch to the logarithm curve, set the base above 9 — close to the decibel scale's base 10 — and push x past 4.
+1. Select the exponential, set b above 1.9, and choose x above 3.5.
+2. Select the exponential, set b below 0.6, and choose x above 3.
+3. Select the logarithm, set b above 9, and choose x above 4.
## Intuition
-Picture a video that gets reshared: each round, everyone who has it shares it with the same number of new people again. With base 2 that means every round doubles the total — after x=3 rounds the audience is 8 times its start, and dragging the point to x=3 on the exponential curve shows exactly that jump. Push x further and the curve doesn't just keep climbing, it climbs faster and faster, because each new round doubles a number that is already bigger than the last.
+Start with one item and double the count each round. After one round there are 2, after two there are 4, and after three there are 8. The exponential rule takes the number of rounds as its input and gives the multiplication factor.
-Drop the base below 1 and the same curve flips from a climb into a slide: a bouncing ball loses a fixed fraction of its height on every bounce, so its height after x bounces keeps shrinking toward the ground without ever quite touching it — the flat line the curve hugs but never crosses. Switch to the logarithm curve instead and the roles swap: now the curve climbs, but painfully slowly, because it is asking the reverse question, how many doublings did it take to reach this output, and doublings pile up value far faster than they pile up count.
+Now reverse the question. How many doublings take 1 to 8? The answer is 3. A logarithm calculates that exponent. It can also give a non-integer answer: the exponent needed to reach a value between 4 and 8 lies between 2 and 3.
+
+Changing the base changes the multiplier. A base above 1 produces growth, while a base between 0 and 1 produces decay as the exponent increases. The logarithm reverses either rule, but its input must be positive. Base 1 is a special case: its exponential always gives 1, so it has no inverse logarithm.
## Formal
-The exponential function $y = b^x$ takes any real $x$ and always returns a positive output. When $b > 1$ it grows, and when $0 < b < 1$ it decays instead, shrinking toward $0$ but never quite reaching it.
+For $b>0$, the exponential $y=b^x$ accepts every real x and returns a positive y. For b greater than 1 it increases, and for b between 0 and 1 it decreases. At b = 1 it is constant.
-Its mirror, $x = \log_b y$, undoes exactly what the exponential does: feed it the output and it hands back the input. Because the input to $b^x$ must stay positive to be reversed, the logarithm itself only accepts $y > 0$, and its graph creeps upward extremely slowly, hugging a vertical line at $y=0$ that it can never cross.
+For $b>0$ and $b\ne1$, the equivalent logarithmic statement is $x=\log_b y$, with y positive. When plotting the logarithm using the usual input label x, its rule is log base b of x and its vertical asymptote is x = 0. It increases for b greater than 1 and decreases for b between 0 and 1.
## Advanced
-Reflecting the graph of any invertible function across the line $y=x$ turns it into its inverse's graph, exactly the mirror-image relationship between $b^x$ and $\log_b x$ seen here. That compressing power is why decibel and earthquake-magnitude scales exist at all: sound intensity can span a factor of a trillion between a whisper and a jet engine, and a logarithmic scale turns that trillion-fold range into a manageable run of numbers from about 0 to 140.
+The two inverse graphs reflect across the line y = x. The display switches between them rather than overlaying them, and shows only positive input positions. Its viewport does not restrict the exponential's full mathematical domain. Equal multiplicative changes in a logarithm's input produce equal additive changes in its output.
## Derivation
-1. Start from the exponential statement itself: $b^x = y$, the base raised to the input equals the output.
-2. Apply $\log_b$ to both sides — a valid step because $\log_b$ is a genuine function, so equal inputs still give equal outputs: $\log_b(b^x) = \log_b y$.
-3. The left side simplifies because $\log_b$ and raising $b$ to a power undo each other exactly, leaving $x = \log_b y$ — the same fact, now written as a logarithm.
+1. Begin with the statement that b raised to x equals y, assuming a positive base other than 1.
+2. Apply the logarithm with that same base to both positive sides.
+3. The logarithm recovers the exponent x. The resulting equation expresses the same relationship in reverse.
## Real world
-### Sound and decibels
-Sound intensity ranges over a factor of roughly a trillion from a whisper to a jet engine; the decibel scale is a logarithm that squeezes that entire range into about 0 to 140.
+### Repeated scaling
+
+A quantity multiplied by the same factor each step follows an exponential pattern. This model assumes the factor stays constant.
+
+### Comparing large ratios
-### Earthquake magnitude
-Each whole step up a Richter-style magnitude scale means roughly 32 times more energy released, a logarithmic scale hiding a huge exponential jump.
+A logarithmic display makes equal ratios occupy equal intervals, allowing very different magnitudes to fit on one scale.
-### Radioactive decay and half-life
-A radioactive sample loses a fixed fraction of what remains in every equal stretch of time, the same halving shape as the decay curve here.
+### Finding a step count
-### Compound interest and viral growth
-Money left to compound, or a trend that gets reshared at a steady rate, both grow by the same multiplying factor every equal step of time.
+If a stored quantity doubles each round, a base-2 logarithm determines how many rounds are needed to reach a given multiple of its starting value.
diff --git a/content/lessons/functions/function-graph/ar.md b/content/lessons/functions/function-graph/ar.md
index 1743a182..7e177aa1 100644
--- a/content/lessons/functions/function-graph/ar.md
+++ b/content/lessons/functions/function-graph/ar.md
@@ -1,67 +1,71 @@
---
-title: الرسم البياني للدالة
-summary: >-
- غيّر القاعدة فتتغير الصورة كلها. أول خطوة لقراءة أي رسم بياني.
+title: رسم الدالة
+summary: اقرأ الرسم بوصفه قاعدة تعطي ناتجًا واحدًا لكل قيمة تدخلها.
parameters:
- x: x، المدخل
- a: a، الانحناء
- b: b، الإمالة
- c: c، الإزاحة الرأسية
+ x: المدخل x
+ a: معامل مربع x، وهو a
+ b: معامل x، وهو b
+ c: الحد الثابت c
variables:
- - القيمة التي تختارها لتكون المدخل
- - الناتج الذي تنتجه القاعدة
- - مدى حدة انحناء المنحنى، واتجاه فتحته إلى الأعلى أو الأسفل
- - يزيح نقطة الانعطاف جانبيًا
- - النقطة التي يقطع عندها المنحنى المحور الرأسي
+ - المدخل؛ الإحداثي الأفقي
+ - الناتج؛ ارتفاع الرسم عند المدخل المختار
+ - معامل الحد التربيعي؛ يحدد اتجاه الفتحة ومدى انحدارها
+ - معامل الحد الخطي؛ يؤثر في الميل وموضع نقطة التحول
+ - الحد الثابت؛ الناتج عندما يكون x صفرًا
---
## Try it
-1. اسحب النقطة يمينًا ويسارًا. ارتفاعها هو الجواب الذي تعطيه القاعدة لتلك x.
-2. حرّك المنزلق «a». راقب المنحنى كله يزيد انحناؤه أو يقل.
-3. اجعل «a» صفرًا. يتحول المنحنى إلى خط مستقيم، فلا انحناء بعد الآن.
+1. اضبط a على 1 وb وc على 0. قارن x = 2 مع x = 3؛ الناتجان 4 و9. يمثل ارتفاع النقطة نتيجة الحساب.
+2. أبقِ a وb ثابتين وارفع c إلى 2. يزيد كل ناتج بمقدار 2، فيرتفع الرسم كله.
+3. اضبط a على 0 وb على 1 وc على 0. تعطي القاعدة المدخل نفسه، ويصبح الرسم خطًا مستقيمًا.
## Real-life examples
-1. **مساحة حديقة مربعة.** حديقة مربعة طول ضلعها x=3 أمتار (a=1, b=0, c=0) مساحتها 9 أمتار مربعة بالضبط. الناتج هنا هو مربع طول الضلع.
-2. **ارتفاع كرة أثناء طيرانها.** كرة يتبع ارتفاعها h = -x² + 4x (a=-1, b=4, c=0) تصل إلى أعلى نقطة، 4 أمتار، عند x=2 ثانية.
-3. **أعلى إيراد من التسعير.** إيراد منتج يتبع R = -0.5x² + 4x (a=-0.5, b=4, c=0). تسعيره عند x=4 يحقق أعلى إيراد، وهو 8.
+1. **حديقة مربعة.** عند a = 1 وb = 0 وc = 0، يعطي المدخل 3 الناتج 9. إذا كان x طول الضلع بالمتر، فالناتج المساحة بالمتر المربع. لا تمثل أطوال الأضلاع إلا المدخلات غير السالبة.
+2. **نموذج له قيمة عظمى.** عند a = -1 وb = 4 وc = 0، يصل الناتج إلى 4 عند x = 2. هذا مثال رياضي لكمية ترتفع ثم تنخفض.
+3. **قاعدة افتراضية للإيراد.** عند a = -0.5 وb = 4 وc = 0، يكون الناتج 8 عند x = 4. تفسيره كإيراد يحتاج إلى نموذج مناسب للسعر والطلب؛ المعادلة وحدها لا تثبت هذه العلاقة.
## Test yourself
-1. جد a وb وc (مع إبقاء المنحنى منحنيًا فعلًا، a ليست صفرًا) وx بحيث يكون الناتج 16 بالضبط.
-2. اختر a سالبة وb بحيث تقع قمة المنحنى عند x = 2 بالضبط.
-3. اجعل المنحنى يقطع الصفر عند x=0 وعند x=4 معًا، مع بقائه منحنيًا حقيقيًا (a ليست صفرًا).
+1. اجعل الناتج يبتعد عن 16 بأقل من 0.3، والقيمة المطلقة لـa أكبر من 0.3. قد تقع النقطة فوق نافذة الرسم؛ استخدم القراءة العددية.
+2. اختر a أصغر من -0.05، واجعل موضع القمة الأفقي يبتعد عن x = 2 بأقل من 0.1.
+3. اجعل الناتجين عند x = 0 وx = 4 قريبين من الصفر، مع قيمة مطلقة لـa أكبر من 0.05.
## Intuition
-حديقة على شكل مربع طول ضلعها x مساحتها x² أمتار مربعة. اجعل الضلع مترين فتكون المساحة 4، واجعله 3 أمتار فتقفز المساحة إلى 9. النقطة على هذا الرسم تقوم بهذا الحساب نيابة عنك. اسحبها يمينًا ويسارًا على المحور الأفقي، وارتفاعها يُظهر الناتج عند أي x تقف عنده. المنحنى أثر كل الإجابات الممكنة، لكل مدخل ممكن، مرسومة كلها دفعة واحدة.
+مساحة مربع طول ضلعه متران هي 4 أمتار مربعة. وإذا كان طول الضلع 3 أمتار، تصبح المساحة 9. لدينا هنا قاعدة: نختار طول الضلع ثم نربعه لنحصل على المساحة. تسمى القاعدة دالة عندما تعطي ناتجًا واحدًا لكل مدخل مسموح.
-الآن غيّر a أو b أو c باستخدام المنزلقات أسفل الرسم. أنت هنا لا تحرك رسمًا فحسب، بل تغيّر القاعدة نفسها، فيعيد المنحنى كله رسم نفسه ليطابقها. اجعل a صفرًا فيتوقف المنحنى عن الانحناء تمامًا وينهار إلى خط مستقيم. الحد المربع الذي كان يسبب الانحناء اختفى.
+على الرسم، يمثل الإحداثي الأفقي المدخل x، ويمثل الإحداثي الرأسي الناتج f(x). النقطة (3, 9) تسجل أن المدخل 3 يعطي الناتج 9. يجمع الرسم هذه الأزواج ليمكننا رؤية العلاقة بين المدخلات والنواتج.
+
+تغيّر المنزلقات a وb وc القاعدة نفسها. أما تحريك x فيختار مدخلًا مختلفًا للقاعدة الحالية. تغيير c يضيف المقدار نفسه إلى كل النواتج، بينما يغير a وb طريقة تغير الناتج مع x. تعرض الشاشة جزءًا من الرسم فقط؛ قد تختفي نقطة لأنها خارج حدود العرض.
## Formal
-الدالة $f: \mathbb{R} \to \mathbb{R}$ تُسند لكل مدخل ناتجًا واحدًا بالضبط. ورسمها البياني هو المجموعة $\{(x, f(x))\}$.
+تعطي الدالة ناتجًا واحدًا لكل مدخل في مجالها. يتكون رسمها من النقاط $(x,f(x))$. والقاعدة المستخدمة هنا هي $f(x)=ax^2+bx+c$.
-بالنسبة للدالة التربيعية، تقع القمة عند $x = -\tfrac{b}{2a}$، وإشارة $a$ هي التي تحدد ما إذا كانت هذه القمة أدنى نقطة أم أعلى نقطة.
+عندما لا يساوي a صفرًا، تكون الدالة تربيعية. الإحداثي الأفقي لنقطة تحولها هو $x=-b/(2a)$. إذا كان a موجبًا، تكون النقطة صغرى، وإذا كان سالبًا تكون عظمى. عند a = 0 تصبح القاعدة خطية أو ثابتة، ولا تصح صيغة نقطة التحول السابقة.
## Advanced
-المعلمات الثلاث إحداثيات في فضاء الدوال التربيعية. إتمام المربع يُظهر أن كل قطع مكافئ صورة أفينية للدالة $y = x^2$. لهذا تشترك القطوع المكافئة جميعًا في الشكل نفسه إلى حد التحجيم.
+إكمال المربع يعيد كتابة الدالة التربيعية حول نقطة تحولها. توضح هذه الصيغة الإزاحتين الأفقية والرأسية والمعامل الذي يحدد اتجاه الفتحة. وقد يقيّد التطبيق الواقعي مجال الدالة، رغم إمكانية حساب كثير الحدود لكل مدخل حقيقي.
## Derivation
-1. ابدأ من الصيغة التربيعية العامة.
-2. أتمم المربع، فتحصل على القاعدة نفسها مكتوبة كنسخة مُزاحة من $ax^2$.
-3. يكون الحد المربع أصغر ما يمكن عندما يساوي صفرًا، وهذه هي نقطة الانعطاف التي تراها على الرسم البياني.
+1. نبدأ بالقاعدة التربيعية، ونفترض أن a لا يساوي صفرًا في الخطوات التالية.
+2. نكمل المربع بإضافة الثابت المطلوب وطرحه. تتغير طريقة الكتابة، وتبقى قيم الدالة كما هي.
+3. يصبح التعبير المربع صفرًا عند نقطة التحول. نحل لإيجاد x وتحديد موضعها.
## Real world
-### الأجسام المقذوفة
-يتغيّر ارتفاع كرة أثناء طيرانها تربيعيًا مع الزمن، فيرسم قطعًا مكافئًا مفتوحًا إلى الأسفل.
+### المساحة
+
+في المربع، يمكن أن يكون المدخل طول الضلع والناتج المساحة. تختلف الوحدتان لأن تربيع الأمتار يعطي أمتارًا مربعة.
+
+### القياسات مع الزمن
+
+يمكن للرسم ربط كل لحظة قياس بالقراءة المسجلة. يعتمد تفسيره على أسماء المحاور ووحداتها.
-### التسعير
-يتغيّر الإيراد غالبًا تربيعيًا مع السعر، فالسعر الرخيص جدًا والسعر الباهظ جدًا كلاهما يخسر المال.
+### النماذج الرياضية
-### أطباق الأقمار الصناعية
-المقطع العرضي المكافئ يعكس كل شعاع وارد نحو بؤرة واحدة.
+قد تمثل المعادلة علاقة مقيسة، لكن علينا التحقق من مجال استخدامها وافتراضاتها في الموقف المقصود.
diff --git a/content/lessons/functions/function-graph/en.md b/content/lessons/functions/function-graph/en.md
index 9f1b3420..58754c30 100644
--- a/content/lessons/functions/function-graph/en.md
+++ b/content/lessons/functions/function-graph/en.md
@@ -1,68 +1,71 @@
---
title: Function graph
-summary: >-
- See how changing a rule reshapes its entire picture — the first step to
- reading any graph, chart, or formula you will ever meet.
+summary: Read a graph as a rule that turns each input into one output.
parameters:
x: input x
- a: a — curvature
- b: b — tilt
- c: c — vertical shift
+ a: coefficient a of x squared
+ b: coefficient b of x
+ c: constant c
variables:
- - the input you choose
- - the output the rule produces
- - 'how sharply the curve bends, and whether it opens up or down'
- - shifts the turning point sideways
- - where the curve crosses the vertical axis
+ - input; the horizontal coordinate
+ - output; the height of the graph at that input
+ - coefficient of the squared term; controls opening direction and steepness
+ - coefficient of the linear term; affects the slope and turning-point location
+ - constant term; the output when x is zero
---
## Try it
-1. Drag the point left and right. Its height is the answer the rule gives for that x.
-2. Move the slider «a». Watch the whole curve bend more or less.
-3. Set «a» to 0. The curve turns into a straight line: no bending left.
+1. Set a to 1 and b and c to 0. Compare x = 2 and x = 3: the outputs are 4 and 9. The point's height records the result.
+2. Keep a and b fixed and raise c to 2. Every output increases by 2, so the whole graph moves up.
+3. Set a to 0, b to 1 and c to 0. The rule now gives the input unchanged, and its graph is a straight line.
## Real-life examples
-1. **A square garden's area.** A garden shaped like a square with side length x=3 metres (a=1, b=0, c=0) has an area of exactly 9 square metres — the output is the side length squared.
-2. **A ball's flight height.** A ball thrown so its height follows h = -x² + 4x (a=-1, b=4, c=0) reaches its highest point, 4 metres, at x=2 seconds.
-3. **Peak revenue from pricing.** A product's revenue follows R = -0.5x² + 4x (a=-0.5, b=4, c=0): pricing it at x=4 earns the peak revenue of 8.
+1. **A square garden.** With a = 1, b = 0 and c = 0, an input of 3 gives 9. If x is side length in metres, the output is area in square metres. Only nonnegative inputs describe side lengths.
+2. **A model with a maximum.** With a = -1, b = 4 and c = 0, the output reaches 4 at x = 2. This is a mathematical example of a quantity that rises and then falls.
+3. **An illustrative revenue rule.** With a = -0.5, b = 4 and c = 0, the output is 8 at x = 4. Interpreting this as revenue requires a suitable price-and-demand model; the formula alone does not establish one.
## Test yourself
-1. Find a, b, c (keeping the curve genuinely curved, a not zero) and an x so the output is exactly 16.
-2. Choose a negative a and a b so the curve's peak sits exactly at x = 2.
-3. Make the curve cross zero both at x=0 and at x=4, while still curving (a not zero).
+1. Make the output within 0.3 of 16, with the absolute value of a greater than 0.3. The output may be above the visible graph window; use the readout.
+2. Choose a below -0.05 and make the maximum's horizontal position within 0.1 of x = 2.
+3. Make the outputs at x = 0 and x = 4 approximately zero, with the absolute value of a greater than 0.05.
## Intuition
-A square garden with side length x has area x² square metres: make the side 2 metres and the area is 4; make it 3 and the area jumps to 9. The point on this graph does exactly that calculation for you — drag it left and right along the horizontal axis, and its height shows the output for whatever x you land on. The curve is simply the trail of every possible answer, for every possible input, drawn all at once.
+A square with side length 2 metres has area 4 square metres. A side length of 3 gives area 9. This is a rule: choose a side length, square it, and obtain an area. We call such a rule a function when each allowed input has exactly one output.
-Now change a, b or c using the sliders below the graph. You are not just moving a drawing — you are changing the rule itself, and the whole curve redraws to match. Set a to 0 and the curve stops bending altogether, collapsing into a straight line, because the squared term that caused the curve has vanished.
+On the graph, the horizontal coordinate is the input x. The vertical coordinate is the output f(x). A point at (3, 9) records that input 3 gives output 9. The graph collects these input-output pairs so we can see the pattern across many inputs.
+
+The sliders a, b and c change the rule itself. Moving x chooses a different input for the current rule. Changing c adds the same amount to every output; changing a or b changes how the output varies with x. The screen shows only part of the graph, so a missing point may simply lie outside the visible window.
## Formal
-A function $f: \mathbb{R} \to \mathbb{R}$ assigns exactly one output to each input. Its graph is the set $\{(x, f(x))\}$.
+A function assigns exactly one output to each input in its domain. Its graph consists of points $(x,f(x))$. Here the rule is $f(x)=ax^2+bx+c$.
-For a quadratic, the vertex sits at $x = -\tfrac{b}{2a}$ and the sign of $a$ decides whether it is a minimum or a maximum.
+When a is nonzero, this is a quadratic function. Its turning point has horizontal coordinate $x=-b/(2a)$. Positive a gives a minimum, and negative a gives a maximum. When a is zero, the rule is linear or constant and the turning-point formula does not apply.
## Advanced
-The three parameters are coordinates on the space of quadratics; completing the square shows every parabola is an affine image of $y = x^2$, which is why they all share one shape up to scaling.
+Completing the square rewrites a quadratic around its turning point. This exposes the horizontal and vertical shifts and the coefficient controlling its opening. A physical application may restrict the domain even when the polynomial can be evaluated for every real input.
## Derivation
-1. Start from the general quadratic.
-2. Complete the square: the same rule, rewritten as a shifted copy of $ax^2$.
-3. The squared term is smallest when it is zero — that is the turning point you see on the graph.
+1. Start with the quadratic rule and assume a is nonzero for the following steps.
+2. Complete the square by adding and subtracting the required constant. This changes the form without changing the function's values.
+3. The squared expression is zero at the turning point. Solve for x to locate it.
## Real world
-### Thrown objects
-Height against time for a ball in flight is a downward-opening parabola.
+### Area
+
+For a square, the input can be side length and the output area. The units differ because squaring metres gives square metres.
+
+### Measurements over time
+
+A graph can pair each measurement time with a reading. Its meaning depends on the axis labels and units.
-### Pricing
-Revenue against price is often quadratic: too cheap or too expensive both lose money.
+### Mathematical models
-### Satellite dishes
-A parabolic cross-section reflects every incoming ray to a single focus.
+A formula can model a measured relationship, but its domain and assumptions must be checked against the situation.
diff --git a/content/lessons/functions/inverse-functions/ar.md b/content/lessons/functions/inverse-functions/ar.md
index 703dcfaa..38bf9b87 100644
--- a/content/lessons/functions/inverse-functions/ar.md
+++ b/content/lessons/functions/inverse-functions/ar.md
@@ -1,64 +1,68 @@
---
title: الدوال العكسية
-summary: >-
- تراجع عن القاعدة فتستعيد المدخل. هكذا تعود من فهرنهايت إلى سلسيوس.
+summary: اعكس خطوات القاعدة لاسترجاع المدخل الأصلي من الناتج.
parameters:
- m: m — الميل
- b: b — نقطة التقاطع
+ m: معامل الضرب m
+ b: الثابت المضاف b
x: المدخل x
variables:
- - المعدل الذي تضرب به القاعدة مدخلها
- - المقدار الثابت الذي تضيفه القاعدة
- - نقطة المدخل، تظهر على الخط الأزرق f وتنعكس على الخط البرتقالي f⁻¹
+ - معامل الضرب في القاعدة الأصلية، وهو غير صفر
+ - الثابت الذي نضيفه بعد الضرب
+ - مدخل القاعدة الأصلية؛ يصبح ناتجها مدخلًا للدالة العكسية
---
## Try it
-1. حرّك النقطة الزرقاء على «f». تظهر صورتها المرآتية على الخط البرتقالي «f⁻¹»، بالمسافة نفسها من القطر المتقطع لكن على الجهة الأخرى.
-2. اقرأ الرقم في الأسفل. f⁻¹(f(x)) يعود دائمًا إلى x، أينما حرّكت النقطة. هذا بالضبط معنى «التراجع».
-3. ارفع «m» أو «b». يتحرك الخطان معًا، وتنزلق النقطتان لتبقيا منعكستين حول القطر المتقطع y = x.
+1. اضبط m على 2 وb على 3 وx على 4. تعطي القاعدة الأصلية 11. تطرح العكسية 3 ثم تقسم على 2، فتسترجع 4.
+2. قارن النقطتين (4, 11) و(11, 4). تبدّل الإحداثيان، فتقعان على جانبي القطر y = x.
+3. اضبط m على 1 وb على 0. تترك القاعدة وعكسها كل مدخل كما هو، ويتطابق خطاهما مع القطر.
## Real-life examples
-1. **السلسيوس إلى الفهرنهايت والعودة.** عند m=1.8، b=32، درجة حرارة x=20°C تتحول إلى 68°F. تشغيل العكس على 68 يعيدك إلى 20 بالضبط.
-2. **الأميال إلى الكيلومترات والعودة.** عند m=1.609، b=0، مسافة x=10 أميال تتحول إلى 16.09 كم. العكس يعيد 16.09 إلى 10 بالضبط.
-3. **تنصيف وصفة ثم مضاعفتها مرة أخرى.** عند m=0.5، b=0، وصفة قدرها x=10 أكواب تصغر إلى 5 أكواب. العكس يضاعف 5 ليعيدها إلى 10 بالضبط.
+1. **تحويل درجة الحرارة.** ضرب 20 في 1.8 ثم إضافة 32 يحول 20°C إلى 68°F. طرح 32 من 68 ثم القسمة على 1.8 يعيد 20°C.
+2. **تحويل تقريبي للطول.** عند m = 1.609 وb = 0 وx = 10، نحصل على 16.09. تسترجع الدالة العكسية 10 باستخدام معامل التحويل التقريبي نفسه.
+3. **تنصيف كمية واستعادتها.** عند m = 0.5 وb = 0 وx = 10، نحصل على 5. تقسم العكسية على 0.5، أي تضاعف 5 لتعيدها إلى 10.
## Test yourself
-1. جد m وb وx بحيث يكون f(x) يساوي 300 بالضبط.
-2. اجعل f عكس نفسها: جد m وb بحيث f(x) = x لكل مدخل.
-3. جد m وb وx بحيث ترسل الدالة العكسية x إلى −10 بالضبط.
+1. اختر قيمًا تجعل ناتج القاعدة الأصلية نحو 300. استخدم القراءة العددية إذا كانت النقطة خارج نافذة الرسم.
+2. اضبط m على 1 وb على 0 ليبقى كل مدخل دون تغيير.
+3. اختر قيمًا تجعل حاصل قسمة x ناقص b على m نحو -10. يختبر هذا السؤال العكسية عند x، بينما تعرض قراءة العودة العكسية عند f(x).
## Intuition
-يحوّل مقياس الحرارة السلسيوس إلى الفهرنهايت بقاعدة واحدة ثابتة: اضرب في 1.8، ثم أضف 32. حرّك النقطة الزرقاء على الخط الأزرق «f» هنا، وراقب صورتها، النقطة البرتقالية، تظهر على الخط البرتقالي «f⁻¹»، دائمًا على الجهة المقابلة من القطر المتقطع، وبالمسافة نفسها. هذا الانعكاس ليس صدفة: الدالة العكسية تُبنى بتبديل كل مدخل بناتجه، وتبديل إحداثيات نقطة هو بالضبط ما يفعله انعكاسها حول y = x.
+تقول قاعدة: «اضرب في 2 ثم أضف 3». إذا بدأنا من 4 نحصل على 11. لاستعادة المدخل، نعكس الخطوة الأخيرة أولًا: نطرح 3 فنحصل على 8، ثم نقسم على 2 فنسترجع 4. نسمي هذه القاعدة المعاكسة الدالة العكسية.
-اقرأ الرقم أسفل الرسم. f⁻¹(f(x)) يعود دائمًا x، أينما حرّكت النقطة. طبّق القاعدة ثم تراجع عنها فتعود إلى حيث بدأت، وهذا هو المعنى الكامل للدالة العكسية. بُني هذا الرسم كله ليجعل تلك الرحلة ذهابًا وإيابًا مرئية.
+تربط القاعدة الأصلية المدخل 4 بالناتج 11. وتربط العكسية المدخل 11 بالناتج 4. تبديل الإحداثيين يعكس النقطة حول القطر y = x. يعرض الرسمان الأزواج نفسها، لكن المدخل والناتج يتبادلان دوريْهما.
+
+يجب أن تعطي الدالة العكسية جوابًا واحدًا لكل مدخل يصل إليها. إذا أعطى مدخلان أصليان الناتج نفسه، فلن تعرف العكسية أيهما تسترجع دون قيد إضافي. يتجنب معامل الضرب الخطي غير الصفري هذه المشكلة، ولذلك لا يسمح هذا الدرس بأن يكون m صفرًا.
## Formal
-للدالة $f$ عكس $f^{-1}$ حين تكون متباينة تمامًا، أي حين $f^{-1}(f(x)) = x$ لكل $x$ في المجال. من أجل $f(x) = mx + b$ مع $m \neq 0$، حل $y = mx + b$ من أجل $x$ يعطي $f^{-1}(x) = \dfrac{x-b}{m}$.
+للدالة $f(x)=mx+b$ مع $m\ne0$، تكون العكسية $f^{-1}(y)=(y-b)/m$. الرمز العلوي -1 يعني الدالة العكسية، ولا يعني مقلوب قيمة f.
-رسم $f^{-1}$ هو دائمًا انعكاس رسم $f$ حول الخط $y = x$، لأن كل نقطة $(x, y)$ على $f$ تصبح النقطة $(y, x)$ على $f^{-1}$.
+تستقبل العكسية نواتج f بوصفها مدخلات، وتحقق $f^{-1}(f(x))=x$. تكون للدالة عكسية على مداها إذا كان كل ناتج يقابل مدخلًا واحدًا فقط. وإذا أردنا العكسية على مجموعة وصول محددة، فيجب أن تبلغ f كل قيمة في تلك المجموعة أيضًا.
## Advanced
-ليست كل دالة لها عكس على كامل مجالها: يجب أن تكون الدالة متباينة حتى توجد $f^{-1}$ كدالة، ولهذا تحتاج $f(x) = x^2$ إلى تقييد مجالها، مثلًا إلى $x \ge 0$، قبل أن يكون لـ $f^{-1}(x) = \sqrt{x}$ معنى.
+يعطي تربيع 2 وتربيع -2 الناتج نفسه، وهو 4. لذلك لا تكون للتربيع عكسية على جميع المدخلات الحقيقية. إذا قيدنا مجال الدالة الأصلية بالأعداد غير السالبة، يصبح الجذر التربيعي هو العكسية. اختيار المجال جزء من تحديد الدالة القابلة للعكس.
## Derivation
-1. ابدأ من $y = f(x) = mx + b$، القاعدة التي تحوّل مدخلًا إلى ناتج.
-2. اطرح $b$ من الطرفين فيبقى حد $mx$ وحده: $y - b = mx$.
-3. اقسم على $m$، فيصبح $x$ مكتوبًا باستخدام $y$. بدّل الحرفين فتحصل على الدالة العكسية.
+1. نكتب القاعدة الأصلية: نضرب المدخل في m ونضيف b للحصول على y.
+2. نطرح b من الطرفين لعكس خطوة الجمع.
+3. نقسم على m غير الصفري لاستعادة المدخل الأصلي، فنحصل على القاعدة العكسية.
## Real world
### تحويل الوحدات
-السلسيوس↔الفهرنهايت، والأميال↔الكيلومترات، والباوند↔الكيلوغرام كلها أزواج دوال خطية عكسية.
-### الترميز وفك الترميز
-الشيفرة أو ضاغط الملفات يطبّق دالة. فك الترميز يطبّق عكسها، فيستعيد الأصل تمامًا.
+يمكن عكس التحويل القابل للاسترجاع بعكس خطواته الحسابية. نستخدم الثوابت نفسها في الاتجاهين.
+
+### حل معادلة خطية
+
+لحل mx + b = k عندما لا يكون m صفرًا، نطرح b من k ثم نقسم على m.
+
+### استرجاع البيانات
-### حل المعادلات
-إيجاد x من معادلة مثل mx + b = k يعني ببساطة تطبيق الدالة العكسية على طرفي المعادلة.
+يمكن عكس الترميز الذي لا يفقد معلومات لاستعادة البيانات الأصلية. أما الضغط الذي يحذف معلومات فلا تكون له عادة عكسية دقيقة.
diff --git a/content/lessons/functions/inverse-functions/en.md b/content/lessons/functions/inverse-functions/en.md
index e8f7bb87..1d1643b8 100644
--- a/content/lessons/functions/inverse-functions/en.md
+++ b/content/lessons/functions/inverse-functions/en.md
@@ -1,66 +1,68 @@
---
title: Inverse functions
-summary: >-
- Undo a rule and get your original input back — the same trick that turns
- Celsius into Fahrenheit and, run backward, turns Fahrenheit right back
- into Celsius.
+summary: Undo a rule by reversing its steps and recover the original input.
parameters:
- m: m — slope
- b: b — intercept
+ m: multiplier m
+ b: added constant b
x: input x
variables:
- - the rate at which the rule scales its input
- - the fixed amount the rule adds
- - the input point, shown on the blue line f and mirrored onto the orange line f⁻¹
+ - nonzero multiplier in the forward rule
+ - constant added after multiplication
+ - input to the forward rule; its output becomes an input to the inverse
---
## Try it
-1. Drag the blue point along «f». Its mirror image appears on the orange line «f⁻¹», the same distance from the dashed diagonal but on the other side.
-2. Read the bottom number: f⁻¹(f(x)) always comes back to x, no matter where you drag — that is what "undo" means.
-3. Raise «m» or «b». Both lines move, and both points slide to stay mirrored across the dashed y = x diagonal.
+1. Set m to 2, b to 3 and x to 4. The forward rule gives 11. The inverse subtracts 3 and divides by 2, returning 4.
+2. Compare the marked points (4, 11) and (11, 4). Their coordinates are swapped, so they lie on opposite sides of the diagonal y = x.
+3. Set m to 1 and b to 0. The rule and its inverse both leave every input unchanged, and their lines coincide with the diagonal.
## Real-life examples
-1. **Celsius to Fahrenheit and back.** At m=1.8, b=32, a temperature of x=20°C converts to 68°F; running the inverse on 68 gives back exactly 20.
-2. **Miles to kilometres and back.** At m=1.609, b=0, a distance of x=10 miles converts to 16.09 km; the inverse turns 16.09 back into exactly 10.
-3. **Halving a recipe and doubling it back.** At m=0.5, b=0, a recipe of x=10 cups scales down to 5 cups; the inverse doubles 5 back into exactly 10.
+1. **Temperature conversion.** Multiplying 20 by 1.8 and adding 32 converts 20°C to 68°F. Subtracting 32 from 68 and dividing by 1.8 recovers 20°C.
+2. **A length conversion approximation.** With m = 1.609, b = 0 and x = 10, the result is 16.09. The inverse returns 10 using the same approximate conversion factor.
+3. **Halving and restoring a quantity.** With m = 0.5, b = 0 and x = 10, the result is 5. The inverse divides by 0.5, which doubles 5 back to 10.
## Test yourself
-1. Find m, b and x so f(x) comes out to exactly 300.
-2. Make f its own inverse: find m and b so f(x) = x for every input.
-3. Find m, b and x so the inverse function sends x to exactly −10.
+1. Choose settings that make the forward output about 300. Use the numerical readout if the point is outside the visible window.
+2. Set m to 1 and b to 0 so every input is unchanged.
+3. Choose settings so (x minus b) divided by m is about -10. This challenge evaluates the inverse at x, whereas the displayed round-trip readout evaluates the inverse at f(x).
## Intuition
-A thermometer converts Celsius to Fahrenheit with one fixed rule: multiply by 1.8, then add 32. Drag the blue point along the blue line «f» here and watch its mirror, the orange point, appear on the orange line «f⁻¹» — always on the opposite side of the dashed diagonal, the same distance away. That mirroring is not a coincidence: the inverse function is built by swapping every input with its output, and swapping a point's coordinates is exactly what reflecting it across y = x does.
+A rule says “multiply by 2, then add 3.” Starting with 4 gives 11. To recover the original input, undo the last step first: subtract 3 to get 8, then divide by 2 to get 4. This reversing rule is the inverse function.
-Read the bottom number under the picture: f⁻¹(f(x)) is always x again, wherever you drag the point. Apply the rule, then undo it, and you land back where you started — that is the entire meaning of an inverse function, and this lesson's whole picture is built to make that round trip visible.
+The forward rule pairs input 4 with output 11. Its inverse pairs input 11 with output 4. Swapping these coordinates reflects the point across the diagonal y = x. The two graphs show the same pairs with their roles reversed.
+
+An inverse function must give one answer for each input it receives. If two original inputs share an output, the inverse cannot choose between them without another restriction. A nonzero linear multiplier avoids this problem, which is why this lesson keeps m away from zero.
## Formal
-A function $f$ has an inverse $f^{-1}$ exactly when it is one-to-one: $f^{-1}(f(x)) = x$ for every $x$ in the domain. For $f(x) = mx + b$ with $m \neq 0$, solving $y = mx + b$ for $x$ gives $f^{-1}(x) = \dfrac{x-b}{m}$.
+For $f(x)=mx+b$ with $m\ne0$, the inverse is $f^{-1}(y)=(y-b)/m$. The notation with superscript -1 means the inverse function, not the reciprocal of f.
-The graph of $f^{-1}$ is always the reflection of the graph of $f$ across the line $y = x$, because every point $(x, y)$ on $f$ becomes the point $(y, x)$ on $f^{-1}$.
+The inverse accepts outputs of f as its inputs and satisfies $f^{-1}(f(x))=x$. A function has an inverse on its range when it is one-to-one. If an inverse is required on a specified codomain, f must also reach every value in that codomain.
## Advanced
-Not every function has an inverse over its whole domain: a function must be one-to-one (injective) for $f^{-1}$ to exist as a function, which is why $f(x) = x^2$ needs its domain restricted, say to $x \ge 0$, before $f^{-1}(x) = \sqrt{x}$ makes sense.
+Squaring sends both 2 and -2 to 4, so it has no inverse function on all real inputs. Restricting the original domain to nonnegative numbers gives the square-root inverse. The choice of domain is part of specifying an invertible function.
## Derivation
-1. Start from $y = f(x) = mx + b$, the rule that turns an input into an output.
-2. Subtract $b$ from both sides so only the $mx$ term remains: $y - b = mx$.
-3. Divide by $m$: $x$ is now written in terms of $y$ — swap the letters and this is the inverse function.
+1. Write the forward rule: multiply the input by m and add b to obtain y.
+2. Subtract b from both sides to undo the addition.
+3. Divide by the nonzero m to recover the original input. This gives the inverse rule.
## Real world
### Unit conversions
-Celsius↔Fahrenheit, miles↔kilometres and pounds↔kilograms are all pairs of inverse linear functions.
-### Encoding and decoding
-A cipher or a file compressor applies a function; decoding it applies the inverse, recovering the original exactly.
+A reversible conversion can be undone by reversing its arithmetic steps. Use the same constants in both directions.
+
+### Solving a linear equation
+
+To solve mx + b = k with m nonzero, subtract b from k and divide by m.
+
+### Recovering data
-### Solving equations
-Finding x from an equation like mx + b = k is nothing more than applying the inverse function to both sides.
+Lossless encoding can be reversed to recover the original data. Lossy compression discards information and generally has no exact inverse.
diff --git a/content/lessons/functions/periodic-functions/ar.md b/content/lessons/functions/periodic-functions/ar.md
index a3c4fecf..596f9457 100644
--- a/content/lessons/functions/periodic-functions/ar.md
+++ b/content/lessons/functions/periodic-functions/ar.md
@@ -1,70 +1,71 @@
---
title: الدوال الدورية
-summary: >-
- دوال لا تستقر ولا تهرب، بل تتكرر إلى الأبد: كطول النهار عبر السنة ونبض القلب.
+summary: صف النمط المتكرر باستخدام زمن الدورة والسعة والقيمة الوسطى.
parameters:
- x: النقطة x
- A: A — السعة
- T: T — الدور
- D: D — خط المنتصف
+ x: المدخل x
+ A: السعة A
+ T: طول الدورة T
+ D: القيمة الوسطى D
variables:
- - السعة، مدى ابتعاد المنحنى فوق خط منتصفه وتحته
- - الدور، طول x الذي يتكرر بعده النمط كله
- - خط المنتصف، الارتفاع الذي يتأرجح المنحنى حوله بالتساوي
- - المدخل الذي تسحبه على طول المنحنى
- - الناتج، ارتفاع المنحنى عند ذلك المدخل
+ - المسافة من القيمة الوسطى إلى القمة
+ - مقدار التغير في المدخل اللازم لتكرار كامل
+ - القيمة الواقعة في منتصف أعلى ناتج وأدنى ناتج
+ - موضع المدخل، مثل الزمن المنقضي
+ - الناتج عند الموضع المختار
---
## Try it
-1. اسحب النقطة x ببطء عبر الرسم كله. راقب المنحنى يرتفع وينخفض، يرتفع وينخفض. الشكل نفسه يتكرر مرارًا.
-2. صغّر المنزلق «T — الدور». تتقارب التكرارات أكثر فأكثر. الموجة نفسها تحدث الآن أكثر تواترًا.
-3. ارفع «D — خط المنتصف» أو «A — السعة» وراقب الموجة كلها تنزاح لأعلى أو تتمدد طولًا، بينما تظل تتكرر بالمعدل نفسه بالضبط.
+1. اضبط A على 3 وT على 4 وD على 6. عند x = 0 وx = 4، يكون الناتج 9. وعند x = 2 يكون 3.
+2. غيّر T إلى 2. يصبح نمط الصعود والهبوط نفسه مكتملًا خلال وحدتين من المدخل بدل أربع.
+3. أبقِ T ثابتًا وغيّر A أو D. يغير A المسافة من الوسط إلى القمم، وينقل D الموجة كلها رأسيًا.
## Real-life examples
-1. **ساعات النهار عبر فصول السنة.** في مدينة على خط عرض متوسط يتبع طول النهار A=4، D=12، T=12 (أشهر): يتأرجح حول 12 ساعة، يرتفع إلى 16 في الصيف، وينخفض إلى 8 في الشتاء، ويعيد الكرّة كل 12 شهرًا.
-2. **المد والجزر.** يتبع ارتفاع المد A=1.2، D=1.5، T=12.4 (ساعات): يرتفع وينخفض حول متوسط 1.5 متر كل 12.4 ساعة، وهو الإيقاع الحقيقي الذي يقوده القمر.
-3. **مخطط نبضة قلب.** تتبع نبضة جهاز مراقبة القلب A=1، D=0، T=0.8 (ثوانٍ): مسحة واحدة كاملة صعودًا وهبوطًا كل 0.8 ثانية، أي نحو 75 نبضة في الدقيقة.
+1. **مثال على دورة موسمية.** تعطي A = 4 وD = 12 وT = 12 قيمًا بين 8 و16، تتكرر كل 12 وحدة. يمكن أن توضح ساعات النهار إذا اخترنا الشهر صفر عند القمة، لكنها ليست سجلًا مقيسًا لمدينة.
+2. **مثال يشبه المد والجزر.** تعطي A = 1.2 وD = 1.5 وT = 12.4 ارتفاعات من 0.3 إلى 2.7. هذا مكوّن دوري واحد، وليس تنبؤًا كاملًا بالمد والجزر.
+3. **إشارة متكررة.** تعطي A = 1 وD = 0 وT = 0.8 دورة كل 0.8 ثانية، أي 75 دورة في الدقيقة. شكل جيب التمام ليس شكل تخطيط نبضة قلب حقيقية.
## Test yourself
-1. طابق مثال ساعات النهار: اجعل الدور 12 والسعة 4.
-2. اجعل المنحنى يتكرر أسرع من مرة واحدة لكل وحدة، بدور أقل من 1، مع إبقاء خط المنتصف تحت 2.
-3. اجعل أعلى نقطة في المنحنى تبلغ 16 بالضبط.
+1. اجعل T قريبًا من 12 وA قريبًا من 4، بحيث يقل فرق كل منهما عن 0.3.
+2. اجعل T أقل من 1 وD أقل من 2.
+3. اجعل أعلى ناتج، وهو A + D، يبتعد عن 16 بأقل من 0.3.
## Intuition
-في مدينة على خط عرض متوسط يدوم النهار نحو 12 ساعة في المتوسط. يرتفع إلى 16 ساعة في ذروة الصيف، وينخفض إلى 8 في عمق الشتاء. ثم يعيد الكرّة كلها في السنة التالية. هذا الإيقاع السنوي كله منحنى واحد هنا. اسحب النقطة x من الشهر 0 عبر الشهر 12 وعودة. يرسم ارتفاعها ذلك الصعود والهبوط بالضبط، وينتهي عند الشهر 12 بالارتفاع نفسه الذي بدأ به عند الشهر 0. هذه دورة كاملة واحدة.
+يكون النمط دوريًا إذا أدى الانتقال بمقدار ثابت في المدخل إلى تكرار جميع النواتج. في الموجة الافتراضية، يعيدك التحرك أربع وحدات يمينًا إلى الارتفاع نفسه، مهما كان موضع البداية. هذه الوحدات الأربع دورة واحدة. لا يكفي تطابق نقطتين فقط؛ يجب أن يتكرر النمط كله.
-أي نقطتين على المنحنى تفصل بينهما مسافة «T — الدور» بالضبط تقفان دائمًا عند الارتفاع نفسه، بصرف النظر عن أين تبدأ العدّ. هذا هو معنى أن يتكرر المنحنى. صغّر T وستنضغط الموجة كلها، فتحشر صعودها وهبوطها في مسافة أقصر. قلب مستريح ينبض كل 0.8 ثانية تقريبًا، مقارنة بمد بطيء دوره 12.4 ساعة. ارفع أو اخفض «A — السعة» و«D — خط المنتصف» بدلًا من ذلك، فتكبر الموجة أو تنزاح لأعلى ولأسفل، من غير أن يتغير عدد مرات تكرارها إطلاقًا.
+القيمة الوسطى هنا 6. تقع القمم عند 9 والقيعان عند 3، أي إن كلًا منها يبتعد عن الوسط 3 وحدات. تسمى هذه المسافة السعة. أما المسافة من القمة إلى القاع فهي 6، أي ضعف السعة.
+
+تغيير طول الدورة يغير المسافة بين التكرارات. وتغيير السعة يغير ارتفاعها عن الوسط، بينما يرفع تغيير القيمة الوسطى الموجة كلها أو يخفضها. تساعدنا هذه المنزلقات على فصل ثلاثة أنواع من التغير.
## Formal
-تكون الدالة دورية حين يعطي تكرار الخطوة نفسها في مدخلها، $T$، الناتج نفسه دائمًا: $f(x+T) = f(x)$ لكل $x$. أصغر قيمة موجبة لـ $T$ تحقق ذلك تسمى الدور.
+يكون العدد الموجب T طول دورة إذا تحققت $f(x+T)=f(x)$ لكل مدخل في المجال. وإذا وُجد أصغر طول موجب، نسميه طول الدورة الأساسية.
-بالنسبة إلى $f(x) = A\cos\left(\frac{2\pi x}{T}\right) + D$، فإن الدور هو $T$ بالضبط، والسعة $A$ تحدد مدى ابتعاد المنحنى فوق خط منتصفه وتحته، و $D$ هو خط المنتصف نفسه. كلها تُقرأ مباشرة من الرسم.
+للدالة $f(x)=A\cos(2\pi x/T)+D$ مع A وT موجبين، تكون الدورة الأساسية T والسعة A. تتراوح النواتج من D ناقص A إلى D زائد A. تبدأ دالة جيب التمام من القمة عند x = 0.
## Advanced
-الإشارات المتكررة الحقيقية نادرًا ما تكون بهذه النظافة. المد والجزر يتبعان في الواقع دورين متراكبين، أحدهما قمري والآخر شمسي، وتوقيت نبضة القلب ينزلق قليلًا من نبضة لأخرى. لكن جيبًا أو جيب تمام واحدًا كهذا هو اللبنة الأساسية. تكديس عدة موجات منها بدورات وسعات مختلفة، وهي تقنية تسمى متسلسلة فورييه، يمكن أن يقارب أي شكل متكرر تقريبًا، مهما كان متعرجًا.
+تتكرر الدالة الثابتة بعد أي إزاحة موجبة، ولذلك ليس لها أصغر طول دورة موجب. يمكن تمثيل إشارات دورية أعقد أو تقريبها بجمع مكونات من الجيب وجيب التمام، ضمن شروط مناسبة. الموجة الواحدة مكوّن للنموذج، وليست وصفًا دقيقًا لكل دورة طبيعية.
## Derivation
-1. قدّم المدخل خطوة مقدارها دور كامل: $f(x+T) = A\cos\left(\frac{2\pi(x+T)}{T}\right)+D$، وينقسم الكسر بالداخل إلى $\frac{2\pi x}{T} + 2\pi$.
-2. يتكرر جيب التمام مع كل لفة كاملة على الدائرة، فإضافة $2\pi$ بداخله لا تغيّر شيئًا: $\cos(\theta+2\pi) = \cos\theta$.
-3. تختفي تلك الـ $2\pi$ الزائدة ببساطة، فيبقى $f(x+T) = f(x)$. التقدم بمقدار $T$ يعيدك دائمًا إلى الناتج نفسه.
+1. نستبدل x بالقيمة x + T. تزيد الزاوية داخل جيب التمام بمقدار دورة كاملة، أي اثنين باي راديان.
+2. تعود قيمة جيب التمام نفسها بعد إضافة دورة كاملة.
+3. يعود الناتج إلى f(x)، وبذلك نثبت أن T طول دورة.
## Real world
-### النهار عبر الفصول
-يرتفع طول النهار وينخفض مرة كل سنة في منحنى ناعم، يقوده ميل محور الأرض وهي تدور حول الشمس.
+### الحركة الدورانية
+
+يتغير ارتفاع نقطة على عجلة تدور بسرعة ثابتة بنمط جيبي بالنسبة إلى مركز العجلة.
+
+### الصوت
-### المد والجزر
-يرتفع ارتفاع المد وينخفض كل 12.4 ساعة تقريبًا، بفعل جذب القمر بينما تدور الأرض تحته.
+تردد إشارة ضغط متكررة هو عدد دوراتها في الثانية. قصر زمن الدورة يعني ارتفاع التردد.
-### أجهزة مراقبة نبض القلب
-ترسم نبضة القلب السليمة الشكل الصاعد الهابط نفسه مرارًا وتكرارًا، وأي تغير مفاجئ في ذلك الدور غالبًا أول إشارة يرصدها الجهاز.
+### النماذج الموسمية
-### النغمات الموسيقية والموجات الصوتية
-النغمة الموسيقية ضغط هواء يتذبذب بنمط دوري، ودورها هو ما يحدد النغمة التي تسمعها.
+يمكن للنموذج الدوري تمثيل جزء متكرر من التغير الموسمي، مع بقاء فروق بينه وبين القياسات الفعلية.
diff --git a/content/lessons/functions/periodic-functions/en.md b/content/lessons/functions/periodic-functions/en.md
index 6c1cfb8e..4f912c79 100644
--- a/content/lessons/functions/periodic-functions/en.md
+++ b/content/lessons/functions/periodic-functions/en.md
@@ -1,72 +1,71 @@
---
title: Periodic functions
-summary: >-
- Some functions never settle down and never run off to infinity either —
- they just repeat, forever, like daylight hours through the year or the
- beat of a heart.
+summary: Describe a repeating pattern using its period, amplitude and middle value.
parameters:
- x: point x
- A: A — amplitude
- T: T — period
- D: D — midline
+ x: input x
+ A: amplitude A
+ T: period T
+ D: middle value D
variables:
- - the amplitude — how far the curve swings above and below its midline
- - the period — the length of x after which the whole pattern repeats
- - the midline — the height the curve swings evenly around
- - the input being dragged along the curve
- - the output, the curve's height at that input
+ - distance from the middle value to a peak
+ - input interval for one complete repeat
+ - middle value between the highest and lowest outputs
+ - input position, such as elapsed time
+ - output at the selected position
---
## Try it
-1. Drag the point x slowly across the whole graph. Watch the curve rise and fall, rise and fall — the same shape over and over.
-2. Shrink the slider «T — period» down. The repeats squeeze closer together; the same wave now happens more often.
-3. Raise «D — midline» or «A — amplitude» and watch the whole wave shift up or stretch taller, while it keeps repeating at exactly the same rate.
+1. Set A to 3, T to 4 and D to 6. At x = 0 and x = 4, the output is 9. At x = 2 it is 3.
+2. Change T to 2. The same rise-and-fall pattern now fits into an input interval of 2 instead of 4.
+3. Keep T fixed and change A or D. A changes the distance from the middle to the peaks; D moves the whole wave vertically.
## Real-life examples
-1. **Daylight hours through the year.** In a mid-latitude city, daylight length follows A=4, D=12, T=12 (months): hovering around 12 hours, swinging up to 16 in summer and down to 8 in winter, repeating every 12 months.
-2. **Ocean tides.** Tide height follows A=1.2, D=1.5, T=12.4 (hours): rising and falling around a 1.5 m average every 12.4 hours, the real rhythm the moon drives.
-3. **A heartbeat trace.** A heart monitor's pulse follows A=1, D=0, T=0.8 (seconds): one full up-and-down sweep every 0.8 seconds, about 75 beats a minute.
+1. **A seasonal illustration.** A = 4, D = 12 and T = 12 give values between 8 and 16, repeating every 12 input units. This could illustrate daylight hours, with month zero chosen at a maximum; it is not a city's measured daylight record.
+2. **A tide-like illustration.** A = 1.2, D = 1.5 and T = 12.4 give heights from 0.3 to 2.7. This is a single repeating component, not a complete tide prediction.
+3. **A repeating signal.** A = 1, D = 0 and T = 0.8 give one cycle every 0.8 seconds, or 75 cycles per minute. The cosine is not the shape of an actual heartbeat trace.
## Test yourself
-1. Match the daylight example: set the period to 12 and the amplitude to 4.
-2. Make the curve repeat faster than once per unit — a period under 1 — while keeping the midline below 2.
-3. Make the curve's highest point reach exactly 16.
+1. Set T to about 12 and A to about 4, each within 0.3 of its target.
+2. Make T less than 1 and D less than 2.
+3. Make the highest output, A + D, within 0.3 of 16.
## Intuition
-In a mid-latitude city, daylight lasts about 12 hours on average, climbing to 16 hours at the height of summer and dropping to 8 in the depth of winter, then doing it all again the next year. That whole yearly rhythm is one curve here: drag the point x from month 0 across to month 12 and back, and its height traces exactly that rise and fall, landing on the same height at month 12 that it started at month 0 — one full repeat.
+A pattern is periodic if the same input step reproduces all its outputs. In the default wave, moving four units to the right brings you to the same height, wherever you start. Those four units make one period. Matching just one pair of points is not enough; the whole pattern must repeat.
-Any two points on the curve exactly «T — period» apart always sit at the same height, no matter where you start counting — that is what it means for a curve to repeat. Shrink T and the whole wave compresses, packing its rise-and-fall into a shorter stretch, the way a resting heart's steady beat repeats roughly every 0.8 seconds compared to a slow, 12.4-hour tide; raise or lower «A — amplitude» and «D — midline» instead and the wave grows taller or shifts up and down without changing how often it repeats at all.
+The middle value is 6. Peaks are at 9 and troughs at 3, so each lies 3 units from the middle. That distance is the amplitude. The full peak-to-trough distance is 6, twice the amplitude.
+
+Changing the period changes how closely the repeats are spaced. Changing the amplitude changes their height. Changing the middle value raises or lowers them together. These controls let you separate three features that can otherwise look like one complicated change.
## Formal
-A function is periodic when repeating the same step in its input, $T$, always gives back the same output: $f(x+T) = f(x)$ for every $x$. The smallest such $T$ greater than zero is called the period.
+A positive T is a period when $f(x+T)=f(x)$ for every input in the domain. If there is a smallest positive period, it is called the fundamental period.
-For $f(x) = A\cos\left(\frac{2\pi x}{T}\right) + D$, the period is exactly $T$, the amplitude $A$ sets how far the curve swings above and below its midline, and $D$ is that midline itself — all three readable straight off the graph.
+For $f(x)=A\cos(2\pi x/T)+D$ with A positive and T positive, the fundamental period is T, the amplitude is A, and the outputs range from D minus A to D plus A. The cosine begins at a maximum when x is zero.
## Advanced
-Real repeating signals are rarely this clean — tides really follow two overlapping periods, one lunar and one solar, and a heartbeat's timing drifts slightly from beat to beat — but a single sine or cosine like this one is the basic building block. Stacking several of them at different periods and amplitudes, a technique called a Fourier series, can approximate almost any repeating shape, however jagged.
+A constant function repeats after every positive shift and has no smallest positive period. More complicated repeating signals can be expressed or approximated by combinations of sine and cosine components under suitable conditions. A single cosine is a model component, not an exact description of every natural cycle.
## Derivation
-1. Step the input forward by one whole period: $f(x+T) = A\cos\left(\frac{2\pi(x+T)}{T}\right)+D$, and the fraction inside splits apart into $\frac{2\pi x}{T} + 2\pi$.
-2. Cosine repeats every full turn of the circle, so adding $2\pi$ inside it changes nothing: $\cos(\theta+2\pi) = \cos\theta$.
-3. That extra $2\pi$ simply vanishes, leaving $f(x+T) = f(x)$ — stepping forward by $T$ always lands back on the same output.
+1. Replace x by x + T. The angle inside the cosine increases by one full turn, or two pi radians.
+2. Cosine has the same value after adding a full turn.
+3. The output therefore returns to f(x), proving that T is a period.
## Real world
-### Daylight through the seasons
-Day length rises and falls once a year in a smooth curve, driven by Earth's tilt as it orbits the sun.
+### Rotating motion
+
+The height of a point on a wheel rotating at constant speed follows a sinusoidal pattern relative to the wheel's centre.
+
+### Sound
-### Ocean tides
-Tide height rises and falls roughly every 12.4 hours, driven by the pull of the moon as Earth spins beneath it.
+A repeating pressure signal has a frequency equal to the number of cycles per second. Shorter periods mean higher frequency.
-### Heart rate monitors
-A healthy heartbeat traces the same up-and-down shape again and again, and a sudden change in that period is often the first sign a monitor flags.
+### Seasonal models
-### Musical notes and sound waves
-A musical note is air pressure oscillating in a periodic pattern; the period sets the pitch you hear.
+A periodic model can represent a recurring seasonal component, while the actual observations can differ from it.
diff --git a/content/lessons/functions/piecewise-and-absolute-value/ar.md b/content/lessons/functions/piecewise-and-absolute-value/ar.md
index f5799690..e5af4a8f 100644
--- a/content/lessons/functions/piecewise-and-absolute-value/ar.md
+++ b/content/lessons/functions/piecewise-and-absolute-value/ar.md
@@ -1,68 +1,72 @@
---
-title: الدوال المجزّأة والقيمة المطلقة
-summary: >-
- قاعدة لجزء من الأرقام وقاعدة للباقي. هذا شكل أجرة التاكسي وشرائح الضريبة.
+title: الدوال المتعددة التعريف والقيمة المطلقة
+summary: اختر قاعدة مختلفة لكل جزء من المدخلات، واستخدم الفكرة لفهم القيمة المطلقة.
parameters:
- x: المسافة x
- a: a — أين يتغيّر المعدل
- p: p — المعدل قبل a
- q: q — المعدل بعد a
- c: c — رسم البداية
+ x: المدخل x
+ a: موضع تغير القاعدة a
+ p: الميل قبل a
+ q: الميل من a فصاعدًا
+ c: الثابت في القاعدة الأولى
variables:
- - المدخل، وفي التاكسي هو المسافة المقطوعة
- - المسافة التي يتغيّر عندها المعدل
- - المعدل المفروض قبل a
- - المعدل المفروض ابتداءً من a
- - رسم البداية الثابت
+ - المدخل، مثل المسافة في مثال التسعير
+ - المدخل الذي تتغير عنده القاعدة
+ - ميل الجزء الأول
+ - ميل الجزء الثاني
+ - الحد الثابت في الجزء الأول
---
## Try it
-1. حرّك «x» عبر النقطة التي يتغيّر عندها اتجاه الخط، عند «a». يتغيّر الميل نفسه هناك، فهاتان قاعدتان مختلفتان متصلتان معًا.
-2. اجعل «p» يساوي −1 و«q» يساوي 1، مع «a» و«c» عند 0. يتحول الرسم إلى «V» بسيطة، وهذه هي |x| متنكرة.
-3. الآن ارفع «q» كثيرًا فوق «p». يصعد الجزء الثاني أسرع بكثير من الأول، كمعدل عقوبة حاد يبدأ بعد حد معيّن.
+1. اضبط a على 2 وp على 1 وq على 2 وc على 0. قارن x = 1 و2 و3. النواتج 1 و2 و4؛ بعد نقطة الوصل تضيف كل وحدة من المدخل 2 بدلًا من 1.
+2. اضبط a وc على 0 وp على -1 وq على 1. قارن x = -3 مع x = 3. كلاهما يعطي 3.
+3. اضبط p وq على 1. يشكل الجزآن خطًا مستقيمًا واحدًا؛ وجود قاعدتين لا يعني ظهور زاوية دائمًا.
## Real-life examples
-1. **أجرة تاكسي.** 1.5 لكل كم لأول a=4 كم، ثم 2.5 لكل كم بعدها، زائد رسم بداية قدره 2. رحلة 6 كم تكلف 1.5×4 + 2 + 2.5×2 = 13.
-2. **شريحة ضريبية.** نسبة 10% حتى a=5 وحدات من الدخل، ثم 25% فوق ذلك. على دخل قدره 8 وحدات، لا يُفرض المعدل الأعلى إلا على الجزء الذي تجاوز 5.
-3. **القيمة المطلقة |x|.** اجعل المعدل قبل النقطة −1 والمعدل بعدها 1، بلا إزاحة. يلتقي القطعتان المستقيمتان عند نقطة الأصل ويرسمان «V» تامة. عند x=−3 يكون الناتج 3، أي |−3| بالضبط.
+1. **أجرة افتراضية.** نبدأ برسوم قدرها 2، ثم 1.5 لكل كيلومتر في أول 4 كم، و2.5 لكل كيلومتر إضافي. تكلفة رحلة طولها 6 كم هي 2 + 6 + 5 = 13.
+2. **نسبتان افتراضيتان.** نحسب 10% على أول 5 وحدات، ثم 25% على الوحدات الثلاث التالية. إجمالي الرسوم على 8 وحدات هو 0.50 + 0.75 = 1.25. هذه نسب تدريبية، وليست نظامًا ضريبيًا.
+3. **البعد عن الصفر.** عند a = 0 وc = 0 وp = -1 وq = 1، يعطي x = -3 الناتج 3. هذه هي القيمة المطلقة للعدد -3.
## Test yourself
-1. جد p وq وa وc وx بحيث تكون الأجرة عند x=6 تساوي 13 بالضبط.
-2. حوّل الرسم إلى «V» بسيطة مركزها نقطة الأصل. هذه هي دالة القيمة المطلقة متنكرة.
-3. اجعل المعدل بعد a ضعف المعدل قبلها بالضبط، وكلاهما موجب.
+1. اختر المعاملات والمدخل ليكون الناتج نحو 13.
+2. اضبط p على -1 وq على 1 وa وc على 0 للحصول على القيمة المطلقة.
+3. اختر ميلين موجبين، بحيث يكون q ضعف p بفارق أقل من 0.05.
## Intuition
-عدّاد التاكسي لا يفرض المعدل نفسه طوال الرحلة. الكيلومترات الأولى أرخص، ثم يرتفع المعدل. هذا بالضبط ما يرسمه هذا المنحنى، قطعتان مستقيمتان متصلتان عند النقطة «a» حيث تتبدل القاعدة. اسحب النقطة عبر «a» وراقب اتجاه الخط يتغيّر فعلًا، مع أنه لا توجد فجوة ولا قفزة في الارتفاع. تكلفة الرحلة لا تُصفَّر فجأة أبدًا، بل تبدأ فقط بالتصاعد بمعدل جديد.
+لنفترض أن خدمة توصيل تستخدم سعرًا لأول أربعة كيلومترات وسعرًا آخر لما بعدها. لحساب التكلفة، نحدد أولًا الجزء الذي تقع فيه المسافة. عندما نختار القاعدة بحسب قيمة المدخل، نحصل على دالة متعددة التعريف.
-ادفع «p» إلى −1 وارفع «q» إلى 1، مع بقاء «a» و«c» عند 0، ويحدث شيء لطيف. تصبح القطعتان صورتين متطابقتين بالانعكاس، تلتقيان عند نقطة الأصل في «V» حادة. تلك الـV هي دالة القيمة المطلقة، |x|، وهي قاعدة مجزّأة تقلب إشارة المدخلات السالبة وتترك الموجبة كما هي، لا أكثر.
+بعد نقطة التغيير، نحتفظ بالتكلفة المتراكمة ونطبق السعر الجديد على المسافة الإضافية فقط. لهذا يتصل الجزآن في الرسم دون قفزة. وقد يختلف ميلهما، فتظهر زاوية عند نقطة الوصل.
+
+القيمة المطلقة مثال آخر. إنها تعطينا البعد عن الصفر؛ فالعددان 3 و-3 يبتعدان عنه ثلاث وحدات. للمدخل السالب نعكس الإشارة، وللمدخل غير السالب نُبقي القيمة كما هي. يشكل الرسم حرف V، وتكون أدنى نقطة عند الصفر.
## Formal
-الدالة المجزّأة تُعرَّف بقاعدة مختلفة على كل جزء من مجالها: هنا $f(x) = px + c$ من أجل $x < a$، و$f(x) = f(a) + q(x-a)$ من أجل $x \ge a$، فتلتقي القطعتان عند $x = a$ بالضبط دون أي فجوة.
+القاعدة الأولى هي $f(x)=px+c$ عندما يكون $x-
- One rule for part of the input, another rule for the rest — the shape
- behind taxi fares, tax brackets, and the absolute value |x|.
+summary: Choose a different rule for each part of the input range, and use that idea to understand absolute value.
parameters:
- x: distance x
- a: a — where the rate changes
- p: p — rate before a
- q: q — rate after a
- c: c — starting fee
+ x: input x
+ a: rule-change point a
+ p: slope before a
+ q: slope from a onwards
+ c: constant in the first rule
variables:
- - the input — for a taxi, the distance travelled
- - the distance where the rate changes
- - the rate charged before a
- - the rate charged from a onward
- - the starting fee
+ - input, such as distance in a pricing example
+ - input where the rule changes
+ - slope on the first piece
+ - slope on the second piece
+ - constant term in the first piece
---
## Try it
-1. Drag «x» across the point where the line changes direction, at «a». The slope itself changes there — two different rules, stitched together.
-2. Set «p» to −1 and «q» to 1, with «a» and «c» at 0. The graph becomes a plain "V" — this is |x| in disguise.
-3. Now raise «q» far above «p». The second piece climbs much faster than the first — a steep penalty rate kicking in after a threshold.
+1. Set a to 2, p to 1, q to 2 and c to 0. Compare x = 1, 2 and 3. The outputs are 1, 2 and 4: after the join, each input unit adds 2 instead of 1.
+2. Set a and c to 0, p to -1 and q to 1. Compare x = -3 with x = 3. Both outputs are 3.
+3. Set p and q to 1. The two pieces form one straight line; using two rules does not always create a visible corner.
## Real-life examples
-1. **A taxi fare.** 1.5 per km for the first a=4 km, then 2.5 per km after that, plus a 2-unit starting fee: a 6 km ride costs 1.5×4 + 2 + 2.5×2 = 13.
-2. **A tax bracket.** A 10% rate up to a=5 units of income, then 25% above that: on 8 units of income, only the amount past 5 is taxed at the higher rate.
-3. **The absolute value, |x|.** Set the before-rate to −1 and the after-rate to 1, with no shift: the two straight pieces meet at the origin and form a perfect "V" — at x=−3 the output is 3, exactly |−3|.
+1. **An illustrative fare.** Charge 2 initially, then 1.5 per kilometre for the first 4 km and 2.5 per kilometre beyond that. A 6 km journey costs 2 + 6 + 5 = 13.
+2. **Two illustrative rates.** Charge 10% on the first 5 units and 25% on the next 3. The total charge on 8 units is 0.50 + 0.75 = 1.25. These are practice rates, not a tax policy.
+3. **Distance from zero.** With a = 0, c = 0, p = -1 and q = 1, the output at x = -3 is 3. This is the absolute value of -3.
## Test yourself
-1. Find p, q, a, c and x so the fare at x=6 comes out to exactly 13.
-2. Turn the graph into a plain "V" shape centred at the origin — that is the absolute value function in disguise.
-3. Make the rate after a exactly double the rate before it, with both rates positive.
+1. Choose parameters and an input so the output is about 13.
+2. Set p to -1, q to 1, and a and c to 0 to obtain absolute value.
+3. Choose positive slopes so q is twice p, within 0.05.
## Intuition
-A taxi meter does not charge the same rate the whole trip: the first few kilometres are cheaper, then the rate goes up. That is exactly what this graph draws — two straight pieces, stitched together at the point «a» where the rule switches. Drag the point across «a» and watch the direction the line is heading actually change, even though there is no gap or jump in height: the ride's total cost never suddenly resets, it simply starts climbing at a new rate.
+Suppose a delivery service uses one rate for the first four kilometres and another for the rest. To calculate the price, first check which part of the journey you are considering. A rule chosen according to the input is called a piecewise function.
-Push «p» down to −1 and «q» up to 1, with «a» and «c» both at 0, and something neat happens: the two pieces become mirror images of each other, meeting at the origin in a sharp "V". That V is the absolute value function, |x| — nothing more than a piecewise rule that flips the sign of negative inputs and leaves positive ones alone.
+After the change point, keep the amount already accumulated and add the new rate only for the extra distance. That is why the pieces in this diagram meet without a jump. Their slopes can differ, creating a corner.
+
+Absolute value is another piecewise rule. It gives distance from zero: 3 and -3 are both three units away. For negative inputs, change the sign; for nonnegative inputs, keep the value. The graph forms a V with its lowest point at zero.
## Formal
-A piecewise function is defined by a different rule on each part of its domain: here $f(x) = px + c$ for $x < a$, and $f(x) = f(a) + q(x-a)$ for $x \ge a$, so the two pieces meet exactly at $x = a$ with no gap.
+The first rule is $f(x)=px+c$ for $x-
- رقم واحد، الدرجة، يخبرك كم تلة ووادٍ في المنحنى وإلى أين يتجه طرفاه.
+title: شكل كثير الحدود
+summary: استخدم الدرجة والمعامل الرئيس لمعرفة اتجاه طرفي الرسم والحد الأعلى لعدد نقاط تحوله.
parameters:
- x: النقطة x
- n: n — الدرجة
- a: a — معامل الحد الأعلى
+ x: المدخل x
+ n: الدرجة المختارة n
+ a: المعامل الرئيس a
variables:
- - الدرجة، أعلى أُس في كثير الحدود، وهي الحد الأقصى لعدد التواءات المنحنى
- - معامل الحد الأعلى، إشارته تحدد الجهة التي يتجه إليها طرفا المنحنى البعيدان
- - المدخل الذي تسحبه على طول المنحنى
- - الناتج، ارتفاع المنحنى عند ذلك المدخل
+ - أعلى أس له معامل غير صفري؛ يساوي الدرجة المختارة عندما لا يكون a صفرًا
+ - معامل الحد ذي أعلى أس
+ - موضع المدخل
+ - ارتفاع الناتج
---
## Try it
-1. حرّك المنزلق «n — الدرجة» من 2 إلى 5. راقب المنحنى يكتسب التواءً إضافيًا مع كل خطوة. التواءة واحدة عند n=2، وأربع التواءات عند n=5.
-2. اقلب إشارة «a — معامل الحد الأعلى» من موجبة إلى سالبة. طرفا المنحنى يتبادلان الجهة التي يتجهان إليها.
-3. اسحب النقطة على طول المنحنى وراقبها تعبر المحور الأفقي. كل عبور جذر.
+1. أبقِ a عند 1 وغيّر n من 2 إلى 5. تظهر في هذه الأمثلة نقطة تحول ثم نقطتان ثم ثلاث ثم أربع. قد يكون لكثيرات حدود أخرى بالدرجات نفسها عدد أقل.
+2. اضبط n على 4 وقارن a = 1 مع a = -1. ينعكس الرسم رأسيًا، فيتغير اتجاه طرفيه.
+3. اضبط n على 5 واجعل x قريبًا من 1. يكون الناتج قريبًا من الصفر. عند a = 0 يصبح الرسم كله صفرًا، ولا يعود n وصفًا لدرجته.
## Real-life examples
-1. **تلة واحدة.** كفاءة وقود سيارة مقابل سرعتها ترتفع إلى قمة واحدة ثم تهبط (n=2، a=1). هذه التواءة واحدة فقط، أبسط شكل منحنٍ يمكن أن يكون.
-2. **التواءتان في يوم واحد.** حرارة يوم قد ترتفع، ثم تنخفض قليلًا عند ظل الظهيرة، ثم ترتفع من جديد قبل أن تهبط عند الغروب (n=3، a=-1، فيميل طرفه الأيمن البعيد إلى الأسفل). هاتان التواءتان بدل واحدة.
-3. **سلسلة جبلية وعرة.** ارتفاع مسار على سلسلة جبال يصعد، ينخفض، يصعد، ينخفض، ثم يصعد من جديد (n=5، a=1). هذه أربع التواءات، أقصى ما تسمح به هذه العائلة من المنحنيات، والنقطة x=1 تقع بالضبط على أحد عبوره الخمسة للصفر.
+1. **منحنى تربيعي له قاع.** عند n = 2 وa = 1، تكون القاعدة مربع x ناقص 4. قيمتها الصغرى -4 عند x = 0، وجذراها -2 و2.
+2. **منحنى تكعيبي له نقطتا تحول.** عند n = 3 وa = -1، تكون القاعدة سالب مكعب x زائد 3x. يرتفع طرفها الأيسر وينخفض طرفها الأيمن.
+3. **مثال من الدرجة الخامسة.** عند n = 5 وa = 1، تكون الجذور -2 و-1 و0 و1 و2. يتغير اتجاه الرسم أربع مرات بين هذه الجذور الخمسة.
## Test yourself
-1. اجعل الدرجة 4 مع معامل حد أعلى موجب، بحيث يتجه طرفا المنحنى كلاهما إلى الأعلى.
-2. اجعل الدرجة 3 مع معامل حد أعلى سالب، بحيث ينحدر الطرف الأيمن للمنحنى بدل أن يرتفع.
-3. اجعل الدرجة عند أعلى قيمة متاحة، وضع النقطة بالضبط عند x = 1، أحد جذور المنحنى.
+1. اضبط n على 4 واجعل a أكبر من 0.3.
+2. اضبط n على 3 واجعل a أصغر من -0.3.
+3. اضبط n على 5 واجعل x يبتعد عن 1 بأقل من 0.05. أبقِ a غير صفري لدراسة المثال من الدرجة الخامسة.
## Intuition
-مسار مشي على سلسلة جبال قد يصعد، ينخفض عند سرج بين قمتين، يصعد من جديد، ينخفض من جديد. كل انخفاض أو ارتفاع في الطريق التواءة. المنزلق «n — الدرجة» يضع سقفًا صارمًا لعدد التواءات منحنى كهذا. عند n=2 هناك متسع لالتواءة واحدة فقط، وهي القمة أو المنخفض المألوف في القطع المكافئ. وحين ترفع n إلى 5 يستطيع المنحنى أن يتلوّى حتى أربع مرات، صاعدًا وهابطًا عبر الرسم كتلك السلسلة الجبلية الوعرة.
+قد ينتقل الرسم من الصعود إلى الهبوط عند قمة، أو من الهبوط إلى الصعود عند قاع. نسمي كل تغير من هذا النوع نقطة تحول. تضع الدرجة حدًا أعلى لعدد نقاط التحول في كثير الحدود، لكنها لا تحدد العدد الفعلي وحدها.
-اسحب النقطة على طول المنحنى وراقب أين تعبر الخط الأفقي المستوي. كل عبور جذر، أي موضع يكون فيه ارتفاع المنحنى صفرًا بالضبط. اقلب إشارة «a — معامل الحد الأعلى» وانظر إلى طرفي المنحنى البعيدين بدل وسطه. عند درجة زوجية يتجه الطرفان الجهة نفسها. عند درجة فردية يصعد أحدهما بينما يهبط الآخر، مهما كان عدد الالتواءات بينهما.
+في الدالة التربيعية، أعلى أس هو 2، وتوجد نقطة تحول واحدة. الدالة التكعيبية درجتها 3، ويمكن أن يكون لها نقطتا تحول على الأكثر. بعض الدوال التكعيبية تواصل الزيادة ولا تملك أي نقطة تحول.
+
+يحدد الحد الرئيس ما يحدث بعيدًا إلى اليمين واليسار. عند الدرجة الزوجية، يتجه الطرفان في الاتجاه نفسه، وعند الدرجة الفردية يتعاكسان. تغيير إشارة المعامل الرئيس يعكس الاتجاهين. أما الجذر فهو أي مدخل يعطي صفرًا، سواء قطع الرسم المحور أم لامسه فقط.
## Formal
-كثير الحدود هو أي مجموع من أسّات صحيحة لـ $x$: $f(x) = a_n x^n + \dots + a_1 x + a_0$. درجته أعلى أُس $n$ يظهر بمعامل غير صفري، وهذا الرقم وحده يتحكم في شكل المنحنى كله.
+يُكتب كثير الحدود غير الصفري بالصورة $f(x)=a_nx^n+\dots+a_1x+a_0$، مع معامل رئيس غير صفري. درجته n، وله على الأكثر n جذور حقيقية مختلفة، وn ناقص 1 من نقاط التحول عندما تكون n واحدة أو أكثر.
-بعيدًا عن وسط الرسم لا يهم إلا الحد الأعلى $a x^n$. إن كانت $n$ زوجية يتجه طرفا المنحنى الجهة نفسها، إلى الأعلى حين $a > 0$، وإلى الأسفل حين $a < 0$. وإن كانت $n$ فردية يتجه الطرفان جهتين متعاكستين، أحدهما لأعلى والآخر لأسفل.
+يتحكم الحد الرئيس في سلوك الطرفين. إذا كان معامله موجبًا، يرتفع الطرف الأيمن، ويرتفع الأيسر للدرجة الزوجية وينخفض للدرجة الفردية. يعكس المعامل السالب الاتجاهين. وإذا أصبحت جميع المعاملات صفرًا، نحصل على كثير الحدود الصفري، ولا تكون درجته هي n الموجبة المختارة.
## Advanced
-عدد الالتواءات يساوي عدد المرات التي يغيّر فيها الميل إشارته، وميل كثير حدود من الدرجة $n$ هو نفسه كثير حدود من الدرجة $n-1$. هذه حقيقة من التفاضل تحصر الالتواءات في $n-1$ كحد أقصى، وإن كان المنحنى الفعلي قد يلتوي أقل من ذلك إذا تكررت بعض نقاط صفر الميل أو لم تتحقق أصلًا. كثيرات الحدود ذات الدرجة الفردية مضمون لها جذر حقيقي واحد على الأقل، لأن طرفيها يتجهان جهتين متعاكستين، وأي منحنى متصل ينتقل من تحت الصفر إلى فوقه لا بد أن يعبر الصفر في مكان ما. أما ذات الدرجة الزوجية فلا تحمل ضمانًا كهذا.
+تستلزم نقطة التحول مشتقة صفرية، لكن المشتقة الصفرية لا تعني بالضرورة وجود تحول. مشتقة كثير الحدود من الدرجة n درجتها n ناقص 1، ولذلك لها على الأكثر n ناقص 1 من الأصفار الحقيقية. من هنا نحصل على الحد الأعلى. عدّ الفراغات بين الجذور وحده لا يثبت حدًا أعلى لجميع نقاط التحول.
## Derivation
-1. كثير حدود من الدرجة $n$ يمكن أن يعبر الصفر، أي يملك جذرًا، $n$ مرة على الأكثر، لأنه ينحلّ إلى $n$ قطعة خطية على الأكثر.
-2. بين أي جذرين متتاليين لا بد أن يغادر المنحنى الصفر، يتجه جهة ما، ثم يعود، فيلتوي مرة واحدة على الأقل في كل فجوة بين الجذور.
-3. بما أن الجذور $n$ على الأكثر، فإن الفجوات بينها $n-1$ على الأكثر، فيكون للمنحنى $n-1$ التواءة على الأكثر في المجموع.
+1. اشتقاق كثير حدود من الدرجة n، حيث n واحدة أو أكثر، يعطي كثير حدود من الدرجة n ناقص 1.
+2. لهذه المشتقة غير الصفرية على الأكثر n ناقص 1 من الأصفار الحقيقية.
+3. تحتاج كل نقطة تحول إلى واحد من هذه الأصفار، فلا يتجاوز عددها n ناقص 1. وقد لا تنتج بعض الأصفار تحولًا.
## Real world
-### الأفعوانيات
-مسار الأفعوانية بتلاله ومنخفضاته منحنى له عدة التواءات، كل قمة أو حضيض فيه هزة يشعر بها الراكب في معدته.
+### ملاءمة منحنى للبيانات
+
+تحد الدرجة المختارة من مقدار انحناء النموذج. رفع الدرجة لا يجعل التنبؤات أكثر موثوقية بالضرورة.
+
+### تصميم مسار
-### مسارات المشي وتضاريس الأرض
-ارتفاع مسار على سلسلة جبال يصعد وينخفض مرارًا. كلما زادت الالتواءات ازداد المسار وعورة.
+يمكن لمقاطع من كثيرات الحدود وصف صعود وهبوط سلسين. تحدد المعاملات مواضع هذه الأجزاء وارتفاعاتها.
-### تقلبات أسعار الأسهم
-يمكن غالبًا مطابقة جزء قصير من مخطط سعر سهم بكثير حدود من درجة منخفضة له قمم ومنخفضات محلية قليلة.
+### إيجاد أفضل قيمة
-### طيّ صندوق من صفيحة مستوية
-حجم صندوق يُطوى من صفيحة مستوية، كدالة في حجم الطية، كثير حدود له قمة واحدة تخبرك بأفضل طية ممكنة.
+قد تكون نقاط تحول نموذج للمساحة أو الحجم مرشحة لأفضل قيمة. يجب أيضًا فحص المجال المناسب وحدوده.
diff --git a/content/lessons/functions/polynomial-shape/en.md b/content/lessons/functions/polynomial-shape/en.md
index 1928b79d..9f055e35 100644
--- a/content/lessons/functions/polynomial-shape/en.md
+++ b/content/lessons/functions/polynomial-shape/en.md
@@ -1,70 +1,69 @@
---
title: Polynomial shape
-summary: >-
- One number, the degree, sets a hard limit on how many hills and dips a
- curve can have and which way its ends point — before you plot a single
- point.
+summary: Use a polynomial's degree and leading coefficient to predict its ends and limit its number of turns.
parameters:
- x: point x
- n: n — degree
- a: a — leading coefficient
+ x: input x
+ n: selected degree n
+ a: leading coefficient a
variables:
- - the degree — the highest power in the polynomial, a hard limit on how many turns the curve can have
- - the leading coefficient — its sign decides which way the curve's far ends point
- - the input being dragged along the curve
- - the output, the curve's height at that input
+ - highest power with nonzero coefficient; the selected degree when a is nonzero
+ - coefficient of the highest power
+ - input position
+ - output height
---
## Try it
-1. Move the slider «n — degree» from 2 up to 5. Watch the curve grow more turns each step: one at n=2, up to four at n=5.
-2. Flip the sign of «a — leading coefficient» from positive to negative. The two ends of the curve swap which way they point.
-3. Drag the point along the curve and watch it cross the horizontal axis. Each crossing is a root.
+1. Keep a at 1 and change n from 2 through 5. These selected examples show one, two, three and four turning points. Other polynomials of the same degrees may show fewer.
+2. Set n to 4 and compare a = 1 with a = -1. The graph reflects vertically, changing the direction of both ends.
+3. Set n to 5 and x near 1. The output is near zero. At a = 0 the whole graph becomes zero, so the selected n no longer describes its degree.
## Real-life examples
-1. **A single hill.** A car's fuel efficiency against speed rises to one peak then falls (n=2, a=1): one turning point, the simplest curved shape there is.
-2. **A wiggle with two turns.** A day's temperature can climb, dip in some shade at noon, then climb again before falling at dusk (n=3, a=-1, so the far right end dives down): two turning points instead of one.
-3. **A bumpy ridge.** A hiking trail's elevation along a ridge climbs, dips, climbs, dips, and climbs again (n=5, a=1): four turning points, the most this curve family can show, and x=1 lands exactly on one of its five crossings of zero.
+1. **A quadratic valley.** With n = 2 and a = 1, the rule is x squared minus 4. It has a minimum of -4 at x = 0 and roots at -2 and 2.
+2. **A cubic with two turns.** With n = 3 and a = -1, the rule is negative x cubed plus 3x. Its left end rises and its right end falls.
+3. **A fifth-degree example.** With n = 5 and a = 1, the roots are -2, -1, 0, 1 and 2. The graph turns four times between those five roots.
## Test yourself
-1. Set the degree to 4 with a positive leading coefficient, so both ends of the curve point upward.
-2. Set the degree to 3 with a negative leading coefficient, so the curve's right end dives downward instead of rising.
-3. Set the degree to its highest option and land the point exactly on x = 1, one of the curve's roots.
+1. Set n to 4 and a above 0.3.
+2. Set n to 3 and a below -0.3.
+3. Set n to 5 and put x within 0.05 of 1. Keep a nonzero to inspect the intended fifth-degree example.
## Intuition
-A hiking trail along a ridge can climb, dip into a saddle, climb again, dip again — every dip or peak along the way is a turn. The slider «n — degree» sets a hard limit on how many turns a curve like this can have: at n=2 there is room for exactly one turn, the familiar single peak or dip of a parabola; push n up to 5 and the curve can wiggle through as many as four turns, climbing and dipping across the picture like that bumpy ridge.
+The graph can change from rising to falling at a peak, or from falling to rising at a valley. Each such change is a turning point. The degree places an upper limit on how many turns a polynomial can have; it does not fix their exact number.
-Drag the point along the curve and watch where it crosses the flat horizontal line — each crossing is a root, a place where the curve's height is exactly zero. Flip the sign of «a — leading coefficient» and look at the far left and right edges of the curve instead of the middle: with an even degree both edges swing the same way, while with an odd degree one edge climbs and the other dives, no matter how many wiggles happen in between.
+In a quadratic, the highest power is x squared, so the degree is 2 and there is one turning point. A cubic has degree 3 and can have at most two turns. Some cubics keep increasing throughout and have no turning points at all.
+
+The leading term determines what happens far to the left and right. With even degree, both ends go the same way. With odd degree, they go opposite ways. Changing the sign of the leading coefficient reverses those directions. A root is any input with output zero, whether the graph crosses the axis or only touches it.
## Formal
-A polynomial is any sum of whole-number powers of $x$: $f(x) = a_n x^n + \dots + a_1 x + a_0$. Its degree is the highest power $n$ that appears with a nonzero coefficient, and this single number controls the curve's whole shape.
+A nonzero polynomial has the form $f(x)=a_nx^n+\dots+a_1x+a_0$, with a nonzero leading coefficient. Its degree is n, and it has at most n distinct real roots and at most n minus 1 turning points for n at least 1.
-Far from the middle of the graph, only the leading term $a x^n$ matters. If $n$ is even, both ends of the curve point the same way — up when $a > 0$, down when $a < 0$. If $n$ is odd, the ends point opposite ways, one up and one down.
+The leading term controls end behaviour. For positive leading coefficient, the right end rises; the left end rises for even degree and falls for odd degree. A negative leading coefficient reverses both. Setting all coefficients to zero gives the zero polynomial, whose degree is not the selected positive n.
## Advanced
-The number of turning points equals the number of times the slope changes sign, and the slope of a degree-$n$ polynomial is itself a polynomial of degree $n-1$ — a fact from calculus that bounds the turns at exactly $n-1$, though a real curve can turn fewer times if some of those slope-zero points repeat or never materialise. Odd-degree polynomials are guaranteed at least one real root, since their two ends point in opposite directions and a continuous curve going from below zero to above zero must cross zero somewhere; even-degree polynomials carry no such guarantee.
+A turning point requires a zero derivative, but a zero derivative need not be a turn. The derivative of a degree-n polynomial has degree n minus 1 and therefore at most n minus 1 real zeros. This gives the bound. Counting gaps between roots alone does not prove an upper bound on all turns.
## Derivation
-1. A degree-$n$ polynomial can cross zero — have a root — at most $n$ times, since it factors into at most $n$ linear pieces.
-2. Between any two consecutive roots the curve must leave zero, go one way, and come back, so it turns around at least once in every gap between roots.
-3. With at most $n$ roots there are at most $n-1$ gaps between them, so the curve has at most $n-1$ turning points in total.
+1. Differentiating a degree-n polynomial with n at least 1 gives a polynomial of degree n minus 1.
+2. That nonzero derivative has at most n minus 1 real zeros.
+3. Every turning point requires one of those zeros, so there can be at most n minus 1 turning points. Some derivative zeros may not produce turns.
## Real world
-### Roller coasters
-A coaster's hill-and-dip layout is a curve with several turning points, each one a crest or a trough riders feel in their stomach.
+### Fitting a curve
+
+A chosen degree limits how much a polynomial fit can bend. A higher degree does not by itself make predictions more reliable.
+
+### Designing a profile
-### Hiking trails and terrain
-Elevation along a ridge trail climbs and dips repeatedly; the more turns the profile has, the bumpier the walk.
+Polynomial segments can describe smooth rises and dips. Their coefficients determine the locations and heights of those features.
-### Stock price swings
-A short stretch of a price chart can often be matched to a low-degree polynomial with a handful of local peaks and dips.
+### Finding an optimum
-### Folding a box from a flat sheet
-The volume of a box folded up from a flat sheet, as a function of the fold size, is a polynomial whose single peak tells you the most efficient fold.
+A polynomial model of area or volume can have turning points that are candidates for an optimum. The usable domain and its endpoints must also be considered.
diff --git a/content/lessons/functions/polynomial-shape/lesson.yaml b/content/lessons/functions/polynomial-shape/lesson.yaml
index 37bc2191..13d8d350 100644
--- a/content/lessons/functions/polynomial-shape/lesson.yaml
+++ b/content/lessons/functions/polynomial-shape/lesson.yaml
@@ -47,9 +47,9 @@ variables:
- x
- f(x)
derivation:
- - \text{a degree-}n\text{ polynomial crosses zero at most } n \text{ times}
- - \text{between two consecutive crossings the curve must turn back at least once}
- - \text{so the curve has at most } n-1 \text{ turns}
+ - '\deg f = n \ge 1 \;\Rightarrow\; \deg f\prime = n-1'
+ - 'f\prime(x)=0 \text{ has at most } n-1 \text{ real solutions}'
+ - '\text{turning points require } f\prime(x)=0 \;\Rightarrow\; \text{at most } n-1 \text{ turns}'
charts: []
primary: n
presets:
diff --git a/content/lessons/functions/quadratic-functions/ar.md b/content/lessons/functions/quadratic-functions/ar.md
index ece6085e..00a9450c 100644
--- a/content/lessons/functions/quadratic-functions/ar.md
+++ b/content/lessons/functions/quadratic-functions/ar.md
@@ -1,69 +1,70 @@
---
-title: دوال تربيعية بصيغة الرأس
-summary: >-
- اقرأ أعلى نقطة في القطع المكافئ من الصيغة مباشرة. هذا مسار كل كرة تُقذف.
+title: الدالة التربيعية بصيغة الرأس
+summary: حدد أعلى نقطة في القطع المكافئ أو أدناها مباشرة من معادلته.
parameters:
- x: النقطة x
- a: a — الانحناء
- h: h — أفقي الرأس
- k: k — ارتفاع الرأس
+ x: المدخل x
+ a: معامل التمدد الرأسي a؛ غير صفري للقطع المكافئ
+ h: موضع الرأس الأفقي h
+ k: ارتفاع الرأس k
variables:
- - مدى حدّة انحناء المنحنى، وهل يفتح إلى الأعلى (حوض) أو إلى الأسفل (قمة)
- - الموضع الأفقي لنقطة التحول
- - ارتفاع نقطة التحول
- - المدخل الذي تسحبه على طول المنحنى
+ - معامل التمدد الرأسي؛ تحدد إشارته اتجاه الفتحة
+ - الإحداثي الأفقي للرأس
+ - الإحداثي الرأسي للرأس
+ - موضع المدخل
---
## Try it
-1. حرّك النقطة على طول المنحنى. تصعد من جهة، تمر بالقمة، ثم تهبط من الجهة الأخرى. ارتفاعها هو قيمة الدالة f(x) عند تلك النقطة.
-2. حرّك المنزلق «h — أفقي الرأس» يمينًا ويسارًا. ينزلق المنحنى كله معه جانبيًا، ونقطة التحول تنزلق معه أيضًا.
-3. الآن اقلب إشارة «a — الانحناء» من سالبة إلى موجبة. تتحول القمة إلى حوض، لكن نقطة التحول تبقى بالضبط حيث يضعها h و k.
+1. اضبط a على -0.75 وh على 2 وk على 3. قارن x = 1 و2 و3. الارتفاعات 2.25 و3 و2.25، ويظهر التناظر حول x = 2.
+2. غيّر h إلى 4. يتحرك الرأس وحدتين يمينًا، ويبقى ارتفاعه 3.
+3. غيّر a إلى 0.75. يصبح الرأس نفسه أدنى نقطة. وعند a = 0، يتحول الرسم إلى خط أفقي بدل القطع المكافئ.
## Real-life examples
-1. **قذفة كرة سلة.** كرة تُقذف فيتبع ارتفاعها الصيغة f(x) = -0.75(x-2)² + 3 (a=-0.75، h=2، k=3). تبلغ الكرة أعلى ارتفاع لها 3 أمتار عند x=2 مترًا، ثم تعود إلى الأرض عند x=4.
-2. **حوض التزلج نصف الأنبوبي.** ارتفاع الحوض فوق قاعه المسطح يتبع f(x) = 0.3x² (a=0.3، h=0، k=0). أدنى نقطة تقع بالضبط في المنتصف، وينحني الجداران إلى الأعلى بالتساوي على الجانبين.
-3. **نافورة ماء.** الماء المندفع من فوهة يتبع f(x) = -0.4(x+3)² + 4 (a=-0.4، h=-3، k=4). يبلغ النفث أعلى ارتفاع 4 أمتار، على بعد 3 أمتار يسار موضع وقوفك.
+1. **قوس مثالي.** عند a = -0.75 وh = 2 وk = 3، تكون القيمة العظمى 3 عند x = 2. يصل المنحنى إلى الصفر عند x = 0 وx = 4.
+2. **نموذج لمنحدر.** عند a = 0.3 وh = 0 وk = 0، تقع أدنى نقطة عند الأصل. هذا نموذج قطع مكافئ لمنحدر، ولا يعني أن كل منحدر بهذا الشكل.
+3. **قوس مزاح.** عند a = -0.4 وh = -3 وk = 4، تقع أعلى نقطة عند (-3, 4). الإحداثي الأفقي السالب يعني يسار الأصل المختار.
## Test yourself
-1. اجعل المنحنى يفتح إلى الأعلى ونقطة تحوله عند ارتفاع 6.
-2. انقل نقطة التحول إلى h=-3 و k=4 بالضبط.
-3. اصنع منحنى يفتح إلى الأسفل يعود إلى ارتفاع صفر عند x=5 بالضبط.
+1. اختر a أكبر من 0.1 وk تبتعد عن 6 بأقل من 0.2.
+2. ضع الرأس عند h = -3 وk = 4. أبقِ a غير صفري ليكون الرسم قطعًا مكافئًا.
+3. اختر a أصغر من -0.1، واجعل الناتج عند x = 5 يبتعد عن الصفر بأقل من 0.3. لا يلزم نقل النقطة المختارة إلى 5 ليحسب الاختبار هذه القيمة.
## Intuition
-تخيل أنك ترمي كرة سلة نحو السلة. تغادر الكرة يدك، ترتفع، تبلغ أعلى نقطة، ثم تهبط. يمثل هذا الرسم تلك الرحلة كلها في منحنى واحد، وسحب النقطة البرتقالية عليه أشبه بمتابعة الكرة لحظة بلحظة، إذ يخبرك ارتفاعها عند أي نقطة x تقف عندها. أعلى نقطة تبلغها الكرة هنا، 3 أمتار، هي نقطة تحول المنحنى، وتقع بالضبط حيث يضعها المنزلقان «h» و«k»، على بعد مترين وبارتفاع 3 أمتار. لا حاجة لأي حل هنا. h و k يعطيانك القمة مباشرة.
+نبدأ بقاعدة «ربّع المدخل». أصغر ناتج هو صفر، ويحدث عند المدخل صفر. وتعطي المدخلات المتساوية في بعدها عن الصفر النتيجة نفسها؛ مثلًا، يعطي -2 و2 الناتج 4. ينتج عن ذلك منحنى متناظر يشبه الوعاء، يسمى القطع المكافئ.
-حرّك «h» وستجد القوس كله ينزلق جانبيًا، بقمته، من دون أن يتغير شكله. حرّك «k» فينزلق المنحنى كله صعودًا أو هبوطًا بدلًا من ذلك. اقلب إشارة «a» من سالبة إلى موجبة فتتحول القمة إلى حوض، وهو المنحنى نفسه الذي تحصل عليه من حوض تزلج بدل كرة مقذوفة، بينما تبقى نقطة التحول مثبتة عند h و k طوال الوقت. العدد a لا يتحكم إلا في حدّة انحناء المنحنى، ولا علاقة له أبدًا بموضع نقطة التحول.
+نربّع الآن x ناقص h بدلًا من x. يصبح المقدار المربع صفرًا عند x = h، فينتقل محور التناظر إلى هناك. ثم نضيف k لرفع جميع النواتج أو خفضها. تصبح نقطة التحول عند الموضع الأفقي h والارتفاع k.
+
+ضرب المقدار المربع في a موجب يبقي الفتحة إلى الأعلى. أما a السالب فيقلبها إلى الأسفل، فيصبح الرأس نقطة عظمى. كلما زادت القيمة المطلقة لـa، تغيرت الارتفاعات بسرعة أكبر بعيدًا عن الرأس. وإذا كان a صفرًا، يختفي الحد المربع ولا تبقى نقطة تحول وحيدة.
## Formal
-تكتب صيغة الرأس القطع المكافئ على الصورة $f(x) = a(x-h)^2 + k$. تقع نقطة تحوله، وتسمى الرأس، عند $(h, k)$، ويكون المنحنى متماثلًا حول الخط الرأسي $x = h$.
+صيغة الرأس هي $f(x)=a(x-h)^2+k$، بشرط أن يكون a غير صفري. الرأس هو $(h,k)$، ومحور التناظر هو $x=h$.
-إن كانت $a > 0$ فالرأس أدنى نقطة في المنحنى، وهي نهاية صغرى. وإن كانت $a < 0$ فهو أعلى نقطة فيه، وهي نهاية عظمى. في الحالتين، يحدد $|a|$ مدى حدة انحناء المنحنى بعيدًا عن الرأس.
+لأن المربع غير سالب، فإن a الموجب يجعل جميع النواتج أكبر من k أو مساوية لها. وa السالب يجعلها أصغر من k أو مساوية لها. تتحقق المساواة عند x = h في الحالتين.
## Advanced
-ترتبط صيغة الرأس بالصيغة العامة $f(x) = ax^2 + bx + c$ عبر $h = -\tfrac{b}{2a}$ و $k = c - \tfrac{b^2}{4a}$، فكلتاهما تصفان العائلة نفسها من المنحنيات بطريقتين مختلفتين. كل قطع مكافئ هو في الأساس نسخة مكبّرة ومُزاحة من $y = x^2$. صيغة الرأس هي التي تُظهر هذه الإزاحة صراحة بدل أن تُخفيها داخل b و c.
+عند كتابة الدالة بالصيغة العامة مع a غير صفري، يعطي إكمال المربع $h=-b/(2a)$ و$k=c-b^2/(4a)$. هذه هي الدالة نفسها بصيغة توضح نقطة التحول. وقد يستخدم التفسير الواقعي جزءًا محدودًا من الرسم فقط.
## Derivation
-1. تربيع أي عدد حقيقي لا يمكن أن يعطي نتيجة سالبة أبدًا، فـ $(x-h)^2$ صفر أو موجب مهما كانت قيمة $x$.
-2. حين تكون $a$ موجبة، يبقى الضرب بها محافظًا على هذه الحقيقة: تكون $a(x-h)^2$ أصغر ما يمكن، أي $0$، فقط حين $x=h$.
-3. إضافة $k$ تزيح كل واحدة من تلك القيم لأعلى بمقدار $k$، فأصغر ناتج يمكن أن تعطيه $f(x)$ هو بالضبط $k$، ويتحقق عند $x=h$. (إذا كانت $a$ سالبة ينعكس المنطق نفسه: يصبح $k$ أكبر ناتج بدلًا من ذلك.)
+1. مربع x ناقص h غير سالب، ويساوي صفرًا فقط عندما يساوي x القيمة h.
+2. الضرب في a موجب يحافظ على اتجاه المتباينة.
+3. إضافة k تجعل القيمة الصغرى k عند x = h. وإذا كان a سالبًا، نعكس اتجاه المتباينة فنحصل على قيمة عظمى بدلًا منها.
## Real world
-### الرياضة والأجسام المقذوفة
-كرة أو سهم أو رمح في الهواء يتبع قطعًا مكافئًا يفتح إلى الأسفل، وصيغة الرأس تعطيك أعلى ارتفاع يبلغه ولحظة حدوثه مباشرة.
+### المسار المثالي للمقذوف
+
+عند ثبات الجاذبية وإهمال مقاومة الهواء، يمكن تمثيل الارتفاع مقابل الموضع الأفقي بقطع مكافئ. يحدد الرأس أعلى نقطة في هذا المسار المثالي.
+
+### تصميم الأشكال
-### حدائق التزلج ومنحدراته
-مقطع حوض التزلج نصف الأنبوبي قطع مكافئ يفتح إلى الأعلى، ورأسه أدنى نقطة يمر بها المتزلجون.
+يوفر المقطع المكافئ شكلًا متناظرًا بمركز وعمق محددين. تتيح صيغة الرأس ضبطهما مباشرة.
-### النوافير ونفثات الماء
-كل نفث من فوهة نافورة يتبع قوسه المكافئ الخاص، ويبلغ أعلى ارتفاع وأبعد مسافة بحسب ضغط الماء وزاويته.
+### نماذج التحسين
-### كوابل الجسور المعلّقة
-يهبط الكابل الرئيسي لجسر معلّق إلى أدنى نقطة عند منتصف الامتداد، ثم يرتفع نحو كل برج في منحنى قريب من القطع المكافئ.
+إذا كان النموذج تربيعيًا، تحدد صيغة الرأس قيمته العظمى أو الصغرى دون قيود. نتحقق بعد ذلك من وقوع الرأس داخل مجال الاستخدام.
diff --git a/content/lessons/functions/quadratic-functions/en.md b/content/lessons/functions/quadratic-functions/en.md
index 4032ea59..9f0547c1 100644
--- a/content/lessons/functions/quadratic-functions/en.md
+++ b/content/lessons/functions/quadratic-functions/en.md
@@ -1,70 +1,70 @@
---
title: Quadratic functions in vertex form
-summary: >-
- Read a parabola's peak or dip straight off the formula, no algebra needed —
- the same shape that traces a thrown ball's path through the air.
+summary: Locate a parabola's highest or lowest point directly from its equation.
parameters:
- x: point x
- a: a — curvature
- h: h — vertex x
- k: k — vertex height
+ x: input x
+ a: vertical scale a (nonzero for a parabola)
+ h: vertex horizontal position h
+ k: vertex height k
variables:
- - how sharply the curve bends, and whether it opens upward (a dip) or downward (a peak)
- - the horizontal position of the turning point
- - the height of the turning point
- - the input being dragged along the curve
+ - vertical scaling coefficient; its sign chooses upward or downward opening
+ - horizontal coordinate of the vertex
+ - vertical coordinate of the vertex
+ - input position
---
## Try it
-1. Drag the point along the curve. It slides up one side, over the top, and down the other — its height is f(x) at that x.
-2. Move the slider «h — vertex x» left and right. The whole curve slides sideways with it, turning point and all.
-3. Now flip the sign of «a — curvature» from negative to positive. The curve flips from a peak to a dip, but the turning point stays exactly where h and k put it.
+1. Set a to -0.75, h to 2 and k to 3. Compare x = 1, 2 and 3. The heights are 2.25, 3 and 2.25, showing symmetry around x = 2.
+2. Change h to 4. The vertex moves two units right and its height remains 3.
+3. Change a to 0.75. The same vertex is now the lowest point. At a = 0, the graph becomes a horizontal line instead of a parabola.
## Real-life examples
-1. **A basketball's arc.** Thrown so its height follows f(x) = -0.75(x-2)² + 3 (a=-0.75, h=2, k=3): the ball peaks 3 metres up at x=2 metres out, then falls back to the ground at x=4.
-2. **A skateboard half-pipe.** The ramp's height above its flat bottom follows f(x) = 0.3x² (a=0.3, h=0, k=0): the lowest point sits right at the centre, and the walls curve up evenly on both sides.
-3. **A fountain jet.** Water shot from a nozzle follows f(x) = -0.4(x+3)² + 4 (a=-0.4, h=-3, k=4): the jet peaks 4 metres up, 3 metres to the left of where you're standing.
+1. **An idealized arc.** With a = -0.75, h = 2 and k = 3, the maximum is 3 at x = 2. The curve reaches zero at x = 0 and x = 4.
+2. **A model ramp.** With a = 0.3, h = 0 and k = 0, the minimum is at the origin. This is a parabolic ramp model, not a claim that every ramp has this profile.
+3. **A shifted arc.** With a = -0.4, h = -3 and k = 4, the maximum is at (-3, 4). The negative horizontal coordinate means left of the chosen origin.
## Test yourself
-1. Make the curve open upward with its turning point sitting at height 6.
-2. Move the turning point to exactly (h=-3, k=4).
-3. Make a downward-opening curve that comes back down to height 0 exactly at x=5.
+1. Choose a above 0.1 and k within 0.2 of 6.
+2. Put the vertex at h = -3 and k = 4. Keep a nonzero for a parabola.
+3. Choose a below -0.1 and make the output at x = 5 within 0.3 of zero. You do not need to move the selected point to x = 5 for the checker to evaluate it.
## Intuition
-Picture shooting a basketball at the hoop: the ball leaves your hand, climbs, peaks, then drops. On this graph that whole flight is one curve, and dragging the orange point along it is like following the ball frame by frame — its height above the ground is f(x) at whatever x you land on. The single highest point the ball reaches, 3 metres up here, is the curve's turning point, and it sits exactly where the sliders «h» and «k» put it: 2 metres out, 3 metres high. No solving required — h and k hand you the peak directly.
+Start with the rule “square the input.” Its smallest output is zero, reached at input zero. Inputs equally far from zero give the same answer: -2 and 2 both give 4. This creates the symmetric bowl-shaped graph called a parabola.
-Now drag «h» itself and watch the whole arc slide sideways, peak and all, without changing its shape. Drag «k» and it slides straight up or down instead. Flip the sign of «a» from negative to positive and the peak turns into a dip — the same curve you'd get from a skateboard ramp instead of a thrown ball — while the turning point stays locked to h and k the entire time. The number a only ever controls how sharply the curve bends, never where its turning point sits.
+Now square x minus h instead. The squared quantity becomes zero at x = h, moving the centre of symmetry there. Add k to raise or lower every output. The turning point is now at horizontal position h and height k.
+
+Multiplying the squared quantity by a positive a keeps the bowl opening upwards. A negative a turns it downwards, making the vertex a maximum. Larger absolute values of a make outputs change more sharply away from the vertex. If a is zero, the squared term disappears and there is no unique turning point.
## Formal
-Vertex form writes a quadratic as $f(x) = a(x-h)^2 + k$. Its turning point, called the vertex, sits at $(h, k)$, and the curve is symmetric about the vertical line $x = h$.
+Vertex form is $f(x)=a(x-h)^2+k$, with a nonzero. The vertex is $(h,k)$, and the symmetry axis is $x=h$.
-If $a > 0$ the vertex is the curve's lowest point (a minimum); if $a < 0$ it is the highest point (a maximum). Either way, $|a|$ sets how steeply the curve bends away from the vertex.
+Because a square is nonnegative, positive a makes every output at least k, while negative a makes every output at most k. Equality occurs at x = h in either case.
## Advanced
-Vertex form connects to the more familiar $f(x) = ax^2 + bx + c$ by $h = -\tfrac{b}{2a}$ and $k = c - \tfrac{b^2}{4a}$ — the two are the same family of curves, just parametrised differently. Every parabola is, underneath, a scaled and shifted copy of $y = x^2$: vertex form makes that shift explicit instead of leaving it buried inside $b$ and $c$.
+For standard form with nonzero a, completing the square gives $h=-b/(2a)$ and $k=c-b^2/(4a)$. This is the same function in a form that makes the turning point explicit. A physical interpretation may use only a restricted portion of its graph.
## Derivation
-1. Squaring a real number never gives a negative result, so $(x-h)^2$ is zero or positive for every $x$.
-2. When $a$ is positive, multiplying by it keeps that fact true: $a(x-h)^2$ is smallest, exactly $0$, only when $x=h$.
-3. Adding $k$ shifts every one of those values up by $k$, so the smallest output $f(x)$ can give is exactly $k$, reached at $x=h$. (When $a$ is negative the same argument flips: $k$ becomes the largest output instead.)
+1. The square of x minus h is nonnegative and is zero exactly when x equals h.
+2. Multiplication by positive a preserves that inequality.
+3. Adding k gives a minimum of k at x = h. With negative a, reverse the inequality to obtain a maximum instead.
## Real world
-### Sports and thrown objects
-A ball, arrow, or javelin in flight traces a downward-opening parabola, and vertex form hands you its peak height and the moment it happens directly.
+### Ideal projectile paths
+
+With constant gravity and negligible air resistance, height as a function of horizontal position can be parabolic. The vertex locates the maximum within that idealized trajectory.
+
+### Design profiles
-### Skate parks and ramps
-A half-pipe's cross-section is an upward-opening parabola, its vertex the lowest point riders swoop through.
+A parabolic profile gives a symmetric curve with a specified centre and depth. Vertex form lets the designer set those directly.
-### Fountains and water jets
-Each stream from a fountain nozzle follows its own parabolic arc, peaking at a height and distance set by the water pressure and angle.
+### Optimization models
-### Suspension bridge cables
-The main cable of a suspension bridge sags to its lowest point at the centre span, then rises toward each tower in a curve close to a parabola.
+When a model is quadratic, vertex form identifies its unrestricted maximum or minimum. Check whether the vertex lies inside the usable domain.
diff --git a/content/lessons/functions/rational-functions-and-asymptotes/ar.md b/content/lessons/functions/rational-functions-and-asymptotes/ar.md
index d18438ff..56f8ae3d 100644
--- a/content/lessons/functions/rational-functions-and-asymptotes/ar.md
+++ b/content/lessons/functions/rational-functions-and-asymptotes/ar.md
@@ -1,69 +1,70 @@
---
-title: الدوال الكسرية والمقاربات
-summary: >-
- اقسم على عدد يقترب من الصفر فتقفز النتيجة خارج الشاشة. هذا شكل تكلفة الوحدة قرب حد الآلة.
+title: الدوال النسبية وخطوط التقارب
+summary: استكشف القيم قرب مقام صفري، وميّز بين خط التقارب والثقب القابل للإزالة.
parameters:
- x: النقطة x
- a: a — الارتفاع البعيد
- b: b — إزاحة البسط
- p: p — نقطة الانكسار
+ x: المدخل x
+ a: الارتفاع الذي يقترب منه الرسم a
+ b: ثابت البسط b
+ p: المدخل المستبعد p
variables:
- - الارتفاع الذي يستقر عنده المنحنى كلما ابتعدت x في أي اتجاه — المقارب الأفقي
- - يزيح مسار المنحنى بالتحديد من غير أن يحرك أيًا من المقاربين
- - الموضع الذي ينكسر عنده المنحنى — المدخل الوحيد الذي لا يقدر المنحنى أن يستعمله — المقارب الرأسي
- - المدخل الذي تسحبه على طول المنحنى
+ - القيمة التي تقترب منها الدالة بعيدًا إلى اليمين واليسار
+ - ثابت البسط؛ يحدد مع a وp هل يحدث اختصار أم لا
+ - المدخل المستبعد؛ يكون خط تقارب رأسيًا فقط إذا لم يختصر العامل المسبب له
+ - موضع المدخل المختار
---
## Try it
-1. اسحب النقطة x ببطء نحو قيمة المنزلق «p — نقطة الانكسار». راقب ارتفاعها يقفز خارج أعلى الرسم أو أسفله كلما اقترب x. أنت تقسم على عدد يسابق نحو الصفر.
-2. اسحب x بدلًا من ذلك بعيدًا إلى اليمين، نحو حافة الرسم. المنحنى يستوي ويقترب من ارتفاع واحد، يحدده «a — الارتفاع البعيد»، من غير أن يلمسه أبدًا.
-3. حرّك «b — إزاحة البسط» صعودًا أو هبوطًا. يتغير مسار المنحنى بالتحديد، لكن لا نقطة الانكسار p ولا الارتفاع البعيد a يتغيران.
+1. اضبط a على 2 وb على 1 وp على 2. قرّب x من 2 دون مساواتها به. تكبر القيمة المطلقة للناتج؛ استخدم القراءة العددية حين يخرج عن نافذة الرسم.
+2. قارن x = 4 مع x = 8 بالمعاملات نفسها. القيمتان 4.5 ونحو 2.83 تقتربان من الارتفاع 2.
+3. اضبط b على -4 وأبقِ a = 2 وp = 2. يعطي كل مدخل مسموح الناتج 2، لكن x = 2 يبقى مستبعدًا. هذا ثقب، وليس تزايدًا غير محدود، وقد لا يضع الرسم علامة واضحة للثقب.
## Real-life examples
-1. **آلة تقترب من حدّها.** تكلفة الوحدة تتبع f(x) = (2x+1)/(x-2) (a=2، b=1، p=2). قرب معدل إنتاج قدره 2 وحدات تتعطل الآلة وترتفع تكلفة الوحدة بشدة. بعيدًا عن ذلك الحد تستقر التكلفة قرب دولارين للوحدة.
-2. **دواء يتلاشى من الدم.** التركيز يتبع f(x) = 6/(x+2) (a=0، b=6، p=-2). مع مرور الزمن x ينخفض المستوى نحو الصفر، وهو الخط المستوي الذي يقترب منه دومًا من غير أن يبلغه أبدًا.
-3. **سرعة كتابة تقترب من حدّها.** الكلمات في الدقيقة تتبع f(x) = (x+2)/(x+3) (a=1، b=2، p=-3). مع أيام تدريب أكثر x تقترب السرعة من أفضل مستوى شخصي، ونقطة الانكسار في هذا النموذج تقع بأمان قبل اليوم صفر.
+1. **دالة ذات فرعين.** عند a = 2 وb = 1 وp = 2، تكون القاعدة 2 زائد 5 مقسومة على x ناقص 2. عند x = -1، يكون الناتج ثلثًا.
+2. **نسبة متناقصة.** عند a = 0 وb = 6 وp = -2، تكون القاعدة 6 مقسومة على x زائد 2. يعطي x = 0 الناتج 3، وتخفض زيادة x الناتج باتجاه الصفر.
+3. **الاقتراب من الواحد.** عند a = 1 وb = 2 وp = -3، تكون القاعدة 1 ناقص 1 مقسومة على x زائد 3. للمدخلات غير السالبة، تزيد القيمة مقتربة من 1 من الأسفل.
## Test yourself
-1. قرّب النقطة من نقطة الانكسار حتى يتجاوز حجم الناتج 50.
-2. اجعل الارتفاع البعيد صفرًا بالضبط، وهي حالة الدواء المتلاشي، مع إبقاء منحنى حقيقي (b أكبر من 1).
-3. انقل نقطة الانكسار إلى x = -3 بالضبط.
+1. اختر مدخلًا مسموحًا يختلف فيه x عن p، بحيث تتجاوز القيمة المطلقة للناتج 50.
+2. اضبط a على 0 واجعل b أكبر من 1، ليكون خط التقارب الأفقي عند الصفر.
+3. اضبط p على -3. أبقِ b + ap غير صفري إذا أردت خط تقارب رأسيًا هناك بدل الثقب.
## Intuition
-تكلفة الوحدة في مصنع ترتفع كلما اقترب الإنتاج من حدّ الآلة. شغّلها بمعدل أقل بكثير من الحد فتستقر التكلفة قرب دولارين ثابتين. قرّب الإنتاج أكثر فأكثر من ذلك الحد، وترتفع تكلفة الوحدة بشدة. الآلة تجهد أكثر فأكثر في كل وحدة إضافية، والمنحنى على الشاشة يقفز خارج أعلى الرسم ليُظهر ذلك. اسحب النقطة x نحو المنزلق «p — نقطة الانكسار» وراقب هذا يحدث مباشرة. كلما اقترب x ارتفعت القفزة أكثر، لأنك تقسم على عدد ينزلق نحو الصفر.
+قسمة 5 على 1 تعطي 5. وقسمتها على 0.1 تعطي 50، وعلى 0.01 تعطي 500. عندما نقسم بسطًا ثابتًا غير صفري على مقام يقترب من الصفر، تكبر القيمة المطلقة للناتج. وتتحدد الإشارة بحسب اقتراب المقام من الجهة الموجبة أو السالبة.
-اسحب x الآن في الاتجاه المعاكس، بعيدًا نحو الحافة اليمنى من الرسم. بدل أن يقفز المنحنى، يستوي ويقترب من الارتفاع الذي يحدده «a — الارتفاع البعيد» من غير أن يلمسه أبدًا. هذا هو الشكل نفسه الذي يرسمه مستوى دواء في الدم وهو يتلاشى نحو الصفر مع الزمن، يقترب دومًا لكنه لا يختفي تمامًا أبدًا. حرّك «b — إزاحة البسط» فيتغير مسار المنحنى بالتحديد، لكن هذين الحدّين، نقطة الانكسار والارتفاع البعيد، لا يتحركان إطلاقًا.
+يمكن كتابة القاعدة هنا كثابت a مضاف إليه كسر. قرب x = p، قد يكبر هذا الكسر دون حد، فيظهر خط تقارب رأسي. وبعيدًا عن p، تكبر القيمة المطلقة للمقام، فيقترب الكسر من الصفر ويقترب الناتج من a.
+
+هناك استثناء يمكنك تجربته. إذا كان بسط الكسر المتبقي صفرًا واختُصر العامل كله، يبقى الناتج a لكل مدخل مسموح. يظل المقام الأصلي يمنع x = p، فتظهر نقطة مفقودة بدل خط تقارب. المقام الصفري وحده لا يضمن تزايدًا غير محدود.
## Formal
-الدالة الكسرية هي تعبير مقسوم على آخر: هنا $f(x) = \dfrac{ax+b}{x-p}$. هي معرّفة في كل مكان إلا عند $x = p$، لأن القسمة على $0$ غير مسموحة. تلك النقطة الغائبة هي المقارب الرأسي، المدخل الوحيد الذي لا يقدر المنحنى أن يستعمله أبدًا.
+للدالة $f(x)=(ax+b)/(x-p)$، يستبعد المجال x = p. نعيد كتابتها بالصورة $f(x)=a+(b+ap)/(x-p)$. إذا كان b + ap غير صفر، يكون x = p خط تقارب رأسيًا. وإلا تساوي الدالة a على مجالها كله، مع ثقب قابل للإزالة عند p.
-كلما ابتعدت $x$ يمينًا أو يسارًا، ينكمش الجزء الزائد من الكسر نحو $0$ وتستقر $f(x)$ عند $a$. هذا هو المقارب الأفقي، ارتفاع يقترب منه المنحنى دومًا من غير أن يلمسه أبدًا.
+عندما يتجه x إلى ما لا نهاية الموجبة أو السالبة، تكون $f(x)\to a$. هذا الارتفاع هو خط التقارب الأفقي. عمومًا، يمكن للرسم أن يقطع خط تقارب أفقيًا؛ فالاسم يصف سلوكه بعيدًا، ولا يعني حاجزًا لا يمكن عبوره.
## Advanced
-بالنسبة لنسبة عامة بين كثيري حدود $P(x)/Q(x)$، يقارن المقارب الأفقي درجتيهما. إن كانت $\deg P < \deg Q$ فهو $y=0$. وإن تساوت الدرجتان فهو نسبة معاملي الحدّ الأعلى، وهو بالضبط $a$ في العائلة أعلاه. وإن كانت $\deg P > \deg Q$ فلا يوجد مقارب أفقي على الإطلاق، وأحيانًا يوجد مقارب مائل بدلًا منه. أما المقاربات الرأسية فتقع عند جذور $Q$ الحقيقية التي ليست جذورًا لـ $P$ أيضًا. وإذا اشتركا في جذر واحد يبقى مجرد ثقب صغير من غير أي انفلات.
+عند دراسة نسبة كثيري حدود قرب مدخل مستبعد، نختصر العوامل المشتركة مع الاحتفاظ بقيود المجال الأصلية. لا يعطي الجذر المشترك ثقبًا إلا إذا أزال الاختصار جميع عوامل المقام التي تصفر عنده. وجود عامل متبقٍ في المقام قد يبقي خط تقارب رأسيًا.
## Derivation
-1. افصل الكسر إلى جزء صحيح وبقية صغيرة: $\dfrac{ax+b}{x-p} = a + \dfrac{b+ap}{x-p}$، وهذا لا يعدو أن يكون $a$ زائد كسرًا أصغر.
-2. كلما اقترب $x$ من $p$ ينكمش مقام تلك البقية نحو $0$، فيكبر حجمها من غير حدود: $\left|\dfrac{b+ap}{x-p}\right| \to \infty$.
-3. وكلما كبر $x$ كثيرًا في أي من الاتجاهين، تنكمش البقية نفسها نحو $0$ بدلًا من ذلك، فتبقى $f(x) \to a$.
+1. نكتب البسط على صورة a مضروبة في x ناقص p، مع الباقي b + ap. تعطينا القسمة الجزء الثابت والكسر المتبقي.
+2. نفترض أن b + ap غير صفر. عندما يقترب x من p، يقترب المقام المتبقي من الصفر وتكبر القيمة المطلقة دون حد.
+3. عندما يكبر x، يقترب الكسر المتبقي من الصفر، فتقترب الدالة من a.
## Real world
-### حركية الدواء في الجسم
-يتلاشى تركيز الدواء في الدم نحو مستوى خلفي مع الزمن، بالشكل الاستقراري نفسه الذي يرسمه المقارب الأفقي.
+### متوسط التكلفة
+
+توزيع تكلفة تأسيس ثابتة على x من القطع يضيف إلى تكلفة القطعة مقدارًا متناسبًا مع 1/x. عند x الموجب، يصغر هذا المقدار كلما زاد عدد القطع.
+
+### زمن قطع مسافة ثابتة
-### الازدحام المروري قرب السعة القصوى
-يرتفع متوسط التأخير لكل سيارة بشدة كلما اقترب حجم المرور من سعة الطريق القصوى، فينفلت تمامًا كارتفاع التكلفة قرب حد الآلة.
+الزمن يساوي المسافة مقسومة على السرعة. عندما تقترب السرعة الموجبة من الصفر، يزيد الزمن دون حد في هذا النموذج المثالي.
-### متوسط تكلفة الوحدة
-توزيع تكلفة ثابتة للتأسيس على وحدات أكثر يجعل متوسط تكلفة الوحدة يهبط نحو التكلفة الصافية للوحدة، وهو مقارب أفقي متنكر.
+### فحص المعادلات
-### قوة إشارة الهوائي
-تتأرجح قوة الإشارة بشدة عند منطقة ميتة قرب جهاز الاستقبال، لكنها تستقر عند مستوى ثابت بعيدًا عنها.
+قبل تفسير المقام الصفري على أنه حد فيزيائي، افحص الاختصار ومجال الاستخدام وافتراضات المعادلة.
diff --git a/content/lessons/functions/rational-functions-and-asymptotes/en.md b/content/lessons/functions/rational-functions-and-asymptotes/en.md
index 6c24d8e3..6eaac42b 100644
--- a/content/lessons/functions/rational-functions-and-asymptotes/en.md
+++ b/content/lessons/functions/rational-functions-and-asymptotes/en.md
@@ -1,71 +1,70 @@
---
title: Rational functions and asymptotes
-summary: >-
- Divide by a number that's racing toward zero and the answer rockets off
- the screen — the same runaway behind a machine's cost per unit near its
- breaking point, or a drug's level fading toward nothing.
+summary: Explore values near a zero denominator and distinguish an asymptote from a removable hole.
parameters:
- x: point x
- a: a — far-away height
- b: b — numerator shift
- p: p — break point
+ x: input x
+ a: limiting height a
+ b: numerator constant b
+ p: excluded input p
variables:
- - how high the curve settles as x runs far in either direction — the horizontal asymptote
- - shifts the curve's exact path without moving either asymptote
- - where the curve breaks apart — the one input the curve can never use — the vertical asymptote
- - the input being dragged along the curve
+ - limiting value as x becomes large in either direction
+ - numerator constant; together with a and p determines whether cancellation occurs
+ - excluded input; a vertical asymptote only when the numerator does not cancel
+ - chosen input position
---
## Try it
-1. Drag the point x slowly toward the slider value of «p — break point». Watch its height shoot off the top or bottom of the graph as x gets close: you're dividing by a number racing toward zero.
-2. Drag x far to the right instead, off toward the edge of the graph. The curve flattens and creeps toward one height, set by «a — far-away height», without ever quite touching it.
-3. Move «b — numerator shift» up or down. The curve's exact path bends differently, but neither the break point p nor the flat height a change at all.
+1. Set a to 2, b to 1 and p to 2. Move x near 2 without making it equal to 2. The output grows large in magnitude; use the readout when it leaves the graph window.
+2. Compare x = 4 and x = 8 with the same parameters. The values 4.5 and about 2.83 are approaching the limiting height 2.
+3. Set b to -4, keeping a = 2 and p = 2. Every allowed input now gives 2, but x = 2 is still excluded. This is a hole, not a vertical blow-up; the plot may not mark the hole visibly.
## Real-life examples
-1. **A machine nearing its limit.** Cost per unit follows f(x) = (2x+1)/(x-2) (a=2, b=1, p=2): near a production rate of 2 units the machine grinds to a halt and cost per unit rockets upward; far from that limit, cost settles near 2 dollars per unit.
-2. **A drug fading from the blood.** Concentration follows f(x) = 6/(x+2) (a=0, b=6, p=-2): as time x passes, the level drops toward zero, the flat line it keeps approaching but never quite reaches.
-3. **Typing speed nearing a limit.** Words-per-minute follows f(x) = (x+2)/(x+3) (a=1, b=2, p=-3): with more practice days x, speed creeps toward a personal best, and the model's break point sits safely before day zero.
+1. **A function with two branches.** At a = 2, b = 1 and p = 2, the rule is 2 plus 5 divided by x minus 2. At x = -1 the output is one third.
+2. **A decreasing ratio.** At a = 0, b = 6 and p = -2, the rule is 6 divided by x plus 2. Starting at x = 0 gives 3, and increasing x decreases the output towards zero.
+3. **Approaching one.** At a = 1, b = 2 and p = -3, the rule is 1 minus 1 divided by x plus 3. For nonnegative x it rises towards 1 from below.
## Test yourself
-1. Push the point close enough to the break point that the output's size passes 50.
-2. Flatten the far-away height to exactly zero — the drug-fading case — while keeping a genuine curve (b greater than 1).
-3. Move the break point to exactly x = -3.
+1. Choose an allowed input, with x different from p, so the output's absolute value exceeds 50.
+2. Set a to 0 and b above 1, giving a horizontal asymptote at zero.
+3. Set p to -3. Keep b + ap nonzero if you want a vertical asymptote there rather than a hole.
## Intuition
-A factory's cost per unit climbs as production nears a machine's limit: run it at a rate far below the limit and cost per unit sits near a steady 2 dollars. Push production closer and closer to that limit, though, and cost per unit rockets — the machine is straining harder and harder for each extra unit, and the curve on screen shoots off the top of the graph to show it. Drag the point x toward the slider «p — break point» and watch this happen directly: the closer x gets, the taller the spike, because you're dividing by a number sliding toward zero.
+Dividing 5 by 1 gives 5. Dividing it by 0.1 gives 50, and by 0.01 gives 500. A fixed nonzero numerator divided by a denominator approaching zero produces increasingly large magnitudes. The sign depends on which side of zero the denominator is on.
-Now drag x the other way, far off toward the right edge of the graph. Instead of spiking, the curve settles down and flattens, creeping toward the height set by «a — far-away height» without ever quite touching it — the same shape a drug's blood level traces as it fades toward zero over time, always getting closer but never fully gone. Move «b — numerator shift» and the curve's exact path changes, but neither of those two limits, the break point or the flat height, moves at all.
+The rule here can be written as a constant a plus a fraction. Near x = p, that fraction can become very large, producing a vertical asymptote. Far from p, its denominator becomes large in magnitude, so the fraction tends to zero and the output approaches a.
+
+There is an exception worth trying. If the fraction's numerator is also zero and cancels completely, the output stays at a for every allowed input. The original denominator still excludes x = p, leaving a missing point instead of an asymptote. A zero denominator alone does not guarantee a blow-up.
## Formal
-A rational function is one expression divided by another: here $f(x) = \dfrac{ax+b}{x-p}$. It is defined everywhere except $x = p$, since dividing by $0$ is not allowed — that missing point is the vertical asymptote, the one input the curve can never use.
+For $f(x)=(ax+b)/(x-p)$, the domain excludes x = p. Rewriting gives $f(x)=a+(b+ap)/(x-p)$. If b + ap is nonzero, x = p is a vertical asymptote; otherwise the function equals a everywhere in its domain and has a removable hole at p.
-As $x$ runs far to the left or far to the right, the fraction's extra part shrinks toward $0$ and $f(x)$ settles toward $a$ — the horizontal asymptote, a height the curve keeps approaching but never quite touches.
+As x tends to either positive or negative infinity, $f(x)\to a$. This limiting height is the horizontal asymptote. In general, a graph can cross a horizontal asymptote; the word describes its behaviour far away, not an uncrossable boundary.
## Advanced
-For a general ratio of polynomials $P(x)/Q(x)$, the horizontal asymptote compares their degrees: if $\deg P < \deg Q$ it is $y=0$; if the degrees are equal it is the ratio of the leading coefficients (exactly $a$ in the family above); if $\deg P > \deg Q$ there is no horizontal asymptote, sometimes a slanted one instead. Vertical asymptotes sit at the real roots of $Q$ that are not also roots of $P$ — a shared root instead leaves a single missing point, a hole, with no blow-up.
+For a ratio of polynomials, cancel common factors when studying behaviour near excluded inputs, while keeping track of the original exclusions. A shared root gives a hole only if cancellation removes every denominator factor at that root. Any remaining denominator zero can still produce a vertical asymptote.
## Derivation
-1. Split the fraction into a whole part and a leftover piece: $\dfrac{ax+b}{x-p} = a + \dfrac{b+ap}{x-p}$, which is just $a$ plus a smaller fraction.
-2. As $x$ gets close to $p$, that leftover fraction's denominator shrinks toward $0$, so its size grows without bound: $\left|\dfrac{b+ap}{x-p}\right| \to \infty$.
-3. As $x$ grows very large in either direction, that same leftover fraction shrinks toward $0$ instead, leaving $f(x) \to a$.
+1. Write the numerator as a times x minus p, plus the remainder b + ap. Dividing gives the constant part and the leftover fraction.
+2. Assume b + ap is nonzero. As x approaches p, the leftover denominator approaches zero and the magnitude grows without bound.
+3. As x becomes large, the leftover fraction tends to zero, so the output tends to a.
## Real world
-### Pharmacokinetics
-A drug's concentration in the blood fades toward a background level over time, the same settling shape as a horizontal asymptote.
+### Average cost
+
+A fixed setup cost divided among x items adds a term proportional to 1/x to the per-item cost. With positive x, it shrinks as more items share the setup cost.
+
+### Fixed-distance travel
-### Traffic near capacity
-Average delay per car rises sharply as traffic volume nears a road's capacity, blowing up much like cost near a machine's limit.
+Time for a fixed distance equals distance divided by speed. As positive speed approaches zero, the time grows without bound in this idealized model.
-### Average cost per unit
-Spreading a fixed setup cost over more units makes the average cost per unit fall toward the pure per-unit cost, a horizontal asymptote in disguise.
+### Checking formulas
-### Antenna signal strength
-Signal strength swings wildly right at a receiver's dead zone but settles to a steady baseline far from it.
+Before interpreting a zero denominator as a physical limit, examine cancellation, the usable domain and the assumptions behind the formula.
diff --git a/content/lessons/functions/rational-functions-and-asymptotes/lesson.yaml b/content/lessons/functions/rational-functions-and-asymptotes/lesson.yaml
index dbf0bb1c..31676e32 100644
--- a/content/lessons/functions/rational-functions-and-asymptotes/lesson.yaml
+++ b/content/lessons/functions/rational-functions-and-asymptotes/lesson.yaml
@@ -52,7 +52,7 @@ variables:
- x
derivation:
- f(x) = \frac{ax+b}{x-p} = a + \frac{b+ap}{x-p}
- - x \to p \;\Rightarrow\; \left|\frac{b+ap}{x-p}\right| \to \infty
+ - b+ap \ne 0,\ x \to p \;\Rightarrow\; \left|\frac{b+ap}{x-p}\right| \to \infty
- x \to \infty \;\Rightarrow\; \frac{b+ap}{x-p} \to 0 \;\Rightarrow\; f(x) \to a
charts: []
primary: p
diff --git a/content/lessons/functions/transformations-of-graphs/ar.md b/content/lessons/functions/transformations-of-graphs/ar.md
index e846901a..2a4878f6 100644
--- a/content/lessons/functions/transformations-of-graphs/ar.md
+++ b/content/lessons/functions/transformations-of-graphs/ar.md
@@ -1,68 +1,72 @@
---
-title: تحويلات الرسم البياني
-summary: >-
- أزح المنحنى أو امدده أو اقلبه بأربع حركات. الحيل نفسها وراء مقبض الصوت والصورة المعكوسة.
+title: تحويلات الرسوم البيانية
+summary: افهم كيف يؤدي تغيير المدخل أو الناتج إلى إزاحة الرسم أو تمديده أو عكسه.
parameters:
- x: النقطة x
- k: k — تمدد رأسي أو انقلاب
- h: h — إزاحة أفقية
- s: s — تمدد أفقي أو انقلاب
- d: d — إزاحة رأسية
+ x: المدخل x
+ k: معامل ضرب الناتج k
+ h: الإزاحة الأفقية h
+ s: معامل ضرب المدخل s
+ d: الإزاحة الرأسية d
variables:
- - النقطة التي تسحبها على المنحنى
- - مقدار تمدد المنحنى رأسيًا، أي قمم أعلى وقيعان أعمق، وقيمة سالبة تقلبه رأسًا على عقب
- - مقدار إزاحة المنحنى جانبيًا، وقيمة موجبة تحركه إلى اليمين
- - مقدار انضغاط المنحنى أفقيًا، فقيمة أكبر تكرر الموجة أسرع، وقيمة سالبة تقلبه يمينًا ويسارًا
- - مقدار إزاحة المنحنى كله إلى الأعلى أو الأسفل
+ - موضع المدخل
+ - معامل الناتج؛ تحدد قيمته المطلقة السعة، وتحدد إشارته الانعكاس الرأسي
+ - الإزاحة الأفقية للنمط بعد التحويل
+ - معامل المدخل؛ زيادة قيمته المطلقة تضغط النمط أفقيًا
+ - المقدار المضاف إلى كل ناتج
---
## Try it
-1. ارفع «d». يرتفع المنحنى كله، فكل نقطة تصعد بالمقدار نفسه، ولا يتغيّر شيء آخر.
-2. الآن حرّك «h». ينزلق المنحنى جانبيًا دون أن يتغيّر شكله. ما كان يحدث عند نقطة معينة من x يحدث الآن لاحقًا.
-3. ادفع «k» إلى قيمة سالبة. ينقلب المنحنى رأسًا على عقب، فكل قمة تصبح قاعًا وكل قاع يصبح قمة.
+1. اضبط k = 1 وh = 0 وs = 1 وd = 0. ثم ارفع d إلى 2. يزيد كل ارتفاع بمقدار 2.
+2. أبقِ هذه القيم وارفع h إلى 2. تتحرك الموجة وحدتين يمينًا، وتبقى سعتها ودورتها كما هما.
+3. اضبط k على -2 وd على 0. تنعكس الموجة رأسيًا وتصبح سعتها 2. ثم اضبط s على 2 لتقليل طول الدورة إلى النصف.
## Real-life examples
-1. **درجة حرارة مدينة يوميًا.** الموجة البسيطة (k=1، h=0، s=1، d=0) تتأرجح بالمقدار نفسه فوق متوسطها وتحته، بلا رفع ولا تأخير.
-2. **مدينة أشد حرارة، الإيقاع نفسه.** مضاعفة التأرجح ورفع المتوسط (k=2، d=3) تجعل كل درجة حرارة أشد تطرفًا وأدفأ عمومًا، بينما يبقى توقيت الحر والبرد كما هو تمامًا.
-3. **نصف الكرة المقابل، دورة أبطأ.** قلب الموجة (k=-1) يبدّل الشتاء بالصيف، وإزاحتها (h=2) تؤخّر الدورة كلها، وتمددها أفقيًا (s=0.5) يجعل كل فصل يدوم ضعف المدة.
+1. **الموجة الأصلية.** عند k = 1 وh = 0 وs = 1 وd = 0، تكون القاعدة جيب x، وتتراوح قيمها من -1 إلى 1.
+2. **إشارة أكبر ومرفوعة.** عند k = 2 وd = 3، مع h = 0 وs = 1، يتراوح الناتج من 1 إلى 5. ولا يتغير طول الدورة.
+3. **عدة تغييرات معًا.** عند k = -1 وh = 2 وs = 0.5 وd = -1، تنعكس الموجة وتتحرك وحدتين يمينًا ووحدة إلى الأسفل، ويصبح طول دورتها ضعف الأصل.
## Test yourself
-1. ارفع المنحنى حتى تلامس أدنى نقطة فيه المحور الأفقي بالضبط.
-2. اقلب المنحنى رأسًا على عقب ومدّده حتى تصل قمته إلى ضعف ارتفاعها الأصلي.
-3. اضغط المنحنى أفقيًا حتى يكمل موجة كاملة بضعف السرعة الأصلية.
+1. اجعل d مساويًا للقيمة المطلقة لـk، مع إبقاء k وs غير صفريين، لتكون القيمة الصغرى صفرًا.
+2. اضبط k على -2. يعكس ذلك الموجة ويضاعف بعدها عن قيمتها الوسطى؛ ويبقى ارتفاع القمة الفعلي معتمدًا على d.
+3. اجعل القيمة المطلقة لـs تساوي 2، مع إبقاء k غير صفري، لتقليل الدورة الأصلية إلى النصف.
## Intuition
-ترتفع درجة حرارة مدينة وتنخفض كل يوم في موجة متكررة. ابدأ بالموجة البسيطة على الشاشة. تتأرجح بالمقدار نفسه فوق الصفر وتحته، مرارًا وتكرارًا. حرّك «d» فيرتفع المنحنى كله. كل نقطة ترتفع بالمقدار نفسه، لأنك أضفت رقمًا ثابتًا إلى كل ناتج. هذا بالضبط ما تفعله إضافة ثابت خارج القاعدة دائمًا. تتحرك الصورة كلها إلى الأعلى أو الأسفل، دون أن يتغيّر شكلها على الإطلاق.
+نبدأ بموجة جيبية تتراوح ارتفاعاتها من -1 إلى 1. إضافة 2 إلى كل ناتج تجعل المدى من 1 إلى 3. ولا يتغير موضع حدوث القمم. التغيير بعد حساب الدالة يؤثر في ارتفاعات نواتجها.
-الآن حرّك «h» بدلًا منها. تنزلق الموجة يمينًا أو يسارًا دون أن تتمدد أو تنقلب، لأنك تغيّر ما يدخل القاعدة قبل أن تعمل، فينزلق الخط الزمني للناتج كله ليطابق ذلك. ادفع «k» إلى قيمة سالبة فينقلب المنحنى من الأعلى إلى الأسفل. كل نقطة عالية تصبح منخفضة. ادفع «s» فوق 1 فتنضغط الموجة أفقيًا وتتكرر أسرع، لأنك تمدد المدخل نفسه قبل أن تراه القاعدة أصلًا.
+أما تغيير المدخل فيعمل بصورة مختلفة. لنقل الموجة وحدتين يمينًا، نحسب الدالة الأصلية عند x ناقص 2. ما كان يحدث عند الصفر يحدث الآن عند اثنين. ولجعل النمط يتكرر مرتين خلال المسافة نفسها، نضرب هذا المدخل المزاح في 2.
+
+يضرب المنزلق k الناتج قبل إضافة الإزاحة الرأسية d. إذا كان k سالبًا، تنعكس الموجة حول خطها الأوسط. ويضرب s المدخل؛ قيمته المطلقة الأكبر تضغط الرسم أفقيًا، والأصغر غير الصفرية تمدده. أما القيمة صفر فتحول المثال الجيبي إلى دالة ثابتة، ولا تمثل تمددًا عاديًا.
## Formal
-لدالة أساس $f$ وثوابت $k, h, s, d$، تغطي العائلة $g(x) = k \cdot f\big(s(x-h)\big) + d$ كل إزاحة وتمدد وانقلاب لـ $f$: $d$ تزيح رأسيًا، $h$ تزيح أفقيًا، $k$ تمدد الناتج وتقلبه إن كانت سالبة، و$s$ تمدد المدخل وتقلبه يمينًا ويسارًا إن كانت سالبة.
+لدالة أصلية f، تكون القاعدة المحولة $g(x)=k f(s(x-h))+d$. عندما لا يكون s صفرًا، تنتقل نقطة مدخلها الأصلي u إلى الموضع الأفقي h زائد u مقسومة على s. ويصبح ارتفاعها k مضروبة في الارتفاع الأصلي ثم مضافًا إليه d.
-إضافة ثابت خارج $f$ تحرك كل ناتج. إضافته داخلها، إلى $x$، تحرك كل مدخل بدلًا من ذلك، ولهذا تزيح $f(x)+d$ و$f(x+h)$ الرسم في اتجاهين يبدوان متعاكسين على المحور الأفقي.
+الدالة الأصلية هنا هي الجيب. عندما لا يكون k وs صفرًا، تكون السعة $|k|$، والقيمة الوسطى d، وطول الدورة $2\pi/|s|$. يمتد المدى من d ناقص القيمة المطلقة لـk إلى d زائدها. وإذا كان k أو s صفرًا، يكون الناتج الثابت d.
## Advanced
-هذه التحويلات الأربعة تولّد كامل زمرة التغييرات الأفينية على متغيّر رسم $f$. تركيب عدة تحويلات منها بترتيب مختلف قد يعطي نتائج مختلفة كلما اجتمع تحويل أفقي مع رأسي، إذ إن تمدد المدخل بـ $s$ قبل الإزاحة ليس التحويل نفسه الذي يزيح أولًا ثم يمدد.
+يهم ترتيب العمليات على الإحداثي نفسه؛ مضاعفة الناتج ثم إضافة 3 تختلف عن إضافة 3 ثم مضاعفته. أما التحويل الأفقي وحده والتحويل الرأسي وحده فيمكن تطبيقهما بأي ترتيب. لا تشمل هذه العمليات جميع تحويلات المستوى، مثل الدوران بزاوية عشوائية.
## Derivation
-1. غيّر ما يدخل أولًا: استبدل $x$ بـ $s(x-h)$ داخل $f$، فتزيحها بمقدار $h$ وتعيد تحجيمها بمقدار $s$.
-2. اضرب الناتج كله في $k$، فيتمدد الناتج وينقلب إن كانت $k$ سالبة.
-3. أضف $d$ إلى ما تبقى، فتزيح المنحنى كله إلى الأعلى أو الأسفل.
+1. نستبدل المدخل الأصلي بحاصل ضرب s في x ناقص h. يحدد ذلك الموضع الأفقي والتمدد والانعكاس.
+2. نضرب الناتج في k لتمديده رأسيًا وعكسه إذا كان k سالبًا.
+3. نضيف d لإزاحة كل ناتج رأسيًا بالمقدار نفسه.
## Real world
-### هندسة الصوت
-مقابض النغمة والصوت تمدد موجة صوتية أفقيًا (النغمة) ورأسيًا (الصوت) دون أن يتغيّر شكلها الأساسي.
+### الإشارات
+
+ضرب قيم الإشارة يغير سعتها. وإضافة ثابت تغير خطها الأساسي.
+
+### التوقيت
+
+استبدال الزمن بالزمن ناقص مقدار تأخير ينقل النمط المسجل إلى وقت لاحق دون تغيير شكله.
-### الدورات الموسمية والمدّية
-تتكرر درجة الحرارة وساعات النهار والمدّ والجزر كلها بشكل يمكن إزاحته حسب المنطقة الزمنية، وتمديده حسب خط العرض، وقلبه بين نصفي الكرة.
+### مقارنة الرسوم
-### تحرير الصور والفيديو
-أدوات السطوع والتباين والانعكاس المرآتي تطبّق هذه التحويلات الأربعة نفسها على أرقام الصورة.
+تساعد محاذاة القيم الوسطى وتعديل المقاييس على مقارنة أنماط مقيسة بوحدات مختلفة. يجب توضيح هذه التحويلات عند تفسير النتيجة.
diff --git a/content/lessons/functions/transformations-of-graphs/en.md b/content/lessons/functions/transformations-of-graphs/en.md
index 8de30ae4..ae0a1224 100644
--- a/content/lessons/functions/transformations-of-graphs/en.md
+++ b/content/lessons/functions/transformations-of-graphs/en.md
@@ -1,69 +1,72 @@
---
title: Transformations of graphs
-summary: >-
- Shift, stretch and flip any curve with four simple moves — the same four
- tricks behind volume knobs, mirrored images, and shifted time zones.
+summary: Learn how changing a function's input or output shifts, stretches or reflects its graph.
parameters:
- x: point x
- k: k — vertical stretch/flip
- h: h — horizontal shift
- s: s — horizontal stretch/flip
- d: d — vertical shift
+ x: input x
+ k: output multiplier k
+ h: horizontal shift h
+ s: input multiplier s
+ d: vertical shift d
variables:
- - the input you drag along the curve
- - how much the curve is stretched vertically — taller peaks and deeper troughs; negative flips it upside down
- - how far the curve is shifted sideways — positive moves it to the right
- - how much the curve is squeezed sideways — larger values repeat the wave faster; negative flips it left-right
- - how far the whole curve is shifted up or down
+ - input position
+ - output multiplier; its absolute value sets amplitude, and its sign reflects vertically
+ - horizontal shift of the transformed pattern
+ - input multiplier; larger absolute values compress the pattern horizontally
+ - value added to every output
---
## Try it
-1. Drag «d» up. The whole curve lifts: every point moves up by the same amount, and nothing else changes.
-2. Now drag «h». The curve slides sideways without changing shape — what happened at one point in x now happens later.
-3. Push «k» negative. The curve flips upside down: every peak becomes a trough and every trough becomes a peak.
+1. Set k = 1, h = 0, s = 1 and d = 0. Then increase d to 2. Every height increases by 2.
+2. Keep those settings and increase h to 2. The wave moves two units right. Its amplitude and period stay the same.
+3. Set k to -2 and d to 0. The wave reflects vertically and its amplitude becomes 2. Then set s to 2 to halve the period.
## Real-life examples
-1. **A city's daily temperature.** The plain wave (k=1, h=0, s=1, d=0) swings evenly above and below its average, with no lift and no delay.
-2. **A hotter city, same rhythm.** Doubling the swing and lifting the average (k=2, d=3) makes every temperature both more extreme and warmer overall, while the timing of hot and cold stays exactly the same.
-3. **The opposite hemisphere, a slower cycle.** Flipping the wave (k=-1) swaps winter and summer, shifting it (h=2) delays the whole cycle, and stretching it sideways (s=0.5) makes each season last twice as long.
+1. **The original wave.** With k = 1, h = 0, s = 1 and d = 0, the rule is sine x, ranging from -1 to 1.
+2. **A larger, raised signal.** With k = 2 and d = 3, keeping h = 0 and s = 1, the output ranges from 1 to 5. Its period is unchanged.
+3. **Several changes together.** With k = -1, h = 2, s = 0.5 and d = -1, the wave is reflected, shifted right by 2 and down by 1, and has twice the original period.
## Test yourself
-1. Shift the curve up until its lowest point just touches the horizontal axis.
-2. Flip the curve upside down and stretch it so its peak reaches twice as high as the original.
-3. Squeeze the curve sideways until it completes a full wave twice as fast as the original.
+1. Set d equal to the absolute value of k, keeping k and s nonzero, so the minimum is zero.
+2. Set k to -2. This reflects and doubles the output relative to its middle value; d still controls the actual peak height.
+3. Make the absolute value of s equal to 2, keeping k nonzero, to halve the original period.
## Intuition
-A city's temperature rises and falls every day in a repeating wave. Start with the plain wave on screen: it swings the same amount above and below zero, over and over. Drag «d» and you lift the whole wave up — every single point rises by the same amount, because you added a fixed number to every output. That is what adding a constant outside the rule always does: move the whole picture up or down, without changing its shape at all.
+Begin with a sine wave whose heights range from -1 to 1. Adding 2 to every output moves the range to 1 through 3. Nothing changes about when its peaks occur. A change made after the function is evaluated changes its output heights.
-Now drag «h» instead. The wave slides left or right without stretching or flipping, because you are changing what goes in before the rule runs, so the whole output timeline shifts to match. Push «k» negative and the curve flips top to bottom: every high point becomes a low point. Push «s» past 1 and the wave squeezes sideways, repeating faster, because you are stretching the input itself before the rule ever sees it.
+Changing the input works differently. To move the wave two units right, evaluate the original function at x minus 2. What used to happen at input zero now happens at input two. To make the pattern repeat twice as often, multiply that shifted input by 2.
+
+The k control scales the output before adding the vertical shift d. A negative k reflects the wave about its middle line. The s control scales the input: larger absolute values squeeze the graph horizontally, and smaller nonzero absolute values stretch it. Zero values collapse this sine-wave example to a constant, rather than giving an ordinary stretch.
## Formal
-For a base function $f$ and constants $k, h, s, d$, the family $g(x) = k \cdot f\big(s(x-h)\big) + d$ covers every shift, stretch and flip of $f$: $d$ shifts vertically, $h$ shifts horizontally, $k$ scales the output and flips it if negative, and $s$ scales the input and flips it left-right if negative.
+For a base function f, the transformed rule is $g(x)=k f(s(x-h))+d$. With nonzero s, a point at input u of the original graph moves to horizontal position h plus u divided by s. Its new height is k times the old height plus d.
-Adding a constant outside $f$ moves every output; adding one inside, to $x$, moves every input instead, which is why $f(x)+d$ and $f(x+h)$ shift the graph along seemingly opposite directions on the horizontal axis.
+Here f is sine. With k and s nonzero, the amplitude is $|k|$, the middle value is d, and the period is $2\pi/|s|$. The range runs from d minus the absolute value of k to d plus it. If k or s is zero, the output is the constant d.
## Advanced
-These four transformations generate the full group of affine changes of variable on the graph of $f$; composing several of them in different orders can give different results whenever a horizontal and a vertical operation are mixed, since scaling the input by $s$ before shifting is not the same map as shifting first and then scaling.
+Order matters for operations on the same coordinate: doubling an output and then adding 3 differs from adding 3 and then doubling. A purely horizontal transformation and a purely vertical transformation can be applied in either order. These transformations do not include every possible plane transformation, such as an arbitrary rotation.
## Derivation
-1. Change what goes in first: replace $x$ with $s(x-h)$ inside $f$, which shifts by $h$ and rescales by $s$.
-2. Multiply the whole result by $k$, which stretches the output and flips it if $k$ is negative.
-3. Add $d$ to what is left, which shifts the whole curve up or down.
+1. Replace the original input by s times x minus h. This controls horizontal position, scale and reflection.
+2. Multiply the resulting output by k to scale it vertically and reflect it if k is negative.
+3. Add d to shift every output vertically by the same amount.
## Real world
-### Audio and sound engineering
-Pitch and volume controls stretch a sound wave horizontally (pitch) and vertically (volume) without changing its underlying shape.
+### Signals
+
+Multiplying signal values changes their amplitude. Adding a constant changes their baseline.
+
+### Timing
+
+Replacing time by time minus a delay shifts a recorded pattern later without changing its shape.
-### Seasonal and tidal cycles
-Temperature, daylight hours and tides all repeat with a shape that can be shifted by time zone, stretched by latitude, and flipped between hemispheres.
+### Comparing graphs
-### Image and video editing
-Brightness, contrast and mirroring tools apply exactly these same four transformations to the numbers making up a picture.
+Aligning middle values and adjusting scales can help compare patterns measured in different units. Keep those transformations explicit when interpreting the result.
diff --git a/content/lessons/numbers/big-number-names/ar.md b/content/lessons/numbers/big-number-names/ar.md
index 34e18054..ff19fb8c 100644
--- a/content/lessons/numbers/big-number-names/ar.md
+++ b/content/lessons/numbers/big-number-names/ar.md
@@ -1,58 +1,62 @@
---
title: أسماء الأعداد الكبيرة
-summary: >-
- المليار ليس أكبر من المليون بقليل، بل بألف مرة. حرّك المنزلق وشاهد.
+summary: افهم الفرق بين المليون والمليار والتريليون بتجميع الأعداد في مجموعات من ألف.
parameters:
e: الأس e
---
## Try it
-1. حرّك النقطة البرتقالية حتى يصير e يساوي 6. تتحول الأيقونة في المنتصف إلى ملعب، وتكتب اللافتة «مليون».
-2. تابع السحب حتى يصير e يساوي 9. تتحول الأيقونة إلى حشد ضخم من الناس، وتكتب اللافتة الآن «مليار». كلمة جديدة كليًا لقاء خطوة صغيرة واحدة على المسطرة.
-3. ادفع النقطة حتى e يساوي 100. تتحول الأيقونة إلى رمز عدد مجرد، لأن أسماء الأعداد تنفد بعد الغوغول.
+1. اضبط e على 6. القيمة مليون، أي 1 يتبعه ستة أصفار.
+2. اضبط e على 9 ثم على 12. تحصل على مليار ثم تريليون. كل زيادة بمقدار 3 في الأس تضرب العدد في 1000.
+3. اضبط e على 100. القيمة غوغول، أي 1 يتبعه 100 صفر. يصف العرض العدد بدلًا من كتابة جميع أرقامه.
## Real-life examples
-1. **جائزة يانصيب كبرى.** تبلغ جائزة يانصيب كبرى مليونًا واحدًا، $10^{6}$، مبلغ يغيّر حياة معظم الفائزين به.
-2. **دين دولة.** نقيس ديون الدول عادة بالمليارات، $10^{9}$، أي ألف ضعف المليون الواحد.
-3. **غوغول واحد.** لا نستعمل الغوغول، $10^{100}$، في حياتنا اليومية أبدًا. فهو أكبر من عدد كل ذرات الكون المنظور.
+1. **مليون قطعة.** عند e = 6، يكون العدد 1,000,000. يمكن تقسيمه إلى ألف مجموعة، في كل منها ألف قطعة.
+2. **مليار قطعة.** عند e = 9، يكون العدد 1,000,000,000. نحتاج إلى ألف مجموعة من مليون قطعة لتكوين مليار.
+3. **غوغول.** عند e = 100، يتحدد العدد بمئة صفر بعد الواحد. يمكننا استخدامه لاستكشاف القوى دون الحاجة إلى مجموعة حقيقية بهذا الحجم.
## Test yourself
-1. اجعل e يساوي 6، مليونًا واحدًا.
-2. اجعل e يساوي 9، مليارًا واحدًا.
-3. بلغ الغوغول: e يساوي 100.
+1. اختر مليونًا بضبط e على 6.
+2. اختر مليارًا بضبط e على 9.
+3. اختر غوغولًا بضبط e على 100.
## Intuition
-قل «مليون دولار» ثم «مليار دولار» بصوت عالٍ. الكلمتان تبدوان كابنتَي عم، يفصل بينهما مقطع واحد فقط. حرّك النقطة البرتقالية على المسطرة من e يساوي 6 إلى e يساوي 9. تقفز الأيقونة من ملعب واحد مزدحم بالناس إلى حشد يعادل ألف ملعب.
+تخيل ألف صندوق، في كل منها ألف قطعة. تحتوي الصناديق معًا على مليون قطعة. وإذا جمعنا ألف مجموعة من هذه الصناديق كلها، نحصل على مليار. الانتقال من مليون إلى مليار يعني الضرب في 1000، وليس إضافة مقدار صغير.
-كل اسم جديد، ألف فمليون فمليار فتريليون، يضيف ثلاثة أصفار بالضبط على الاسم الذي قبله. بعد التريليون، تابع سحب النقطة رغم ذلك. تتوقف الأيقونة عن تغيير اسمها، لأن أسماء اللغة اليومية تنفد قبل أن تنفد مساحة المسطرة بوقت طويل. حتى الغوغول عند نهاية المسطرة يبقى بلا اسم جديد.
+يسجل التدريج عدد الأصفار بعد الواحد. للمليون ستة أصفار، وللمليار تسعة، وللتريليون اثنا عشر. تساعد الصور على تحديد مواضع للمقارنة؛ صورة الملعب لا تعني أن ملعبًا حقيقيًا يتسع لمليون شخص.
+
+يمكننا متابعة كتابة القوى بعد الأسماء المألوفة. الغوغول هو عشرة أس مئة. وهو عدد محدود، وهناك أسماء لأعداد أكبر منه أيضًا. نهاية المنزلق لا تعني نهاية الأعداد أو أسمائها.
## Formal
-في النظام القصير الذي تستخدمه الإنجليزية الحديثة، $10^{6}=\text{million}$ و$10^{9}=\text{billion}$ و$10^{12}=\text{trillion}$، وكل اسم جديد يضيف ثلاثة أصفار على سابقه.
+نستخدم هنا الأسماء الإنجليزية بالمعاني $10^6=\text{million}$ و$10^9=\text{billion}$ و$10^{12}=\text{trillion}$. تقابلها بالعربية مليون ومليار وتريليون، وكل منها يساوي ألف مرة العدد السابق.
-الغوغول هو $10^{100}=\text{googol}$، اسم صِيغ سنة 1920 لعدد لا فائدة عملية منه سوى الإشارة إلى أي مدى يمكن أن يبلغه «الكبير».
+يُعرّف الغوغول بأنه $10^{100}$. وهو اسم لقوة محددة بعيدة عن أولى خطوات التسلسل مليون، مليار، تريليون.
## Advanced
-تسمية الأعداد ليست موحدة عالميًا. كثير من اللغات، ومنها العربية الفصحى، تستخدم «نظامًا طويلًا» يضع المليار ($10^{9}$) بين المليون ($10^{6}$) والتريليون أو البليون ($10^{12}$). لذلك تتحقق الترجمة الدقيقة دائمًا من الأس، لا من الكلمة وحدها.
+قد تختلف أسماء الأعداد باختلاف اللغة والاصطلاح. لتجنب الالتباس، قارن الأس أو القيمة المكتوبة بالأرقام. في هذا الدرس، تقابل كلمة billion الإنجليزية كلمة مليار، وكلاهما يعني ألف مليون.
## Derivation
-1. ستة أصفار بعد الواحد تكسب اسم مليون: $10^{6}=\text{million}$.
-2. ثلاثة أصفار أخرى، تسعة في المجموع، تكسب اسم مليار: $10^{9}=\text{billion}$.
-3. مئة صفر تكسب اسمًا صِيغ خصيصًا لهذه المناسبة: $10^{100}=\text{googol}$.
+1. الواحد الذي تتبعه ستة أصفار يساوي مليونًا.
+2. الضرب في 1000 يضيف ثلاثة أصفار، فنحصل على مليار.
+3. الواحد الذي يتبعه 100 صفر يسمى غوغولًا.
## Real world
-### تقييم الشركات
-نسمّي شركة التقنية «يونيكورن» حين يتجاوز تقييمها مليار دولار، $10^{9}$.
+### قراءة الميزانيات
+
+قبل مقارنة مبلغين، تحقق هل كُتبا بالملايين أم بالمليارات. المبلغان 2 مليار و900 مليون ليسا متقاربين؛ الأول أكبر.
+
+### أعداد السجلات
+
+التريليون سجل يساوي ألف مليار سجل. قد يحتاج نظام مصمم للمليارات إلى سعة أكبر بكثير لمعالجة التريليونات.
-### عمالقة الإنترنت
-أخذ محرك البحث غوغل اسمه من كلمة «غوغول»، إشارة إلى رغبته في تنظيم كمّ هائل من المعلومات.
+### ترجمة التقارير
-### علم الفلك
-نقدّر عدد ذرات الكون المنظور بنحو $10^{80}$، عدد هائل يبقى مع ذلك أصغر من الغوغول.
+كتابة المقدار بقوة من قوى العشرة تساعد عند ترجمة تقارير تختلف في اصطلاح تسمية الأعداد.
diff --git a/content/lessons/numbers/big-number-names/en.md b/content/lessons/numbers/big-number-names/en.md
index ffea9be0..c0c02f95 100644
--- a/content/lessons/numbers/big-number-names/en.md
+++ b/content/lessons/numbers/big-number-names/en.md
@@ -1,59 +1,62 @@
---
title: Big number names
-summary: >-
- Try the slider and see that a billion is not slightly bigger than a
- million — it's a thousand times bigger.
+summary: Learn the difference between a million, a billion and a trillion by counting groups of a thousand.
parameters:
- e: the exponent e
+ e: exponent e
---
## Try it
-1. Drag the orange dot to e = 6. The icon in the middle turns into a stadium and the label reads "million".
-2. Keep dragging to e = 9. The icon changes to a crowd of people and the label now reads "billion" — a whole new word for what feels like a small step on the ruler.
-3. Push all the way to e = 100. The icon becomes a plain number symbol, because past a googol there is no name left to show.
+1. Set e to 6. The value is one million, a 1 followed by six zeros.
+2. Set e to 9, then 12. These values are one billion and one trillion. Each step of three in the exponent multiplies the amount by 1000.
+3. Set e to 100. The value is a googol, a 1 followed by 100 zeros. The display uses a description instead of printing all the digits.
## Real-life examples
-1. **A lottery jackpot.** A prize of one million, $10^{6}$, is life-changing money for most people.
-2. **A national debt.** Government debts are often quoted in billions, $10^{9}$ — a thousand times a million.
-3. **A googol.** $10^{100}$ has no everyday use at all — it is simply bigger than the number of atoms in the observable universe.
+1. **One million items.** With e = 6, the count is 1,000,000. It can be grouped into 1000 groups of 1000.
+2. **One billion items.** With e = 9, the count is 1,000,000,000. It takes 1000 groups of a million to make a billion.
+3. **A googol.** With e = 100, the number is defined by its 100 zeros. It is useful for exploring powers even without a physical collection to count.
## Test yourself
-1. Set e to 6 — a million.
-2. Set e to 9 — a billion.
-3. Reach a googol: e = 100.
+1. Select one million by setting e to 6.
+2. Select one billion by setting e to 9.
+3. Select a googol by setting e to 100.
## Intuition
-Say "a million dollars" and then "a billion dollars" out loud — the two words sound like cousins, one syllable apart. Drag the orange dot on the ruler from e = 6 to e = 9, though, and the icon jumps from a single stadium of people to a crowd a thousand stadiums deep.
+Imagine 1000 boxes, each holding 1000 counters. Together they hold a million counters. Now imagine 1000 groups of that entire collection: you have a billion. The change from million to billion is a multiplication by 1000, not a small addition.
-Every extra name — thousand, million, billion, trillion — adds exactly three more zeros to the last one. Past trillion, keep dragging the dot anyway: the icon stops changing its name, because ordinary language runs out of names long before the ruler runs out of room, all the way out to the googol at the very end.
+The ruler records how many zeros follow the 1. A million needs six, a billion nine, and a trillion twelve. The icons help locate reference points; a stadium icon does not mean an actual stadium holds a million people.
+
+We can keep writing powers beyond these familiar names. A googol is ten to the hundredth power. It is still a finite number, and larger numbers have names too. The end of this slider is not the end of numbers or their names.
## Formal
-In the short scale used by modern English, $10^{6}=\text{million}$, $10^{9}=\text{billion}$ and $10^{12}=\text{trillion}$ — each new name adds three more zeros to the last.
+This lesson uses the short-scale meanings $10^6=\text{million}$, $10^9=\text{billion}$ and $10^{12}=\text{trillion}$. Each is a thousand times the previous one.
-A googol is $10^{100}=\text{googol}$, a name coined in 1920 for a number with no practical use except to mark just how far "big" can go.
+A googol is defined as $10^{100}$. Unlike the steps from million to billion to trillion, it is a separate named power far beyond that sequence's first few terms.
## Advanced
-Naming conventions are not universal: many languages, including formal Arabic, use a "long scale" where مليار ($10^{9}$) sits between مليون ($10^{6}$) and تريليون/بليون ($10^{12}$), so a careful translation always checks the exponent, never just the word.
+Number names can depend on language and convention. To avoid ambiguity, compare the exponent or written value. In this lesson, English billion corresponds to Arabic مليار; both mean a thousand million.
## Derivation
-1. Six zeros after the 1 earns the name million: $10^{6}=\text{million}$.
-2. Three more zeros, nine in total, earns the name billion: $10^{9}=\text{billion}$.
-3. A hundred zeros earns a name coined just for the occasion: $10^{100}=\text{googol}$.
+1. A 1 followed by six zeros is one million.
+2. Multiplying by 1000 adds three zeros, giving one billion.
+3. A 1 followed by 100 zeros is called a googol.
## Real world
-### Company valuations
-Tech companies are sometimes called "unicorns" once their valuation passes a billion dollars, $10^{9}$.
+### Reading budgets
+
+Before comparing two amounts, check whether they are stated in millions or billions. A value of 2 billion is larger than 900 million.
+
+### Data counts
+
+A trillion records is a thousand billion records. A system sized for billions may need much more capacity to handle trillions.
-### Internet giants
-The search engine Google took its name from "googol", a nod to wanting to organise an almost unimaginable amount of information.
+### Converting labels
-### Astronomy
-The number of atoms in the observable universe is estimated at around $10^{80}$ — huge, but still smaller than a googol.
+Writing an amount as a power of ten helps when translating reports that use different naming conventions.
diff --git a/content/lessons/numbers/binary-and-other-bases/ar.md b/content/lessons/numbers/binary-and-other-bases/ar.md
index 52de83bb..b5ab73b9 100644
--- a/content/lessons/numbers/binary-and-other-bases/ar.md
+++ b/content/lessons/numbers/binary-and-other-bases/ar.md
@@ -1,66 +1,67 @@
---
-title: الثنائي وقواعد العد الأخرى
-summary: >-
- عدّ الكمية نفسها بالاثنين وبالستة عشر وبالستين كما تفعل الساعة. كل قاعدة تعمل بالطريقة نفسها.
+title: النظام الثنائي وأنظمة العد الأخرى
+summary: اكتب الكمية نفسها بأنظمة عد مختلفة، بتغيير قيمة كل منزلة.
parameters:
- N: العدد N، مكتوبًا بالقاعدة 10
- b: القاعدة b التي نعدّ بها
+ N: العدد N بالنظام العشري
+ b: أساس نظام العد b
variables:
- - 'رقم، في الموضع k، أصغر من القاعدة دائمًا'
- - 'القيمة المكانية عند الموضع k، أي القاعدة مرفوعة للأس k'
- - العدد المراد كتابته، بالقاعدة 10
+ - قيمة الرقم في المنزلة k؛ من الصفر إلى أقل من الأساس بواحد
+ - قيمة المنزلة k، بدءًا من الصفر على اليمين
+ - القيمة الكلية مكتوبة بالنظام العشري
---
## Try it
-1. اضبط «b» على 2. تمتلئ مربعات الأرقام بالأصفار والآحاد. يتحول 130 إلى صف من ثمانية أرقام ثنائية.
-2. اضبط «b» على 16 بدلًا من ذلك. يحتاج العدد 130 الآن مربعين فقط. يقرآن 8 و2، أي 82 بالنظام الست عشري.
-3. اضبط «b» على 60. ينقسم العدد 130 إلى مربعين يقرآن 2 و10. هذا بالضبط «دقيقتان وعشر ثوانٍ» كما تُظهرها ساعة أو ساعة إيقاف.
+1. اضبط N على 130 وb على 2. يظهر العدد 10000010. تضيف المنزلتان غير الصفريتين 128 و2 إلى المجموع.
+2. أبقِ N عند 130 واضبط b على 16. يظهر 82، أي ثماني مجموعات من ستة عشر واثنان من الآحاد.
+3. اضبط b على 60. تحمل المنزلتان القيمتين 2 و10. يمثل الحرف A قيمة عشرة في الخانة، ويعرض سطر الوقت 02:10.
## Real-life examples
-1. **الثنائي، القاعدة 2 (N = 130، b = 2).** لا يُسمح إلا بالرقمين 0 و1. يحتاج 130 ثمانية مربعات أرقام، 10000010.
-2. **الست عشري، القاعدة 16 (N = 130، b = 16).** تتراوح الأرقام من 0 إلى 15 (تُكتب 0–9 ثم A–F). يتّسع 130 في مربعين فقط، 82.
-3. **القاعدة 60، قاعدة الساعة (N = 130، b = 60).** تتراوح الأرقام من 0 إلى 59. تصبح 130 ثانية مربعين، 2 و10، تُقرآن دقيقتين و10 ثوانٍ.
+1. **النظام الثنائي.** عند N = 130 وb = 2، نكتب القيمة 10000010. لا نحتاج إلى رموز أرقام غير 0 و1.
+2. **النظام الست عشري.** عند N = 130 وb = 16، نكتبها 82. تمثل الحروف من A إلى F قيم الأرقام من عشرة إلى خمسة عشر.
+3. **الدقائق والثواني.** عند N = 130 وb = 60، نحصل على مجموعتين من ستين ويتبقى عشرة. إذا كانت الوحدة ثانية، فهذا يعني دقيقتين وعشر ثوانٍ.
## Test yourself
-1. ادفع «N» إلى أكبر قيمة له، 3599. هذا أقل بثانية واحدة من ساعة كاملة بالقاعدة 60.
-2. بدّل القاعدة إلى 60 وراقب مربعات الأرقام تتحول إلى قراءة ساعة.
-3. بدّل القاعدة إلى 16 وجد العدد الذي يقرأ 130 بالقاعدة 10.
+1. اضبط N على 3599.
+2. اضبط b على 60.
+3. اضبط b على 16 وN على 130.
## Intuition
-العدّ بالقاعدة 10 يعني أن كل موضع يساوي عشرة أضعاف الموضع الذي على يمينه، مثل الآحاد والعشرات والمئات. العدّ بقاعدة أخرى «b» يعمل بالطريقة نفسها بالضبط، لكن بمضاعِف مختلف. كل موضع يساوي «b» أضعاف الموضع الذي على يمينه. ولا يُسمح لأي رقم مفرد بالوصول إلى «b» نفسها أبدًا، فهو يفيض إلى الموضع التالي بدلًا من ذلك. اسحب «b» نزولًا إلى 2، فلن يستطيع كل مربع رقم إظهار سوى 0 أو 1، لأن القاعدة 2 لا تملك سوى رقمين. والعدد 130 نفسه الذي اتّسع في ثلاثة أرقام بالقاعدة 10 ينتشر الآن عبر ثمانية مربعات.
+في النظام العشري، يعني 130 مئة واحدة وثلاث عشرات وصفر آحاد. قيمة كل منزلة تساوي عشرة أمثال قيمة المنزلة إلى يمينها. يحدد أساس نظام العد هذا المضاعف. عندما نغير الأساس، تتغير طريقة كتابة الكمية، وتبقى الكمية نفسها.
-اسحب «b» صعودًا إلى 60. يستطيع كل مربع رقم الآن إظهار أي قيمة من 0 إلى 59، لأن القاعدة 60 تملك ستين رقمًا. هذا ليس مثالًا مُختلَقًا، إنه بالضبط كيف عدّت الساعة منذ آلاف السنين. تصبح 130 ثانية «رقمين»، 2 و10، تُقرآن دقيقتين و10 ثوانٍ. فالدقيقة خطوة مكانية واحدة بالقاعدة 60، تمامًا كما العشرة خطوة واحدة بالقاعدة 10.
+في النظام الثنائي، قيم المنازل من اليمين إلى اليسار هي 1 و2 و4 و8، وهكذا. يحمل كل موضع 0 أو 1 فقط. لكتابة 130، نأخذ 128 واحدة و2 واحدة، ونضع أصفارًا في المنازل الأخرى. فنحصل على 10000010.
+
+في النظام الست عشري، نبدأ بالآحاد ثم مجموعات الستة عشر. ثماني مجموعات من ستة عشر تساوي 128، ونضيف اثنين لنحصل على 130، فنكتب 82. انتبه للأساس قبل قراءة الأرقام؛ فالكتابة 82 في هذا النظام لا تعني اثنين وثمانين بالنظام العشري.
## Formal
-في القاعدة $b$، يُكتب العدد كأرقام $d_k$، كل منها يحقق $0\le d_k-
- Count the same amount in twos, in sixteens, and in sixties — the base a
- clock has always used — and see why every base works the same way.
+summary: Write the same quantity in different number systems by changing the value of each place.
parameters:
- N: the number N, written in base 10
- b: the base b to count in
+ N: number N in decimal
+ b: base b
variables:
- - 'a digit, at place k, always less than the base'
- - 'the place value at position k — b raised to the power k'
- - the number being written, in base 10
+ - digit value in position k; from zero to one less than the base
+ - value of position k, counting from zero on the right
+ - total value, written in decimal
---
## Try it
-1. Set b to 2: the digit boxes fill with 0s and 1s, and 130 turns into a row of eight binary digits.
-2. Set b to 16 instead: the same 130 now needs only two digit boxes, reading 8 and 2, the hexadecimal 82.
-3. Set b to 60: the same 130 splits into two boxes reading 2 and 10 — exactly the "2 minutes, 10 seconds" a clock or stopwatch would show.
+1. Set N to 130 and b to 2. The display reads 10000010. The two nonzero places contribute 128 and 2.
+2. Keep N at 130 and set b to 16. The display reads 82: eight sixteens and two ones.
+3. Set b to 60. The places hold values 2 and 10. The digit symbol A represents ten here; the time display reads 02:10.
## Real-life examples
-1. **Binary, base 2.** N = 130, b = 2: only digits 0 and 1 are allowed, so 130 needs eight digit boxes — 10000010.
-2. **Hexadecimal, base 16.** N = 130, b = 16: digits run 0 to 15 (shown as 0–9 then A–F), so 130 fits in two boxes — 82.
-3. **Base 60, the base a clock uses.** N = 130, b = 60: digits run 0 to 59, so 130 seconds becomes two boxes — 2 and 10, read as 2 minutes 10 seconds.
+1. **Binary.** With N = 130 and b = 2, the value is written 10000010. Only 0 and 1 are needed as digits.
+2. **Hexadecimal.** With N = 130 and b = 16, it is written 82. Letters A through F represent digit values ten through fifteen.
+3. **Minutes and seconds.** With N = 130 and b = 60, there are two groups of sixty and ten left over. If the units are seconds, that is two minutes and ten seconds.
## Test yourself
-1. Push N to its largest value, 3599 — one second short of a full hour in base 60.
-2. Switch the base to 60 and watch the digit boxes turn into a clock reading.
-3. Switch the base to 16 and find the number that reads 130 in base 10.
+1. Set N to 3599.
+2. Set b to 60.
+3. Set b to 16 and N to 130.
## Intuition
-Counting in base 10 means each place is worth ten times the place to its right — ones, tens, hundreds. Counting in another base b works exactly the same way, just with a different multiplier: each place is worth b times the place to its right, and no single digit is ever allowed to reach b itself, so it rolls over to the next place instead. Drag b down to 2 and every digit box can only ever show 0 or 1, because base 2 has only two digits — the same 130 that fit in three digits at base 10 now spreads across eight boxes.
+In decimal, 130 means one hundred, three tens and zero ones. Each place is worth ten times the place on its right. The base tells us that multiplier. Changing the base changes the way we write the quantity, not the quantity itself.
-Drag b up to 60 and each digit box can show any value from 0 to 59, because base 60 has sixty digits — and this is not an invented example: it is exactly how a clock has counted for thousands of years. 130 seconds becomes two "digits": 2 and 10, read off as 2 minutes and 10 seconds, because a minute is one place-value step in base 60, precisely as a ten is one step in base 10.
+In base 2, the places are worth 1, 2, 4, 8 and so on, reading from right to left. Each digit is either 0 or 1. To write 130, use one 128 and one 2, with zeros in the other places. That gives 10000010.
+
+In base 16, the places begin with ones and sixteens. Eight sixteens make 128; two more make 130, so the representation is 82. Always check the base before reading the digits: 82 in hexadecimal is not eighty-two in decimal.
## Formal
-In base $b$, a number is written as digits $d_k$, each satisfying $0\le d_k-
- حبة أرز واحدة، ضاعفها 64 مرة، فتغرق العالم كله بالأرز.
+summary: تابع تضاعف عدد الحبات، وميّز بين حبات المربع الواحد ومجموع الحبات حتى ذلك المربع.
parameters:
k: رقم المربع k
variables:
- - عدد الحبوب على ذلك المربع
- - رقم المربع، من 1 إلى 64
+ - عدد الحبات على المربع المختار
+ - رقم المربع، بدءًا من 1
---
## Try it
-1. انقر المربع 8 على الرقعة أو اسحب إليه. تابع التظليل البرتقالي واقرأ اللافتة: 128 حبة، حفنة صغيرة ما زلت تتخيلها بسهولة.
-2. انتقل إلى المربع 20. العدد على اليمين يتجاوز الآن نصف مليون حبة، أكثر من كل المربعات السابقة مجتمعة.
-3. ادفع إلى المربع 64، الزاوية الداكنة الأخيرة من الرقعة. اقرأ الوزن الظاهر على اليمين، أثقل من أي شيء تستطيع حمله.
+1. اضبط k على 1 ثم 2 ثم 3. تحمل المربعات المختارة 1 ثم 2 ثم 4 حبات. قارنها بالمجموع المتراكم، وهو 1 ثم 3 ثم 7.
+2. اختر المربع 8. يحمل 128 حبة، بينما تحمل المربعات الثمانية مجتمعة 255 حبة.
+3. اختر المربع 64. اقرأ العدد عليه والمجموع كلًا على حدة. الكتلة المعروضة تقدير للمجموع، وليست للمربع الأخير وحده.
## Real-life examples
-1. **نهاية الصف الأول.** عند المربع 8، تبلغ الكومة 128 حبة، حفنة صغيرة لا أكثر.
-2. **منتصف الرقعة.** عند المربع 32، تجاوزت الكومة ملياري حبة، أرز أكثر مما يستطيع حقل واحد أن ينتجه.
-3. **المربع الأخير.** عند المربع 64، تحمل الكومة نحو $1.8\times10^{19}$ حبة، أرز أكثر بأضعاف مما حصده العالم كله عبر تاريخه.
+1. **ثمانية مربعات.** يحمل المربع 8 عددًا قدره 128 حبة بعد سبع عمليات تضاعف. والمجموع 255 حبة.
+2. **اثنان وثلاثون مربعًا.** يحمل المربع 32 عددًا قدره 2,147,483,648 حبة. وصلنا إليه بتكرار التضاعف 31 مرة من الحبة الأولى.
+3. **الرقعة كاملة.** يحمل المربع 64 نحو 9.22 مليار مليار حبة. أما مجموع المربعات كلها فيبلغ نحو 18.45 مليار مليار.
## Test yourself
-1. انتقل إلى المربع 16، نهاية الصف الثاني.
-2. جد المربع الذي يتجاوز فيه عدد الحبوب المليون لأول مرة.
-3. ادفع k إلى 60 أو أكثر، قرب نهاية الرقعة.
+1. اختر المربع 16.
+2. ابحث عن أول مربع يتجاوز عدد الحبات عليه مليونًا.
+3. اختر أي مربع من 60 إلى 64.
## Intuition
-ضع حبة أرز واحدة على المربع الأول من رقعة الشطرنج، ثم حبتين على الثاني، وأربع حبات على الثالث. كل مربع يحمل ضعف حبوب المربع الذي قبله بالضبط. على الشاشة، حرّك المنزلق المسمّى k وراقب التظليل البرتقالي يزحف عبر الرقعة. طوال الصف الأول كله، تبقى الكومة حفنة صغيرة تستطيع حملها بيد واحدة.
+نضع حبة واحدة على المربع الأول، وحبتين على الثاني، وأربعًا على الثالث. يحصل كل مربع جديد على ضعف عدد الحبات في المربع السابق. الزيادة ليست عددًا ثابتًا من الحبات؛ فهي تكبر كلما كبر العدد الذي نضاعفه.
-أعطِ حبوب المربع اسمًا، $g$، ليسهل الحديث عنها. أعطِ موضع المربع نفسه اسمًا أيضًا، $k$، معدودًا من 1 إلى 64. عند المربع 20، تجاوز $g$ بالفعل نصف مليون حبة، رغم أن المنزلق بالكاد قطع ثلث الرقعة. عند المربع 64، تضيء الزاوية البعيدة، وتُظهر قراءة الوزن على اليمين أرزًا أكثر مما يزرعه العالم كله في سنة واحدة.
+على المربع 8 توجد 128 حبة. في الخطوة التالية نضيف مثلها، فيصبح العدد على المربع 9 هو 256. وعندما نصل إلى مليار، فإن مضاعفته تضيف مليارًا آخر. لذلك قد تنتج عن تكرار العملية نفسها زيادات أكبر بكثير مع مرور الخطوات.
+
+انتبه للفرق بين عدد المربع والمجموع. على المربع الثالث 4 حبات، لكن مجموع المربعات الثلاثة هو 1 + 2 + 4 = 7. يعرض الرسم القيمتين لأن كلًا منهما تجيب عن سؤال مختلف.
## Formal
-رقعة الشطرنج فيها 64 مربعًا. عدد الحبوب على المربع $k$ هو $g=2^{k-1}$: المربع 1 يحمل $2^{0}=1$ حبة، والمربع 2 يحمل $2^{1}=2$، وهكذا.
+إذا كان k رقم المربع بدءًا من 1، فإن عدد الحبات عليه هو $g_k=2^{k-1}$. نطرح 1 في الأس لأن المربع الأول يسبق أي عملية تضاعف.
-كل مربع يحمل ضعف حبوب المربع الذي قبله بالضبط، لأن $g_{k} = 2\,g_{k-1}$. وفكّ هذه القاعدة بدءًا من المربع 1 يعطي الصيغة المباشرة $g_{k}=2^{k-1}$.
+مجموع الحبات حتى المربع k هو $S_k=2^k-1$. وهو أقل بحبة واحدة من عدد الحبات الذي سنضعه على المربع التالي.
## Advanced
-مجموع كل المربعات الأربعة والستين هو $\sum_{k=1}^{64} 2^{k-1} = 2^{64}-1$، أي أقل بحبة واحدة من ضعف المربع الأخير وحده. وهذه حقيقة عامة عن التضاعف: مجموع كل ما سبق يبقى دائمًا أقل بقليل من حجم الخطوة التالية.
+لفهم قاعدة المجموع، نضاعف مجموع 1 + 2 + 4 حتى آخر حد، وهو اثنان أس k ناقص 1. نطرح المجموع الأصلي، فتُحذف الحدود المشتركة ونحصل على $2S_k-S_k=2^k-1$. أما الكتلة المعروضة فتعتمد على كتلة مفترضة للحبة، ولذلك تبقى تقديرية رغم دقة عدد الحبات.
## Derivation
-1. المربع الأول يحمل حبة واحدة: $g_{1}=1$.
-2. كل مربع لاحق يحمل ضعف حبوب المربع الذي قبله: $g_{k} = 2\,g_{k-1}$.
-3. تكرار هذا التضاعف بدءًا من المربع 1 يعطي صيغة مباشرة: $g_{k} = 2^{k-1}$.
+1. نضع حبة واحدة على المربع الأول لتحديد البداية.
+2. نضرب عدد حبات المربع السابق في اثنين للحصول على عدد المربع التالي.
+3. نحتاج إلى k ناقص 1 من عمليات التضاعف للوصول إلى المربع k، ومنها نحصل على الصيغة المباشرة.
## Real world
-### انتشار الأوبئة
-تسير عدوى تتضاعف حالاتها كل بضعة أيام على منحنى رقعة الشطرنج نفسه: بطيئة في البداية، ثم منفجرة فجأة.
+### نسخ الملفات
+
+إذا أنتجت كل نسخة نسخة إضافية في كل جولة، يتضاعف العدد في الجولة. يفترض هذا المثال نجاح عملية النسخ لكل نسخة.
+
+### انقسام الخلايا
+
+في نموذج مبسط، تنقسم كل خلية إلى اثنتين بعد فترة ثابتة. يتبع العدد النمط نفسه، لكن النمو الحقيقي قد يتباطأ عند نقص الموارد.
-### البكتيريا في طبق المزرعة
-تملأ بكتيريا واحدة، تنقسم كل عشرين دقيقة، طبق المزرعة بالتضاعف الجامح نفسه، لا بإضافة خلية واحدة تلو الأخرى.
+### حجم البيانات
-### الفائدة المركّبة
-ينمو المال المتضاعف وفق جدول ثابت بالطريقة نفسها. لهذا يستطيع معدل فائدة متواضع، إن تُرك عقودًا كاملة، أن يضاعف المدخرات أضعافًا كثيرة.
+تكرار مضاعفة حجم ملف قد يستهلك مساحة التخزين سريعًا. عشر عمليات تضاعف تجعل الحجم أكبر بمقدار 1024 مرة.
diff --git a/content/lessons/numbers/doubling-and-the-chessboard/en.md b/content/lessons/numbers/doubling-and-the-chessboard/en.md
index 45b8bfbc..732134d1 100644
--- a/content/lessons/numbers/doubling-and-the-chessboard/en.md
+++ b/content/lessons/numbers/doubling-and-the-chessboard/en.md
@@ -1,62 +1,65 @@
---
title: Doubling and the chessboard
-summary: >-
- Find out why doubling a single grain of rice sixty-four times would bury
- the whole world in rice.
+summary: Follow repeated doubling and distinguish the amount on one square from the total so far.
parameters:
- k: the square number k
+ k: square number k
variables:
- - the number of grains on that square
- - the square number, counted from 1 to 64
+ - number of grains on the selected square
+ - square number, starting at 1
---
## Try it
-1. Click or drag to square 8 on the board. Watch the orange highlight, and read the label showing 128 grains — still a small handful you can picture.
-2. Move to square 20. The number on the right already reads over half a million grains, more than every earlier square combined.
-3. Push to square 64, the last dark corner of the board. Read the weight shown on the right — heavier than anything you could lift.
+1. Set k to 1, then 2, then 3. The selected squares hold 1, 2 and 4 grains. Compare those values with the running totals 1, 3 and 7.
+2. Select square 8. It holds 128 grains, while all eight squares together hold 255.
+3. Select square 64. Read the separate values for that square and the total. The displayed mass estimates the total, not just the final square.
## Real-life examples
-1. **End of the first row.** By square 8, the pile is 128 grains — still just a small handful.
-2. **Halfway across the board.** By square 32, the pile has grown past two billion grains — more rice than one field could grow.
-3. **The last square.** By square 64, the pile holds about $1.8\times10^{19}$ grains — many times more rice than the whole world has ever harvested.
+1. **Eight squares.** Square 8 holds 128 grains after seven doublings. The total is 255 grains.
+2. **Thirty-two squares.** Square 32 holds 2,147,483,648 grains. This is the result of 31 doublings from the first grain.
+3. **The full board.** Square 64 holds about 9.22 billion billion grains. The total on all 64 squares is about 18.45 billion billion.
## Test yourself
-1. Move to square 16, the end of the second row.
-2. Find the square where the grain count first passes one million.
-3. Push k to 60 or beyond, near the end of the board.
+1. Select square 16.
+2. Find the first square holding more than one million grains.
+3. Select any square from 60 through 64.
## Intuition
-Put one grain of rice on the first square of a chessboard, then two on the second, four on the third — each square holds exactly double the grains of the one before. On screen, drag the slider labelled k and watch the orange highlight creep across the board: through the whole first row, the pile is still just a small handful you could hold in one hand.
+Put one grain on the first square, two on the next, and four on the third. Each new square gets twice as many grains as the previous square. The increase is not a fixed number of grains: it grows with the pile already there.
-Give the grains on a square a name, $g$, so it's easy to talk about. Give the square's own position a name too, $k$, counted from 1 to 64. By square 20, $g$ has already shot past half a million, though the slider has barely crossed a third of the board. By square 64, the far corner lights up, and the weight reading on the right shows more rice than the entire world grows in a year.
+By square 8, there are 128 grains on that square. One more doubling adds another 128 to make 256 on square 9. Much later, doubling a billion adds another billion. Repeating the same operation can therefore produce increasingly large changes.
+
+Keep the selected square separate from the running total. On square 3 there are 4 grains, but the first three squares together hold 1 + 2 + 4 = 7. The diagram reports both quantities because they answer different questions.
## Formal
-The chessboard has 64 squares. The number of grains on square $k$ is $g=2^{k-1}$: square 1 holds $2^{0}=1$ grain, square 2 holds $2^{1}=2$, and so on.
+If k counts squares starting at 1, the number on square k is $g_k=2^{k-1}$. The exponent is k minus 1 because the first square has not yet been doubled.
-Each square holds exactly twice the grains of the one before it, since $g_{k} = 2\,g_{k-1}$. Unrolling that rule from square 1 gives the closed formula $g_{k}=2^{k-1}$.
+The total through square k is $S_k=2^k-1$. It is one grain less than the amount that would go on the next square.
## Advanced
-The total across all 64 squares is $\sum_{k=1}^{64} 2^{k-1} = 2^{64}-1$, one grain short of double the last square alone — a general fact about doubling: the sum of everything so far is always just under the size of the next step.
+To see the sum rule, double the sum 1 + 2 + 4 + … + 2 to the power k minus 1. Subtract the original sum: all intermediate terms cancel, leaving $2S_k-S_k=2^k-1$. The displayed mass uses an assumed grain mass, so it is an estimate even though the grain count is exact.
## Derivation
-1. The first square holds a single grain: $g_{1}=1$.
-2. Every later square holds twice the grains of the one before: $g_{k} = 2\,g_{k-1}$.
-3. Repeating that doubling from square 1 gives a direct formula: $g_{k} = 2^{k-1}$.
+1. Put one grain on the first square to set the starting value.
+2. Multiply the previous square's count by two to find the next count.
+3. Reaching square k requires k minus 1 doublings, giving the direct formula.
## Real world
-### Viral spread
-An infection that doubles its case count every few days follows the exact same curve as the chessboard — slow at first, explosive later.
+### Repeated copying
+
+If every copy produces one additional copy each round, the number doubles per round. The rule assumes all copies participate successfully.
+
+### Cell division
+
+A simplified model in which every cell divides into two after each interval follows this pattern. Actual growth can slow when resources become limited.
-### Bacteria in a dish
-A single bacterium dividing every twenty minutes fills a petri dish by the same runaway doubling, not by adding cells one at a time.
+### Data size
-### Compound interest
-Money that doubles on a fixed schedule grows the same way — which is why a modest interest rate, left alone for decades, can multiply savings enormously.
+Doubling a file size repeatedly can exceed available storage quickly. Ten doublings multiply the size by 1024.
diff --git a/content/lessons/numbers/estimation-and-rounding/ar.md b/content/lessons/numbers/estimation-and-rounding/ar.md
index a43e32af..a86a5333 100644
--- a/content/lessons/numbers/estimation-and-rounding/ar.md
+++ b/content/lessons/numbers/estimation-and-rounding/ar.md
@@ -1,67 +1,68 @@
---
title: التقدير والتقريب
-summary: >-
- كم شعرة في رأسك؟ اضرب رقمين تقريبيين، ثم قرّب الجواب بقدر ما تثق به.
+summary: قدّر العدد الكلي من عينة صغيرة، ثم قرّب النتيجة بما يناسب دقة المعلومات المتاحة.
parameters:
- A: مساحة فروة الرأس A (سم²)
- rho: كثافة الشعر ρ (شعرة لكل سم²)
- s: عدد الأرقام المعنوية المحتفَظ بها s
+ A: مساحة فروة الرأس المقدرة A (cm²)
+ rho: كثافة الشعر المقدرة ρ (شعرة لكل cm²)
+ s: عدد الأرقام المعنوية s
variables:
- - المساحة التي يغطيها الشعر، بالسنتيمتر المربع
- - كثافة الشعر، عدد الشعرات في كل سنتيمتر مربع
- - العدد المقدَّر للشعرات
+ - المساحة المقدرة التي يغطيها الشعر، بالسنتيمتر المربع
+ - متوسط عدد الشعرات المقدر في السنتيمتر المربع
+ - العدد الكلي المقدر للشعرات
---
## Try it
-1. اضبط «A» على 500 و«rho» على 200. تمتلئ الشبكة لتُظهر عملية الضرب. يقرأ الرقم الكبير 100,000، تقدير مستدير كامل.
-2. ارفع «s» من 1 إلى 4. يُطبع الرقم نفسه بمزيد فمزيد من الأرقام الحادّة، بينما تخفت البقية. تلك الأرقام الأخيرة لم تكن معروفة حقًا أصلًا.
-3. ادفع «A» إلى 700 و«rho» إلى 300. يقفز التقدير متجاوزًا 200,000. هذا يُظهر مدى حساسية تقدير فيرمي للأرقام التي بدأت بها.
+1. اضبط A على 500 وrho على 200. يعطي الضرب تقديرًا قدره 100,000 شعرة. توضح النقاط فكرة المساحة والكثافة، ولا تمثل كل شعرة على حدة.
+2. اضبط A على 350 وrho على 300. الناتج 105,000. قارن s = 1 مع s = 3؛ تظهر النتيجتان 100,000 و105,000.
+3. أبقِ rho ثابتًا وزد A. يرتفع التقدير لأن الكثافة المتوسطة نفسها تغطي مساحة أكبر.
## Real-life examples
-1. **رأس بالغ متوسط (A = 500، rho = 200، s = 1).** تُعطي 500 سم² من فروة الرأس مضروبة في 200 شعرة لكل سم² نحو 100,000 شعرة. رقم يستحق الثقة برقم معنوي واحد فقط.
-2. **رأس أكبر، شعر أخشن (A = 600، rho = 150، s = 2).** تُعطي 600 سم² مضروبة في 150 شعرة لكل سم² نحو 90,000 شعرة. مذكورة برقمين معنويين.
-3. **رأس أصغر، شعر ناعم جدًا (A = 350، rho = 300، s = 1).** تُعطي 350 سم² مضروبة في 300 شعرة لكل سم² نحو 100,000 شعرة مجددًا. رأس مختلف، وإجابة مشابهة.
+1. **تقدير أولي.** نفترض مساحة 500 cm² وكثافة 200 شعرة لكل cm²، فنحصل على 100,000 شعرة. عند s = 1، نكتب نحو مئة ألف.
+2. **افتراضات مختلفة.** مساحة 600 cm² وكثافة 150 تعطيان 90,000. يحتفظ الإعداد s = 2 برقمين معنويين، لكنه لا يثبت أن القياسات بهذه الدقة.
+3. **تقريب حاصل الضرب.** مساحة 350 cm² وكثافة 300 تعطيان 105,000. عند التقريب إلى رقم معنوي واحد، نحصل على 100,000.
## Test yourself
-1. اضبط المساحة والكثافة كي يستقر التقدير قرب 100,000 شعرة.
-2. اضبط التقريب للاحتفاظ برقم معنوي واحد فقط.
-3. جد مساحة وكثافة يتجاوز تقديرهما 150,000.
+1. اختر A وrho بحيث لا يبتعد حاصل ضربهما عن 100,000 بأكثر من 8000.
+2. اضبط s على 1.
+3. اجعل التقدير قبل التقريب أكبر من 150,000.
## Intuition
-لا تستطيع عدّ كل شعرة على رأس، لكنك تستطيع أن تقدّر. خمّن مساحة فروة الرأس التي يغطيها الشعر. خمّن أيضًا كم شعرة تنمو في كل سنتيمتر مربع، ثم اضرب العددين. حرّك «A» على الشاشة، فتمتد الشبكة التي تمثّل مساحة فروة الرأس. حرّك «rho»، فيمتلئ كل سنتيمتر مربع منها بنقاط أكثر أو أقل. القراءة الكبيرة هي ببساطة هذان الرقمان مضروبَين معًا.
+بدل عدّ كل شعرة، نقدّر عدد الشعرات في سنتيمتر مربع واحد، والمساحة التي يغطيها الشعر. إذا كان المتوسط نحو 200 شعرة لكل سنتيمتر مربع، والمساحة نحو 500 سنتيمتر مربع، نضرب 200 في 500. العدد الكلي المقدر هو 100,000.
-ولأن «A» و«rho» كانا تخمينين، فالناتج تخمين أيضًا. إنه تخمين جيد، لكنه غير دقيق حتى آخر رقم. كتابة «100,000» تقول الحقيقة، فهي رقم معنوي واحد فقط. أما كتابة «103,742» فتكون غير أمينة، تتظاهر بدقة لم يملكها التقدير أبدًا. اسحب «s» للأعلى، وراقب أرقامًا إضافية تظهر ثم تخفت إلى الرمادي. تلك الأرقام الرمادية هي بالضبط ما لا يعدك به تقدير فيرمي فعلًا.
+عملية الضرب دقيقة للأعداد التي أدخلناها، لكن هذه الأعداد نفسها تقديرات. عرض أرقام إضافية في الناتج لا يحسن القياسات الأصلية. يحدد المنزلق s عدد الأرقام المعنوية التي نحتفظ بها، بدءًا من أول رقم غير صفري.
+
+مثلًا، يصبح 105,000 بعد التقريب إلى رقم معنوي واحد هو 100,000. وعند الاحتفاظ بثلاثة أرقام معنوية يبقى 105,000. نختار دقة النتيجة بحسب ما نعرفه عن المدخلات، لا بحسب عدد الأرقام التي تستطيع الشاشة عرضها.
## Formal
-تقدير فيرمي يضرب كمّيات تقريبية للحصول على إجابة برتبة الحجم: هنا $N \approx A\times\rho$، المساحة مضروبة في الكثافة.
+العدد الكلي المقدر هو $N\approx A\times\rho$، حيث A المساحة وrho متوسط الكثافة. تُختصر وحدة المساحة مع وحدة «لكل مساحة» في الكثافة، فيبقى عدد الشعرات.
-التقريب إلى $s$ أرقام معنوية يحتفظ فقط بأول $s$ رقم ذي معنى ويستبدل الباقي بأصفار (مع تعديل أُسّ العشرة عند الحاجة)، بحيث تطابق الدقة المذكورة مدى معرفة المدخلات فعليًا.
+للتقريب إلى s من الأرقام المعنوية، نبدأ العدّ من أول رقم غير صفري. نحتفظ بالعدد المطلوب من الأرقام، ثم نفحص الرقم التالي. إذا كان 5 أو أكبر نزيد الرقم الأخير المحتفظ به، وإلا نبقيه كما هو. في الأعداد الصحيحة المستخدمة هنا، نستبدل المنازل المتبقية بأصفار.
## Advanced
-حين يحمل تقديران مستقلان كل منهما عدم يقين بمقدار عامل 2 تقريبًا، فقد يحمل ناتج ضربهما عدم يقين أقرب إلى عامل 4، لأن الأخطاء تتراكم ضربيًا لا جمعيًا. وهذا بالضبط سبب أن تقدير فيرمي الجاد يُذكر كرتبة حجم، لا كعدّ دقيق، مهما بدت الحسابات نظيفة.
+عدم اليقين في المدخلين يؤثر في الناتج. إذا كانت كل قيمة قد تتراوح بين نصف تقديرها وضعفه، فقد يتراوح حاصل الضرب بين ربع تقديره وأربعة أمثاله. هذا مدى للقيم الممكنة، ولا يحدد احتمال كل قيمة. يحتاج تقدير عدم اليقين بدقة أكبر إلى معلومات عن القياسات وعلاقتها ببعضها.
## Derivation
-1. اضرب المساحة التقريبية في الكثافة التقريبية: 500 في 200.
-2. تلك الضربة تعطي 100,000.
-3. مكتوبًا برقم معنوي واحد، ذلك هو $1\times10^{5}$.
+1. نضرب المساحة المقدرة، 500 cm²، في الكثافة المقدرة، 200 شعرة لكل cm².
+2. الناتج 100,000 شعرة، لكنه يبقى تقديريًا لأن المدخلات تقديرية.
+3. توضح الصيغة العلمية أننا نحتفظ برقم معنوي واحد، فنكتب $1\times10^5$.
## Real world
-### مقابلات العمل
-«كم عدد ضابطي أوتار البيانو في شيكاغو؟» سؤال كلاسيكي من نوع تقدير فيرمي. لا أحد يتوقع عددًا دقيقًا، بل سلسلة ضرب تقريبية سليمة فقط.
+### تقدير عدد الحضور
+
+نقدّر المساحة المشغولة ومتوسط الأشخاص في المتر المربع. إذا اختلف الازدحام كثيرًا بين أجزاء المكان، فقد لا يكفي متوسط واحد لتمثيلها.
+
+### المواد المطلوبة
-### ميزانيات الهندسة
-التقديرات الأولى لتكلفة جسر أو مبنى تضرب كمّيات تقريبية (الطول، المادة لكل متر، التكلفة لكل طن) بالطريقة نفسها، ثم تُصقل لاحقًا مع وصول أرقام حقيقية.
+ضرب المساحة في كمية المادة اللازمة لكل متر مربع يعطي تقديرًا أوليًا. نحسب الهدر وعدم دقة القياس بصورة منفصلة.
-### التقارير العلمية
-قياس يُذكر كـ«نحو 7 ملايين» بدل رقم مزيّف الدقة مثل «7,032,481» يحترم الأرقام المعنوية، ولا يدّعي معرفة أرقام لم تُقَس قط.
+### عرض القياسات
-### حبات الرمل، أوراق الشجرة
-كلاهما تقديرا فيرمي كلاسيكيان: اضرب عددًا تقريبيًا لكل رقعة صغيرة في عدد الرقع، وقرّب الناتج إلى أكبر عدد من الأرقام تستطيع تبريره فعلًا.
+ينبغي أن يعكس تقريب النتيجة جودة القياسات. كثرة الأرقام المعروضة وحدها لا تعني أن القياس أدق.
diff --git a/content/lessons/numbers/estimation-and-rounding/en.md b/content/lessons/numbers/estimation-and-rounding/en.md
index ae8f6f23..eb59c067 100644
--- a/content/lessons/numbers/estimation-and-rounding/en.md
+++ b/content/lessons/numbers/estimation-and-rounding/en.md
@@ -1,68 +1,68 @@
---
title: Estimation and rounding
-summary: >-
- Estimate how many hairs are on a head by multiplying two rough numbers
- together, then round the answer honestly to show how sure you really are.
+summary: Estimate a total from a small sample, then round it to a precision the inputs can support.
parameters:
- A: scalp area A (cm²)
- rho: hair density ρ (hairs per cm²)
- s: significant figures kept s
+ A: estimated scalp area A (cm²)
+ rho: estimated density ρ (hairs per cm²)
+ s: significant figures s
variables:
- - the area covered by hair, in square centimetres
- - the density of hair, in hairs per square centimetre
- - the estimated number of hairs
+ - estimated area covered by hair, in square centimetres
+ - estimated average number of hairs per square centimetre
+ - estimated total number of hairs
---
## Try it
-1. Set A to 500 and rho to 200: the grid fills to show the multiplication, and the big number reads 100,000 — a full, round estimate.
-2. Raise s from 1 to 4: watch the same number get printed with more and more digits kept sharp, and the rest fading — those later digits were never really known.
-3. Push A to 700 and rho to 300: the estimate jumps past 200,000, showing how sensitive a Fermi estimate is to the rough numbers you started with.
+1. Set A to 500 and rho to 200. Multiplying gives an estimate of 100,000 hairs. The dotted patch illustrates area and density; its dots are not a full hair count.
+2. Set A to 350 and rho to 300. The product is 105,000. Compare s = 1 with s = 3: the reported values are 100,000 and 105,000.
+3. Keep rho fixed and increase A. The estimate rises because the same average density now covers more area.
## Real-life examples
-1. **An average adult head.** A = 500, rho = 200, s = 1: about 500 cm² of scalp times 200 hairs per cm² gives roughly 100,000 hairs — a number worth trusting to one significant figure only.
-2. **A larger head, coarser hair.** A = 600, rho = 150, s = 2: about 600 cm² times 150 hairs per cm² gives roughly 90,000 hairs, reported to two significant figures.
-3. **A smaller head, very fine hair.** A = 350, rho = 300, s = 1: about 350 cm² times 300 hairs per cm² gives roughly 100,000 hairs again — a different head, a similar answer.
+1. **A first estimate.** An assumed area of 500 cm² and density of 200 hairs per cm² give 100,000 hairs. With s = 1, report about one hundred thousand.
+2. **Different assumptions.** An area of 600 cm² and density of 150 give 90,000. The setting s = 2 keeps two significant figures; it does not prove that the inputs are that precise.
+3. **A rounded product.** An area of 350 cm² and density of 300 give 105,000. To one significant figure, this rounds to 100,000.
## Test yourself
-1. Set the area and density so the estimate lands close to 100,000 hairs.
-2. Set the rounding to keep only 1 significant figure.
-3. Find an area and density whose estimate passes 150,000.
+1. Choose A and rho so their product is within 8000 of 100,000.
+2. Set s to 1.
+3. Make the unrounded estimate greater than 150,000.
## Intuition
-You cannot count every hair on a head, but you can estimate: guess the area of scalp it covers, guess how many hairs grow per square centimetre, and multiply. On screen, dragging A stretches the grid representing scalp area, and dragging rho packs more or fewer dots into each square centimetre of it — the big readout is simply those two rough numbers multiplied together.
+Instead of counting every hair, estimate how many grow in one square centimetre and how much area is covered. If there are about 200 hairs per square centimetre over about 500 square centimetres, multiply 200 by 500. The estimated total is 100,000.
-Because both A and rho were guesses, the product is a guess too — a good one, but not exact to the last digit. Reporting "100,000" tells the truth about that: 1 significant figure, one meaningful digit. Reporting "103,742" would be dishonest, pretending to a precision the estimate never had. Drag s up and watch extra digits appear and then fade to grey — those greyed digits are exactly the ones a Fermi estimate cannot actually promise you.
+The multiplication is exact for the numbers entered, but those numbers came from estimates. Showing more digits in the answer does not improve the original measurements. The s control chooses how many significant figures to report, starting from the first nonzero digit.
+
+For example, 105,000 rounded to one significant figure becomes 100,000. To three significant figures it remains 105,000. Choose the precision using what you know about the inputs, not how many digits the screen can display.
## Formal
-A Fermi estimate multiplies rough quantities to get an order-of-magnitude answer: here $N \approx A\times\rho$, area times density.
+The estimated total is $N\approx A\times\rho$, where A is area and rho is average density. The area units cancel the per-area units of the density, leaving a count.
-Rounding to $s$ significant figures keeps only the first $s$ meaningful digits and replaces the rest with zeros (adjusting the power of ten as needed), so the reported precision matches how well the inputs were actually known.
+To round to s significant figures, start counting at the first nonzero digit. Keep s digits and inspect the next digit: if it is 5 or greater, round up; otherwise keep the retained digits unchanged. For the whole-number counts here, replace the remaining places with zeros.
## Advanced
-When two independent estimates each carry roughly a factor of 2 uncertainty, their product can carry closer to a factor of 4, since the errors compound multiplicatively rather than adding — which is exactly why a serious Fermi estimate is stated as an order of magnitude, not a precise count, however clean the arithmetic looks.
+Uncertainty in both inputs affects the product. If each input could be half to twice its estimate, the product could be one quarter to four times its estimate. This is a range of possible values, not a claim about how likely each value is. More careful uncertainty estimates require information about the measurements and their dependence.
## Derivation
-1. Multiply the rough area by the rough density: 500 times 200.
-2. That multiplication gives 100,000.
-3. Written to one significant figure, that is $1\times10^{5}$.
+1. Multiply the estimated area, 500 cm², by the estimated density, 200 hairs per cm².
+2. The product is 100,000 hairs; it remains an estimate because the inputs are estimates.
+3. Scientific notation makes the one-significant-figure report explicit: $1\times10^5$.
## Real world
-### Job interviews
-"How many piano tuners are in Chicago?" is a classic Fermi-estimate question — nobody expects an exact count, only a sound chain of rough multiplications.
+### Counting a crowd
+
+Estimate the occupied area and the average people per square metre. Different densities across the area can make one average misleading.
+
+### Materials
-### Engineering budgets
-Early cost estimates for a bridge or a building multiply rough quantities (length, material per metre, cost per tonne) the same way, refined later as real numbers arrive.
+Area times material needed per square metre gives an initial quantity estimate. Allow separately for waste and measurement uncertainty.
-### Science reporting
-A measurement reported as "about 7 million" instead of a fake-precise "7,032,481" is respecting significant figures — not claiming to know digits that were never measured.
+### Reporting measurements
-### Grains of sand, leaves on a tree
-Both are classic Fermi estimates: multiply a rough count per small patch by the number of patches, and round the answer to as many digits as you can actually justify.
+A rounded result should reflect the quality of the measurements. The number of displayed digits alone does not establish accuracy.
diff --git a/content/lessons/numbers/how-big-is-a-million/ar.md b/content/lessons/numbers/how-big-is-a-million/ar.md
index 34e33c1c..122fd7ff 100644
--- a/content/lessons/numbers/how-big-is-a-million/ar.md
+++ b/content/lessons/numbers/how-big-is-a-million/ar.md
@@ -1,60 +1,64 @@
---
-title: 'كم يبلغ المليون؟'
-summary: >-
- لو عددتَ رقمًا كل ثانية، كم يومًا تحتاج لتبلغ المليون؟ أكثر مما تظن بكثير.
+title: ما حجم المليون؟
+summary: قارن بين المليون والمليار بحساب الوقت اللازم لعدّ كل منهما.
parameters:
e: الأس e
variables:
- - 'الأس: كم صفرًا يتبع الواحد في عدد النقاط المعروضة'
+ - الأس؛ العدد يساوي 1 يتبعه e من الأصفار
---
## Try it
-1. ارفع «الأس e» من 0. راقب الشبكة الزرقاء على اليسار تمتلئ أسرع بكثير من حركة المنزلق.
-2. اجعل e يساوي 6. اقرأ على اليمين عدد الأيام التي يحتاجها عدّ كل نقطة بصوت عالٍ، نقطة كل ثانية.
-3. ارفع e إلى 9. راقب زمن العدّ يقفز من أيام إلى عقود.
+1. اضبط e على 4. تمتلئ الشبكة وتمثل 10,000 نقطة.
+2. اضبط e على 6. تبقى الشبكة ممتلئة. اقرأ عدد الشبكات اللازمة لتمثيل مليون نقطة، والوقت اللازم لعدّها.
+3. اضبط e على 9. قارن وقت العدّ الجديد بوقت عدّ المليون. أصبح العدد أكبر بألف مرة.
## Real-life examples
-1. **قسم مليء بالجمهور في ملعب.** نحو $10^{4}$ مقعد، أي عشرة آلاف مقعد، عدد يمكن عدّه سيرًا بين الصفوف.
-2. **كيس أرز كبير.** نحو $10^{6}$ حبة، مليون حبة، لا أحد يعدّها يدويًا.
-3. **كومة من الأوراق النقدية.** نحو $10^{9}$ ورقة نقدية، مليار ورقة، لو كدّسناها لعلت فوق مبنى.
+1. **عشرة آلاف تذكرة.** عند e = 4، يكون العدد 10,000. عدّ تذكرة كل ثانية يستغرق نحو 2.8 ساعة.
+2. **مليون قطعة.** عند e = 6، يستغرق عدّ قطعة كل ثانية نحو 11.6 يومًا دون توقف.
+3. **مليار ورقة.** عند e = 9، يستغرق العدّ نحو 31.7 سنة. يفترض ارتفاع رزمة الورق المعروض أن سمك الورقة 0.1 مليمتر.
## Test yourself
-1. اجعل e بحيث تعرض الصورة مليون نقطة بالضبط.
-2. ارفع e إلى تسعة، مليار نقطة.
-3. اجعل e يساوي 10 أو أكثر، عشرة مليارات نقطة.
+1. اجعل العدد مليونًا.
+2. اجعل العدد مليارًا.
+3. اجعل العدد عشرة مليارات على الأقل.
## Intuition
-جرّب أن تعدّ حتى مئة بصوت عالٍ. يستغرق ذلك أقل من دقيقة، وتستطيع تخيّل كل رقم وأنت تقوله. انظر الآن إلى الشبكة الزرقاء على الشاشة: عند e يساوي 6 تمتلئ الشبكة تمامًا. كل مربع أزرق يمثّل نقطة من مليون نقطة، أكثر بكثير مما تستطيع عين أن تعدّه واحدة واحدة.
+إذا عددت قطعة كل ثانية، فإن عدّ 100 قطعة يستغرق 100 ثانية. ولعدّ مليون قطعة، تحتاج إلى مليون ثانية. نحولها إلى أيام بالقسمة على 86,400، وهو عدد الثواني في اليوم. النتيجة نحو 11.6 يومًا، دون تخصيص وقت للنوم أو الطعام.
-الأس e هو ببساطة عدد الأصفار التي تتبع الواحد في ذلك العدد. ادفع e خطوة واحدة إلى الأعلى. لن يزحف زمن العدّ المعروض على اليمين بهدوء، بل يقفز عشر مرات. يتحول عدّ المليون، نحو 12 يومًا بلا توقف، إلى نحو 4 أشهر لعدّ عشرة ملايين.
+المليار يساوي ألف مليون. لذلك يستغرق عدّه بالسرعة نفسها وقتًا أطول بألف مرة، أي نحو 31.7 سنة. قد تبدو كلمتا مليون ومليار متقاربتين، لكن مقارنة الوقت توضح الفرق الكبير بين الكميتين.
+
+لا يمكن للرسم عرض كل نقطة من المليون. تمثل الشبكة الكاملة 10,000 نقطة، ولذلك نحتاج إلى 100 شبكة لتمثيل مليون. عندما يتجاوز العدد سعة الرسم، اقرأ عدد الشبكات المطلوب بجانبه.
## Formal
-عدد النقاط المعروضة هو $10^{e}$. وعدّها نقطة كل ثانية يستغرق $10^{e}$ ثانية، أي $\dfrac{10^{e}}{86400}$ يومًا، لأن اليوم يحوي $86400$ ثانية.
+العدد المختار هو $10^e$. عند عدّ قطعة كل ثانية، يكون الزمن بالأيام $10^e/86400$. يفترض الحساب سرعة ثابتة دون استراحات.
-عند $e=6$ يبلغ ذلك نحو $11.6$ يومًا، وعند $e=9$ يبلغ نحو $31.7$ سنة. كل خطوة إضافية في $e$ تضرب زمن العدّ في عشرة، تمامًا كما تضرب عدد النقاط.
+زيادة e بمقدار 1 تضرب العدد والزمن في عشرة. وزيادته بمقدار 3 تضربهما في ألف.
## Advanced
-حَدْس الإنسان تجاه الكمية لوغاريتمي تقريبًا لا خطي، فنحن نقارن الأشياء طبيعيًا بالنسبة لا بالفرق. لهذا يبدو المنزلق الخطي المقترن بأس $e$ طبيعيًا: كل خطوة متساوية على المنزلق ينبغي أن تشعرك بقفزة متساوية في «الحجم»، و$10^{e}$ يحقق ذلك بالضبط.
+يمكن مقارنة الأعداد الكبيرة باستخدام النسبة بينهما. نسبة المليار إلى المليون هي $10^9/10^6=10^3$. على المقياس اللوغاريتمي، تمثل ثلاث خطوات في الأس زيادة بمقدار ألف مرة.
## Derivation
-1. عدّ نقطة كل ثانية لعرض $10^{e}$ نقطة يستغرق $10^{e}$ ثانية.
-2. اليوم يساوي $86400$ ثانية، فذلك العدد من الثواني يساوي $\dfrac{10^{e}}{86400}$ يومًا.
-3. بالحساب: مليون نقطة تأخذ نحو $11.6$ يومًا، ومليار نقطة تأخذ نحو $31.7$ سنة.
+1. عند عدّ قطعة كل ثانية، يساوي عدد الثواني عدد القطع.
+2. نقسم على 86,400 لتحويل الثواني إلى أيام.
+3. المليون ثانية يساوي نحو 11.6 يومًا. والمليار ثانية يساوي نحو 31.7 سنة، بافتراض 365.25 يومًا للسنة.
## Real world
-### ميزانيات الدول
-نذكر ميزانيات الحكومات عادة بالملايين أو المليارات، لكن الكلمتين تخفيان مسافة هائلة بينهما.
+### الميزانيات
+
+ميزانية قدرها مليار ريال تساوي ألف ميزانية، قيمة كل منها مليون ريال. توضح النسبة فرق الحجم بينهما.
+
+### معالجة السجلات
+
+إذا عالج برنامج سجلًا واحدًا كل ثانية، فإن معالجة مليار سجل تستغرق الوقت نفسه في مثال العدّ. زيادة سرعة المعالجة تقلل الزمن بالنسبة نفسها.
-### عدد النجوم
-تضم مجرتنا نحو $10^{11}$ نجم، أي مئة مليار نجم، مئة ضعف أعلى قيمة على هذا المنزلق.
+### رصّ الورق
-### حبات الرمل
-تحوي حفنة رمل واحدة حبات أكثر مما يعدّه معظم الناس في حياتهم كلها، وتتجاوز المليون بسهولة.
+نضرب عدد الأوراق في سمك الورقة لتقدير ارتفاع الرزمة. يعتمد التقدير على السمك المفترض، ويتجاهل انضغاط الأوراق.
diff --git a/content/lessons/numbers/how-big-is-a-million/en.md b/content/lessons/numbers/how-big-is-a-million/en.md
index 6e1fd461..aec89a48 100644
--- a/content/lessons/numbers/how-big-is-a-million/en.md
+++ b/content/lessons/numbers/how-big-is-a-million/en.md
@@ -1,61 +1,64 @@
---
title: How big is a million?
-summary: >-
- Find out how many days it would actually take to count to a million, one
- number a second.
+summary: Compare a million and a billion by calculating how long each would take to count.
parameters:
- e: the exponent e
+ e: exponent e
variables:
- - 'the exponent: how many zeros follow the 1 in the number of dots shown'
+ - exponent; the number is 1 followed by e zeros
---
## Try it
-1. Drag «exponent e» up from 0. Watch the blue grid on the left fill in far faster than the slider moves.
-2. Set e to 6. On the right, read how many days it says it would take to count every dot out loud, one per second.
-3. Push e to 9. Watch the counting time jump from days to decades.
+1. Set e to 4. The grid is full and represents 10,000 dots.
+2. Set e to 6. The grid stays full. Read the number of full grids needed for a million and the counting time beside it.
+3. Set e to 9. Compare the new counting time with the time for a million. The number has become a thousand times as large.
## Real-life examples
-1. **A packed stadium section.** About $10^{4}$ seats, ten thousand — a number you could still count by walking the rows.
-2. **A big sack of rice.** About $10^{6}$ grains, a million — no one counts these by hand.
-3. **A stack of banknotes.** About $10^{9}$ single bills, a billion — piled up, they would tower over a building.
+1. **Ten thousand tickets.** At e = 4, the number is 10,000. Counting one each second would take about 2.8 hours.
+2. **A million items.** At e = 6, counting one each second would take about 11.6 days without breaks.
+3. **A billion sheets.** At e = 9, counting takes about 31.7 years. The displayed stack height assumes each sheet is 0.1 millimetre thick.
## Test yourself
-1. Set e so the picture shows exactly a million dots.
-2. Push e up to nine — a billion dots.
-3. Get e to 10 or higher — ten billion dots.
+1. Set the number to one million.
+2. Set the number to one billion.
+3. Make the number at least ten billion.
## Intuition
-Try counting to a hundred out loud — that takes under a minute, and you can picture every single number as you say it. Now look at the blue grid on screen: at e = 6 it is completely full, one blue square standing for each of a million dots, far more than any eye can count one by one.
+Counting one item every second takes 100 seconds for 100 items. For a million items it takes a million seconds. To turn that into days, divide by the 86,400 seconds in a day. The result is about 11.6 days, with no time allowed for sleeping or eating.
-The exponent e is just how many zeros follow the 1 in that count. Push e up by one notch, and the counting time shown on the right does not creep up gently — it jumps by a factor of ten, turning about 12 days of nonstop counting (one million) into about 4 months (ten million).
+A billion is a thousand million. At the same pace, counting it takes a thousand times as long: about 31.7 years. The number names sound similar, but the time comparison shows how different the amounts are.
+
+The picture cannot display every dot in a million. One full grid represents 10,000 dots, so a million would need 100 full grids. Read the grid-count label when the number exceeds the picture's capacity.
## Formal
-The number of dots shown is $10^{e}$. Counting them one per second takes $10^{e}$ seconds, which is $\dfrac{10^{e}}{86400}$ days, since a day holds $86400$ seconds.
+The selected count is $10^e$. At one item per second, the counting time in days is $10^e/86400$. This assumes a constant pace and no breaks.
-For $e=6$ that is about $11.6$ days; for $e=9$ it is about $31.7$ years. Each extra step of $e$ multiplies the counting time by ten, exactly as it multiplies the number of dots.
+Increasing e by 1 multiplies both the count and the time by ten. Increasing it by 3 multiplies them by a thousand.
## Advanced
-Human intuition for quantity is roughly logarithmic, not linear — we naturally compare things by ratio rather than by difference. That is precisely why a linear slider paired with an exponent $e$ feels right: equal slider steps should feel like equal jumps in "how big", and $10^{e}$ delivers that.
+A ratio compares large quantities without listing all their digits. The ratio of a billion to a million is $10^9/10^6=10^3$. On a logarithmic scale, that thousandfold increase occupies three exponent steps.
## Derivation
-1. Counting one dot per second, showing $10^{e}$ dots takes $10^{e}$ seconds.
-2. A day is $86400$ seconds, so that many seconds is $\dfrac{10^{e}}{86400}$ days.
-3. Working it out: a million dots take about $11.6$ days, and a billion dots take about $31.7$ years.
+1. At one item per second, the number of seconds equals the number of items.
+2. Divide by 86,400 to convert seconds to days.
+3. A million seconds is about 11.6 days. A billion seconds is about 31.7 years, using 365.25 days per year.
## Real world
-### National budgets
-Government budgets are usually quoted in millions or billions — the words hide just how far apart those two numbers really are.
+### Budgets
+
+A budget of one billion currency units is a thousand times a budget of one million. Comparing the ratio avoids treating the names as nearly interchangeable.
+
+### Processing records
+
+At a fixed rate of one record per second, processing a billion records has the same time requirement as this counting example. A faster rate reduces the time proportionally.
-### Star counts
-A galaxy holds on the order of $10^{11}$ stars — a hundred billion, a hundred times further than the top of this slider.
+### Stacking paper
-### Grains of sand
-A handful of sand already has more grains than most people ever count in a lifetime, easily past a million.
+Multiplying sheet count by sheet thickness gives a stack-height estimate. The result depends on the assumed thickness and ignores compression.
diff --git a/content/lessons/numbers/percentages-in-daily-life/ar.md b/content/lessons/numbers/percentages-in-daily-life/ar.md
index 6f82a346..4f51325a 100644
--- a/content/lessons/numbers/percentages-in-daily-life/ar.md
+++ b/content/lessons/numbers/percentages-in-daily-life/ar.md
@@ -1,68 +1,69 @@
---
title: النسب المئوية في الحياة اليومية
-summary: >-
- البقشيش والخصم وتغير السعر. ولماذا زيادة 50٪ ثم خصم 50٪ لا تعيدك إلى البداية؟
+summary: احسب التغيرات المئوية، وافهم لماذا لا تلغي زيادة ونقصان بالنسبة نفسها أثر بعضهما.
parameters:
- P: السعر الأصلي P
- p1: التغيّر المئوي الأول p1 (٪)
- p2: التغيّر المئوي الثاني p2 (٪)
+ P: المبلغ الأصلي P
+ p1: التغير الأول p1 (%)
+ p2: التغير الثاني p2 (%)
variables:
- - المبلغ الأصلي، قبل أي تغيير
- - التغيّر المئوي الأول المطبَّق عليه
- - التغيّر المئوي الثاني، المطبَّق بعد الأول
- - المبلغ النهائي، بعد كلا التغييرين
+ - المبلغ الأصلي قبل التغييرين
+ - التغير المئوي الأول، ويُحسب من المبلغ الأصلي
+ - التغير المئوي الثاني، ويُحسب من نتيجة التغيير الأول
+ - المبلغ النهائي بعد التغييرين
---
## Try it
-1. اضبط «P» على 50 و«p1» على 20، وأبقِ «p2» عند 0. يكبر الشريط بمقدار الخُمس بالضبط. هذا بقشيش 20٪ على وجبة بخمسين دولارًا.
-2. اضبط «P» على 80 و«p1» على -30، ثم ارفع «p2» إلى 8. يتقلص الشريط أولًا بسبب الخصم. يكبر بعدها قليلًا بسبب الضريبة على الرقم الأصغر.
-3. اضبط «P» على 100، و«p1» على 50، ثم «p2» على -50. يرتفع الشريط متجاوزًا 150، ثم يهبط. اقرأ القراءة النهائية جيدًا، فهي تستقر عند 75، لا تعود إلى 100.
+1. اضبط P على 50 وp1 على 20 وp2 على 0. تعرض الأعمدة 50 و60 و60. أضافت الزيادة البالغة 20% مقدارًا قدره 10.
+2. اضبط P على 80 وp1 على -30 وp2 على 8. يعطي التغيير الأول 56، والثاني 60.48. تُحسب النسبة الثانية من 56.
+3. اضبط P على 100 وp1 على 50 وp2 على -50. تعرض الأعمدة 100 و150 و75. لماذا أصبح المبلغ النهائي أقل من الأصلي؟
## Real-life examples
-1. **وجبة بخمسين دولارًا، بقشيش 20٪ (P = 50، p1 = 20، p2 = 0).** يرفع البقشيش وحده المجموع من 50 إلى 60 دولارًا.
-2. **قميص بثمانين دولارًا، خصم 30٪ ثم ضريبة 8٪ (P = 80، p1 = -30، p2 = 8).** يخفضه الخصم إلى 56 دولارًا. ترفعه الضريبة على ذلك الرقم الأصغر إلى 60.48 دولارًا.
-3. **100 دولار، ترتفع 50٪ ثم تنخفض 50٪ (P = 100، p1 = 50، p2 = -50).** سنة من الأرباح تصل بها إلى 150. سنة من الخسائر تنزل بها إلى 75، لا تعود إلى 100.
+1. **إضافة 20% إلى فاتورة بقيمة 50.** الزيادة 10، فيصبح المجموع 60. التغير الثاني هنا صفر.
+2. **خصم تتبعه رسوم.** خصم 30% من 80 يعطي 56. إذا افترضنا رسومًا بنسبة 8% على المبلغ المخفض، نضيف 4.48 فنحصل على 60.48.
+3. **زيادة يتبعها نقصان.** زيادة 100 بنسبة 50% تعطي 150. إنقاص هذا المبلغ الجديد بنسبة 50% يعطي 75.
## Test yourself
-1. جد نسبة البقشيش على وجبة بخمسين دولارًا التي ترفع المجموع إلى 60 دولارًا.
-2. اضبط «p1» على 50٪ و«p2» على -50٪ و«P» على 100. اقرأ المبلغ النهائي فعليًا.
-3. جد ارتفاعًا يتبعه انخفاض يترك المبلغ النهائي أقل مما بدأ.
+1. اختر قيمًا تعطي مبلغًا نهائيًا لا يبتعد عن 60 بأكثر من 1.50.
+2. اضبط P على 100 وp1 على 50 وp2 على -50، ثم اقرأ المبلغ النهائي.
+3. اختر تغيرًا أول موجبًا وثانيًا سالبًا، بحيث يصبح المبلغ النهائي أقل من P.
## Intuition
-البقشيش والخصم وضريبة المبيعات كلها الحركة نفسها. اضرب في $1+\frac{p}{100}$، حيث $p$ موجب لارتفاع وسالب لانخفاض. حرّك «p1» صعودًا من وجبة بخمسين دولارًا، فيتمدد الشريط على الشاشة. عند 20٪ يصل إلى 60 دولارًا، وهذه هي الفاتورة مع البقشيش. أضف تغييرًا ثانيًا، «p2»، فيتمدد الشريط أو يتقلص من جديد. لكنه ينطلق هذه المرة من الرقم الجديد الذي تركه التغيير الأول، لا من «P» الأصلي.
+النسبة المئوية تعني مقدارًا من كل مئة. لحساب 20% من 50، نقسم 50 على 100 ثم نضرب في 20، فنحصل على 10. إذا أضفناها إلى المبلغ الأصلي أصبح 60، وإذا طرحناها أصبح 40.
-هذا سبب أن ارتفاعًا بنسبة 50٪ يتبعه انخفاض بنسبة 50٪ لا يعيدك إلى البداية. ادفع «p1» إلى 50 على قيمة أصلية 100، فيتسلق الشريط إلى 150. ادفع «p2» بعدها إلى -50، فيخسر الشريط نصف الـ150، أي 75، لا نصف الـ100 الأصلية. النسبة نفسها في المرتين، لكنها مأخوذة من مبلغ مختلف تغيّر بالفعل.
+عند وجود تغييرين، نحسب نتيجة الأول قبل تطبيق النسبة الثانية. نبدأ من 100، فنضيف 50%، أي 50، ليصبح المبلغ 150. إذا أنقصناه الآن بنسبة 50%، نحذف نصف 150، أي 75. يبقى 75 لأن النسبتين حُسبتا من مبلغين مختلفين.
+
+تعرض الأعمدة الثلاثة المبلغ الأصلي، ثم نتيجة التغيير الأول، ثم نتيجة الثاني. النسبة الموجبة تزيد المبلغ الحالي، والسالبة تنقصه. قارن الأرقام المكتوبة أيضًا، لأن مقياس الرسم يتغير ليتسع للقيم المعروضة.
## Formal
-كل تغيّر مئوي يضرب المبلغ الحالي في عامل $1+\frac{p}{100}$. وتطبيق $p_1$ ثم $p_2$ بالتتابع يعطي المبلغ النهائي $F = P\left(1+\frac{p_1}{100}\right)\left(1+\frac{p_2}{100}\right)$.
+التغير المئوي p يضرب المبلغ الحالي في $1+p/100$. مثلًا، الزيادة 20% تستخدم معاملًا قدره 1.2، والنقصان 20% يستخدم 0.8.
-ولأن $p_1$ و $p_2$ يُطبَّقان على مبلغين أساسيين مختلفين (الثاني على نتيجة الأول)، فإن $F$ ليس عمومًا مساويًا لتطبيق تغيّر مركّب واحد قدره $p_1+p_2$ في المئة على $P$.
+إذا كان المبلغ الأصلي P، والتغيران المتتاليان p₁ وp₂، فإن الناتج هو $F=P(1+p_1/100)(1+p_2/100)$. جمع النسبتين يعطي عادة نتيجة مختلفة، لأنه يتجاهل تغير المبلغ الذي تُحسب منه النسبة الثانية.
## Advanced
-توسيع حاصل الضرب يُظهر الفجوة بدقة: $F = P\left(1+\frac{p_1+p_2}{100}+\frac{p_1 p_2}{10000}\right)$. فالتغيّر المركّب الحقيقي يختلف عن جمع $p_1+p_2$ ببساطة بمقدار الحد المتقاطع $\frac{p_1 p_2}{10000}$. وهذا الحد سالب كلما كان أحد التغييرين ارتفاعًا والآخر انخفاضًا، وهذا بالضبط سبب أن «+50٪ ثم -50٪» يخسر أرضًا بدل أن يتعادل.
+بعد فك حاصل الضرب، تكون نسبة التغير الكلية $p_1+p_2+p_1p_2/100$. عند زيادة 50% ثم نقصان 50%، تساوي النتيجة -25%. يعطي عكس الترتيب النتيجة نفسها في هذا النموذج لأن الضرب تبادلي، لكن الرسوم الفعلية قد تتبع قواعد أو تقريبات مختلفة.
## Derivation
-1. مبلغ قدره 100 دولار يرتفع 50٪ يُضرب في 1.50، فيصل إلى 150.
-2. ذلك المبلغ الجديد 150 دولارًا، حين ينخفض 50٪، يُضرب في 0.50، فيصل إلى 75.
-3. 75 لا يساوي الأصل 100. فالتغييران بنسبة 50٪ لم يُلغيا أحدهما الآخر.
+1. زيادة 100 بنسبة 50% تضيف 50، فتعطي 150. ويمكن حسابها بالضرب في 1.50.
+2. نقصان 150 بنسبة 50% يحذف 75، فيبقى 75. ويمكن حسابه بالضرب في 0.50.
+3. نقارن 75 بالمبلغ الأصلي 100. لم تُلغِ النسبتان أثر بعضهما لأنهما حُسبتا من مبلغين مختلفين.
## Real world
-### التسوق
-خصومات المتاجر وضريبة المبيعات كلاهما تغيّرات مئوية تُطبَّق واحدًا تلو الآخر، تمامًا مثل p1 و p2 هنا.
+### الخصومات
+
+يُحسب الخصمان المتتاليان من مبلغين مختلفين. احسب السعر بعد الخصم الأول، ثم طبق عليه الخصم الثاني.
+
+### تغير الأسعار
-### فواتير المطاعم
-البقشيش تغيّر مئوي واحد يُضاف إلى مجموع الفاتورة، أبسط حالة من هذه الصيغة نفسها، مع إبقاء p2 عند صفر.
+زيادة السعر ثم تخفيضه بالنسبة نفسها تعطي سعرًا أقل في هذا النموذج. كون ذلك مفيدًا لك يعتمد على كونك مشتريًا أم بائعًا.
-### الاستثمار
-سهم يرتفع 50٪ في سنة وينخفض 50٪ في التالية يصبح أقل قيمة مما بدأ به، ولهذا يمكن أن تكون متوسطات العوائد مضللة.
+### مراجعة الفواتير
-### الرواتب والأسعار
-زيادة في الراتب يتبعها لاحقًا خصم بالنسبة المئوية نفسها، أو ارتفاع سعر يتبعه تخفيض «مساوٍ»، كلاهما يتركانك في حال أسوأ مما كنت عليه قبل أي من التغييرين.
+حدد المبلغ الذي تُحسب منه كل نسبة. لا تعتمد النتيجة على النسبة المكتوبة وحدها، بل على أساس حسابها أيضًا.
diff --git a/content/lessons/numbers/percentages-in-daily-life/en.md b/content/lessons/numbers/percentages-in-daily-life/en.md
index 179516eb..87d29a52 100644
--- a/content/lessons/numbers/percentages-in-daily-life/en.md
+++ b/content/lessons/numbers/percentages-in-daily-life/en.md
@@ -1,70 +1,69 @@
---
title: Percentages in daily life
-summary: >-
- Work out tips, discounts and price changes the way a shop till does, and
- see why a 50% rise followed by a 50% drop never gets you back to where
- you started.
+summary: Calculate percentage changes and see why a rise and an equal-percentage fall do not cancel.
parameters:
- P: starting price P
- p1: first percent change p1 (%)
- p2: second percent change p2 (%)
+ P: starting amount P
+ p1: first change p1 (%)
+ p2: second change p2 (%)
variables:
- - the starting amount, before any change
- - the first percent change applied to it
- - the second percent change, applied after the first
- - the final amount, after both changes
+ - starting amount before either change
+ - first percentage change, applied to the starting amount
+ - second percentage change, applied to the result of the first
+ - final amount after both changes
---
## Try it
-1. Set P to 50 and p1 to 20, leaving p2 at 0: watch the bar grow by exactly a fifth — a 20% tip on a 50-dollar meal.
-2. Set P to 80, p1 to -30, then raise p2 to 8: the bar first shrinks for the discount, then grows a little for the tax added on top of the smaller number.
-3. Set P to 100, p1 to 50, then p2 to -50: the bar rises past 150, then falls — but read the final readout closely, it lands on 75, not back at 100.
+1. Set P to 50, p1 to 20 and p2 to 0. The bars show 50, 60 and 60. The 20% increase adds 10.
+2. Set P to 80, p1 to -30 and p2 to 8. The first change gives 56; the second gives 60.48. The second percentage uses 56 as its base.
+3. Set P to 100, p1 to 50 and p2 to -50. The bars show 100, 150 and 75. Explain why the final amount is below the starting amount.
## Real-life examples
-1. **A 50-dollar meal, 20% tip.** P = 50, p1 = 20, p2 = 0: the tip alone raises the total from 50 to 60 dollars.
-2. **An 80-dollar shirt, 30% off, then 8% tax.** P = 80, p1 = -30, p2 = 8: the discount drops it to 56 dollars, then tax on that smaller price brings it to 60.48 dollars.
-3. **100 dollars, up 50% then down 50%.** P = 100, p1 = 50, p2 = -50: a year of gains takes it to 150, a year of losses brings it down to 75 — not back to 100.
+1. **Adding 20% to a bill of 50.** The increase is 10, so the total is 60. The second change is zero.
+2. **A discount followed by a charge.** A 30% discount on 80 gives 56. An illustrative 8% charge on that discounted amount adds 4.48, giving 60.48.
+3. **A rise followed by a fall.** Increasing 100 by 50% gives 150. Reducing that new amount by 50% gives 75.
## Test yourself
-1. Find the tip percentage on a 50-dollar meal that brings the total to 60 dollars.
-2. Set p1 to 50%, p2 to −50%, and P to 100, and read what the final amount actually is.
-3. Find a rise followed by a fall that still leaves the final amount below where it started.
+1. Choose settings that give a final amount within 1.50 of 60.
+2. Set P to 100, p1 to 50 and p2 to -50, then read the final amount.
+3. Choose a positive first change and a negative second change that leave the final amount below P.
## Intuition
-A tip, a discount and a sales tax are all the same move: multiply by $1+\frac{p}{100}$, where $p$ is positive for a rise and negative for a drop. Drag p1 upward from a 50-dollar meal and the bar on screen stretches — at 20% it reaches 60 dollars, the bill with tip already added. Add a second change, p2, and the bar stretches or shrinks again, but now starting from the new height left by the first change, not from the original P.
+A percentage means an amount out of every hundred. To find 20% of 50, divide 50 by 100 and multiply by 20. That gives 10. Adding it to the original 50 gives 60; subtracting it would give 40.
-That second detail is why a 50% rise followed by a 50% drop does not return you to the start. Push p1 to 50 on a starting value of 100 and the bar climbs to 150; now push p2 to −50, and the bar loses half of 150, which is 75, not half of the original 100. The percentage is the same size both times, but it is taken of a different, already-changed amount — so the losses and gains are not mirror images of each other.
+For two changes, calculate the first result before applying the second percentage. Starting at 100, a 50% increase adds 50 and gives 150. A 50% decrease now removes half of 150, which is 75. The final amount is 75 because the two percentages were calculated from different amounts.
+
+The three bars show the starting amount, the result after the first change, and the result after the second. A positive percentage increases the current amount; a negative one decreases it. Compare the labels as well as bar heights, since the chart rescales to fit the values.
## Formal
-Each percent change multiplies the current amount by a factor $1+\frac{p}{100}$; applying $p_1$ then $p_2$ in sequence gives the final amount $F = P\left(1+\frac{p_1}{100}\right)\left(1+\frac{p_2}{100}\right)$.
+A percentage change p multiplies the current amount by $1+p/100$. For example, +20% uses the multiplier 1.2 and -20% uses 0.8.
-Because $p_1$ and $p_2$ are applied to different base amounts (the second to the result of the first), $F$ is generally not the same as applying a single combined change of $p_1+p_2$ percent to $P$.
+For starting amount P and successive changes p₁ and p₂, the final amount is $F=P(1+p_1/100)(1+p_2/100)$. Adding the two percentages generally gives a different result because it omits the effect of the first change on the second base.
## Advanced
-Expanding the product shows the exact gap: $F = P\left(1+\frac{p_1+p_2}{100}+\frac{p_1 p_2}{10000}\right)$, so the true combined change differs from simply adding $p_1+p_2$ by the cross term $\frac{p_1 p_2}{10000}$ — negative whenever one change is a rise and the other a fall, which is exactly why "+50% then −50%" loses ground rather than breaking even.
+Expanding the product gives a combined percentage change of $p_1+p_2+p_1p_2/100$. For +50% followed by -50%, that is -25%. Reversing the order gives the same result in this model because multiplication commutes; real charges may have different rules or rounding.
## Derivation
-1. A 100-dollar amount rising 50% is multiplied by 1.50, reaching 150.
-2. That new 150-dollar amount falling 50% is multiplied by 0.50, reaching 75.
-3. 75 is not equal to the original 100 — the two 50% changes did not cancel.
+1. A 50% increase on 100 adds 50, giving 150. Equivalently, multiply by 1.50.
+2. A 50% decrease on 150 removes 75, leaving 75. Equivalently, multiply by 0.50.
+3. Compare 75 with the original 100. The equal percentages did not cancel because their base amounts differed.
## Real world
-### Shopping
-Store discounts and sales tax are both percent changes applied one after another, exactly like p1 and p2 here.
+### Discounts
+
+Two successive discounts apply to different amounts. Calculate the first reduced price before applying the second discount.
+
+### Price changes
-### Restaurant bills
-A tip is a single percent change added to the bill total — the simplest case of this same formula, with p2 left at zero.
+A price increase followed by the same percentage decrease leaves a lower price in this model. Whether that is beneficial depends on whether you are buying or selling.
-### Investing
-A stock that rises 50% one year and falls 50% the next is worth less than when it started, which is why average returns can be misleading.
+### Checking a bill
-### Payroll and prices
-A pay rise followed later by a pay cut of the same percentage, or a price hike followed by an "equal" markdown, both leave you worse off than before either change.
+Identify which amount each percentage applies to. The calculation depends on the base, not only on the printed percentage.
diff --git a/content/lessons/numbers/powers-of-ten/ar.md b/content/lessons/numbers/powers-of-ten/ar.md
index 0e69633e..edc7b3a3 100644
--- a/content/lessons/numbers/powers-of-ten/ar.md
+++ b/content/lessons/numbers/powers-of-ten/ar.md
@@ -1,60 +1,64 @@
---
title: قوى العشرة
-summary: >-
- منزلق واحد من خيط الحمض النووي إلى الأرض كلها، وكل خطوة تضرب الحجم في عشرة.
+summary: قارن الأطوال بالضرب في عشرة أو القسمة عليها، خطوة بعد خطوة.
parameters:
e: الأس e
variables:
- - 'الأس: كم مرة نضرب عشرة في نفسها لتكوين العدد'
+ - الأس؛ زيادته بمقدار 1 تضرب الطول في عشرة
---
## Try it
-1. حرّك النقطة البرتقالية على المسطرة المسمّاة «الأس e». راقب الأيقونة في المنتصف تقفز من ذرة صغيرة نحو جبل كامل بعد بضع درجات فقط.
-2. اجعل e يساوي 0. تستقر الأيقونة عند طفل طوله متر واحد تقريبًا، وحدة كاملة بلا أي تكبير.
-3. ارفع e إلى 9. تقفز الأيقونة إلى المسافة بين الأرض والشمس، رغم أن النقطة نفسها بالكاد زحفت على المسطرة.
+1. اضبط e على 0. الطول هو متر واحد. الصورة مثال لحجم قريب، وليست قياسًا دقيقًا لذلك الجسم.
+2. اضبط e على 1 ثم على 2. يصبح الطول 10 أمتار ثم 100 متر. كل زيادة بمقدار 1 تضرب الطول في عشرة.
+3. اضبط e على -1 ثم على -2. يصبح الطول 0.1 متر ثم 0.01 متر. الأس السالب يعطي جزءًا من المتر، وليس طولًا سالبًا.
## Real-life examples
-1. **خيط من الحمض النووي.** نحو $10^{-9}$ m، قريب من عرض خيط حمض نووي واحد، أصغر من أن تراه بأي مجهر منزلي.
-2. **طفل واقف.** نحو $10^{0}$ m، أي متر واحد تقريبًا، حجم يومي يسهل تخيّله من دون مساعدة.
-3. **عبر الأرض كلها.** نحو $10^{7}$ m، قريب من قطر الأرض، وهو الحجم الذي تعرضه أيقونة الكرة الأرضية على المسطرة.
+1. **نانومتر واحد.** عند e = -9، يساوي الطول جزءًا من مليار جزء من المتر. صورة الحمض النووي مثال لحجم قريب من هذا المقياس.
+2. **متر واحد.** عند e = 0، يكون الطول مترًا واحدًا. يمكننا البدء منه لمقارنة أحجام مألوفة.
+3. **عشرة ملايين متر.** عند e = 7، يكون الطول 10,000,000 متر. تساعد صورة الأرض على تصور هذا الحجم، لكن العدد لا يمثل قطرها بدقة.
## Test yourself
-1. اجعل e يساوي 3 بالضبط.
-2. أنزل e إلى ما بين −3 و−1.
-3. اجعل $10^{e}$ يساوي مليونًا.
+1. اضبط e على 3 ليكون الطول 1000 متر.
+2. اختر قيمة لـe من -3 إلى -1، بما في ذلك الطرفان.
+3. اجعل الطول مليون متر.
## Intuition
-قف بجانب طفل بجوار جبل: طول الطفل نحو متر واحد، وارتفاع إفرست نحو تسعة آلاف متر. حرّك النقطة البرتقالية بضع درجات إلى اليمين، وراقب الأيقونة في المنتصف تقفز من الطفل إلى الجبل إلى الأرض كلها، قبل أن تعبر النقطة الشاشة.
+نبدأ بطول قدره متر واحد. نضربه في عشرة فيصبح 10 أمتار، ثم نضربه في عشرة مرة أخرى فيصبح 100 متر. تتيح لنا قوى العشرة كتابة هذه الخطوات المتكررة باختصار.
-كل نقرة واحدة على تلك النقطة تعني ضربًا إضافيًا واحدًا في عشرة. القيمة الموجبة لـ$e$ تعني الضرب في عشرة ذلك العدد من المرات. أما القيمة السالبة لـ$e$ فتعني القسمة على عشرة بدلًا من ذلك، فتصغر الأيقونة متجاوزة نملة وشعرة حتى تبلغ خيط الحمض النووي.
+في التعبير $10^{e}$، يسمى e الأس. عندما يساوي 3، نضرب الواحد في عشرة ثلاث مرات فنحصل على 1000. وفي الاتجاه الآخر، نعكس العملية بالقسمة. عند e = -1 نحصل على 0.1، وعند e = -2 نحصل على 0.01. جميع هذه القيم موجبة.
+
+يمثل التدريج قيمة الأس، ولا يقيس الطول مباشرة. الخطوات المتساوية عليه تمثل نسبًا متساوية؛ كل زيادة بمقدار 1 تجعل الطول عشرة أمثاله. استخدم قيمًا صحيحة للأس في الأمثلة الأولى. الصور للمقارنة التقريبية، وليست مرسومة بأحجام متناسبة مع أحجام الأجسام الحقيقية.
## Formal
-تُكتب قوة العشرة على صورة $10^{e}$، حيث $e$ أي عدد حقيقي. فإذا كان $e$ عددًا صحيحًا موجبًا، فإن $10^{e}$ هو 1 يتبعه $e$ من الأصفار. وإذا كان $e$ عددًا صحيحًا سالبًا، فهو فاصلة عشرية يتبعها $|e|-1$ صفرًا ثم 1.
+إذا كان الأس عددًا صحيحًا موجبًا، فإن $10^{e}$ حاصل ضرب e عوامل، قيمة كل منها عشرة. أما الأس صفر فيعطي $10^0=1$. ولأي عدد صحيح موجب n، تكون $10^{-n}=1/10^n$.
-الانتقال من أس صحيح إلى الأس الذي يليه يضرب دائمًا في عشرة: $10^{e+1} = 10\times10^{e}$. وهذه الحقيقة الواحدة هي كل محرك المنزلق.
+زيادة الأس بمقدار 1 تعطينا $10^{e+1}=10\times10^e$. تصح هذه العلاقة أيضًا عندما يكون الأس غير صحيح، لكننا لا نفسره حينها بعدد صحيح من عوامل الضرب.
## Advanced
-عند أس غير صحيح، $10^{x} = \exp(x\ln 10)$، ولهذا تستطيع الصورة أن تنتقل بسلاسة بين القوى الصحيحة بدل أن تقفز من واحدة إلى التالية.
+تمتد الفكرة إلى الأسس الحقيقية بالعلاقة $10^x=\exp(x\ln 10)$. مثلًا، زيادة الأس بمقدار 0.5 تضرب الطول في الجذر التربيعي للعشرة، وليس في خمسة.
## Derivation
-1. $10^{0}=1$ نقطة البداية، قبل أي عملية ضرب.
-2. $10^{1}=10$ و$10^{2}=100$: كل خطوة إضافية في $e$ تضيف صفرًا واحدًا.
-3. بصورة عامة، خطوة إضافية واحدة تعني ضربًا إضافيًا واحدًا في عشرة: $10^{e+1} = 10\times10^{e}$.
+1. نبدأ بمتر واحد. يمثل الأس صفر هذه القيمة الابتدائية.
+2. الضرب في عشرة مرة واحدة يعطي 10، ومرتين يعطي 100.
+3. كل عملية ضرب إضافية في عشرة تزيد الأس بمقدار 1.
## Real world
-### الخرائط والمساطر
-يقفز مقياس رسم كخرائط 1:100000 بقوى العشرة بين الورقة والمسافة الحقيقية.
+### وحدات القياس
+
+الكيلومتر يساوي 1000 متر، والمليمتر يساوي 0.001 متر. تربط قوى العشرة بين هذه الوحدات.
+
+### مقارنة الأحجام
+
+الطول 1000 متر يساوي ألف مرة الطول 1 متر. تساعدنا كتابة القوى على معرفة النسبة بينهما.
-### الصوت والزلازل
-يقوم مقياسا الديسيبل وريختر على قوى العشرة، فقفزة «صغيرة» في الرقم تعني قفزة هائلة في الصوت الحقيقي أو في شدة الاهتزاز.
+### الخرائط
-### تخزين الحاسوب
-سعات التخزين تتدرج عبر قوى العشرة (وقوى الاثنين): كيلوبايت فميغابايت فغيغابايت، وكل واحدة أكبر من سابقتها بنحو ألف مرة.
+عند مقياس رسم 1:100,000، يمثل السنتيمتر على الخريطة 100,000 سنتيمتر على الأرض، أي كيلومترًا واحدًا.
diff --git a/content/lessons/numbers/powers-of-ten/en.md b/content/lessons/numbers/powers-of-ten/en.md
index 30595505..7adca2a0 100644
--- a/content/lessons/numbers/powers-of-ten/en.md
+++ b/content/lessons/numbers/powers-of-ten/en.md
@@ -1,61 +1,64 @@
---
title: Powers of ten
-summary: >-
- One slider can take you from the size of a strand of DNA to the size of
- the whole Earth, because each step just multiplies by ten.
+summary: Compare lengths by multiplying or dividing by ten, one step at a time.
parameters:
- e: the exponent e
+ e: exponent e
variables:
- - 'the exponent: how many tens are multiplied together to make the number'
+ - exponent; increasing it by 1 multiplies the length by 10
---
## Try it
-1. Drag the orange dot along the ruler labelled «exponent e». Watch the icon in the middle jump from a tiny atom toward a whole mountain after just a few notches.
-2. Set e to 0. The icon settles on a child about a metre tall — one whole unit, no zooming needed.
-3. Raise e to 9. The icon leaps out to the distance between Earth and the Sun, even though the dot itself barely crawled along the ruler.
+1. Set e to 0. The length is 1 metre. The picture gives a nearby size comparison, not an exact measurement of that object.
+2. Set e to 1, then 2. The lengths are 10 metres and 100 metres. Each increase of 1 multiplies the length by ten.
+3. Set e to -1, then -2. The lengths are 0.1 metre and 0.01 metre. Negative exponents give fractions of a metre, not negative lengths.
## Real-life examples
-1. **A strand of DNA.** About $10^{-9}$ m is close to the width of a strand of DNA — far too small to see with any home microscope.
-2. **A child standing up.** About $10^{0}$ m, roughly one metre, is an everyday size you can picture without help.
-3. **Across the Earth.** About $10^{7}$ m is close to Earth's diameter, the size the globe icon shows on the ruler.
+1. **A nanometre.** At e = -9, the length is one billionth of a metre. The DNA icon is a nearby size comparison.
+2. **One metre.** At e = 0, the length is 1 metre. This is a useful starting point for comparing everyday sizes.
+3. **Ten million metres.** At e = 7, the length is 10,000,000 metres. The Earth icon helps suggest this scale; the number is not its exact diameter.
## Test yourself
-1. Set e to exactly 3.
-2. Bring e down between −3 and −1.
-3. Make $10^{e}$ equal to one million.
+1. Set e to 3, giving a length of 1000 metres.
+2. Choose e between -3 and -1, including the endpoints.
+3. Set the length to one million metres.
## Intuition
-Stand a child next to a mountain: the child is about one metre tall, and Mount Everest is about nine thousand metres. Drag the orange dot a few notches to the right, and the icon in the middle jumps from the child to the mountain to the whole Earth, long before the dot has crossed the screen.
+Start with a length of 1 metre. Multiply by ten to get 10 metres, and multiply by ten again to get 100 metres. Powers of ten let us record those repeated steps without writing a long string of multiplications.
-Each single click of that dot means one more multiplication by ten. A positive $e$ means multiplying by ten that many times. A negative $e$ instead means dividing by ten that many times, shrinking the icon down past an ant, a hair, and all the way to a strand of DNA.
+In $10^{e}$, e is called the exponent. At e = 3, we multiply 1 by ten three times to get 1000. Going the other way reverses the operation: e = -1 gives 0.1, and e = -2 gives 0.01. Every result is positive.
+
+The ruler measures the exponent, not the length directly. Equal steps along it represent equal ratios: each increase of 1 makes the length ten times as large. Use whole-number settings for the introductory examples. The nearby icons are scale comparisons, not pictures drawn at their actual relative sizes.
## Formal
-A power of ten is written $10^{e}$, where $e$ is any real number. When $e$ is a positive whole number, $10^{e}$ is a 1 followed by $e$ zeros; when $e$ is a negative whole number, it is a decimal point followed by $|e|-1$ zeros and then a 1.
+For a positive whole-number exponent, $10^{e}$ is the product of e factors of ten. The zero power is $10^0=1$. For a positive whole number n, $10^{-n}=1/10^n$.
-Going from one whole exponent to the next always multiplies by ten: $10^{e+1} = 10\times10^{e}$. That single fact is the entire engine behind the slider.
+Increasing the exponent by 1 gives $10^{e+1}=10\times10^e$. This rule also holds for non-integer exponents, although those cannot be described by counting a whole number of factors.
## Advanced
-For a non-whole exponent, $10^{x} = \exp(x\ln 10)$, which is why the picture can glide smoothly between whole powers instead of jumping from one to the next.
+Real exponents extend the pattern continuously: $10^x=\exp(x\ln 10)$. For example, an increase of 0.5 multiplies a length by the square root of ten, rather than by five.
## Derivation
-1. $10^{0}=1$ is the starting point: no multiplications yet.
-2. $10^{1}=10$ and $10^{2}=100$: each extra step of $e$ adds one more zero.
-3. In general, one more step always means one more multiplication by ten: $10^{e+1} = 10\times10^{e}$.
+1. Begin at 1 metre. An exponent of zero represents this starting value.
+2. One multiplication by ten gives 10; two give 100.
+3. Each additional multiplication raises the exponent by 1.
## Real world
-### Rulers and maps
-A map scale like 1∶100,000 is a power-of-ten jump between the paper and the real distance.
+### Metric units
+
+One kilometre is 1000 metres. One millimetre is 0.001 metre. Powers of ten connect these units.
+
+### Comparing sizes
+
+A length of 1000 metres is one thousand times a length of 1 metre. Writing the powers makes that ratio easier to see.
-### Sound and earthquakes
-The decibel and Richter scales are built on powers of ten, so a "small" jump in the number means a huge jump in real loudness or shaking.
+### Maps
-### Computer storage
-Storage sizes step through powers of ten (and of two): kilobyte, megabyte, gigabyte — each roughly a thousand times the last.
+At a scale of 1:100,000, one centimetre on the map represents 100,000 centimetres, or one kilometre, on the ground.
diff --git a/content/lessons/numbers/prime-numbers/ar.md b/content/lessons/numbers/prime-numbers/ar.md
index 11c64776..07488687 100644
--- a/content/lessons/numbers/prime-numbers/ar.md
+++ b/content/lessons/numbers/prime-numbers/ar.md
@@ -1,63 +1,67 @@
---
title: الأعداد الأولية
-summary: >-
- اشطب المضاعفات فتبقى الأعداد الأولية وحدها حتى 100، بلا أي قسمة.
+summary: استخدم جدول المضاعفات للعثور على الأعداد التي لا تقبل القسمة إلا على نفسها وعلى الواحد.
parameters:
- N: حجم الغربال N
- p: الأعداد الأولية المستخدمة p
+ N: أكبر عدد في الجدول N
+ p: عدد الأعداد الأولية المستخدمة في الاستبعاد p
variables:
- - العدد الذي نختبره لنعرف إن كان أوليًا
- - القاسم الأصغر من عاملين
- - القاسم الأكبر من عاملين
+ - العدد الصحيح الذي نختبره
+ - العامل الأصغر، وهو أكبر من 1
+ - العامل الأكبر، وهو أصغر من العدد الذي نختبره
---
## Try it
-1. اجعل p يساوي 0 وانظر إلى شبكة الأعداد كما هي حتى N، بلا أي شطب بعد.
-2. انقر الشريحة المكتوب عليها 2. راقب كل عدد ثانٍ في الشبكة يتحول إلى رمادي مشطوب: 4 و6 و8 وهكذا.
-3. انقر 3 ثم 5 ثم 7. حين تضيء الشرائح الأربع بالبرتقالي، كل عدد ما زال برتقاليًا صلبًا تحت N هو عدد أولي.
+1. اضبط N على 100 وp على 0. لم تُستبعد المضاعفات بعد. العدد 1 لا يُعدّ من الأعداد الأولية.
+2. اضبط p على 1. تُشطب مضاعفات 2 بدءًا من 4، ويبقى العدد 2 نفسه.
+3. اضبط p على 4. استُخدمت الأعداد 2 و3 و5 و7 لاستبعاد مضاعفاتها. الأعداد الـ25 الباقية، الأكبر من 1، أولية.
## Real-life examples
-1. **غربال صغير.** حتى 50، يزيل شطب مضاعفات 2 و3 معظم الأعداد غير الأولية فعلًا.
-2. **الغربال الكلاسيكي.** حتى 100، يكفي شطب مضاعفات 2 و3 و5 و7 ليبقى 25 عددًا أوليًا فقط تحت 100.
-3. **غربال أكبر وأخف عملًا.** حتى 120، يزيل شطب مضاعفات 2 وحدها نصف كل الأعداد.
+1. **غربال غير مكتمل حتى 50.** عند p = 2، تُستبعد مضاعفات 2 و3. يبقى مثلًا 25 و49، لذلك ليست كل الأعداد الباقية أولية بعد.
+2. **غربال مكتمل حتى 100.** عند p = 4، يؤدي استبعاد مضاعفات 2 و3 و5 و7 إلى بقاء الأعداد الأولية الـ25 في هذا المدى.
+3. **فحص الأعداد الزوجية حتى 120.** عند p = 1، تُشطب الأعداد الزوجية الأكبر من 2. لكن الأعداد الفردية غير الأولية تحتاج إلى خطوات أخرى لاستبعادها.
## Test yourself
-1. استخدم الأعداد الأولية الأربعة (2 و3 و5 و7) على غربال حجمه 100 أو أكثر.
-2. صغّر الغربال إلى 20 عددًا فقط.
-3. أطفئ كل مصفاة أولية (p يساوي 0) وانظر إلى الشبكة كما هي.
+1. استخدم خطوات الاستبعاد الأربع، واجعل N يساوي 100 أو أكثر.
+2. اضبط N على 20.
+3. اضبط p على 0 لإلغاء الاستبعاد.
## Intuition
-خذ العدد 91 واسأل هل له قاسم. هذا يحتاج عملًا حقيقيًا، قسمة تلو قسمة. على الشاشة، انقر الشريحة المكتوب عليها 2 بدلًا من ذلك. يتحول كل عدد ثانٍ في الشبكة، 4 و6 و8 و10، إلى رمادي مشطوب دفعة واحدة، من دون أي قسمة.
+يمكنك توزيع 12 قطعة على 3 مجموعات متساوية، في كل منها 4 قطع. لذلك للعدد 12 عوامل غير الواحد ونفسه. أما 7 قطع فلا يمكن توزيعها بهذه الطريقة دون بقايا. العدد الصحيح الأكبر من 1 الذي لا يقبل القسمة إلا على الواحد ونفسه يسمى عددًا أوليًا.
-انقر شريحة 3، ثم 5، ثم 7، وكل واحدة تشطب مضاعفاتها بالطريقة نفسها. وكل ما يبقى مضيئًا بالبرتقالي تحت حجم الغربال، $N$، لم يُشطب قط من قبل أي شريحة. والعدد الذي لا قاسم أصغر له هو بالضبط معنى كلمة «أولي».
+نبحث في الجدول باستبعاد الأعداد التي نعرف لها عوامل. نبدأ بالعدد 2، فنشطب 4 و6 و8 وما يليها من مضاعفاته، ونُبقي 2 نفسه. ثم نستخدم 3 لاستبعاد مضاعفاته الأكبر منه، ونتابع بالأعداد الأولية التالية.
+
+بقاء العدد في مرحلة وسطية لا يثبت أنه أولي. مثلًا، يبقى 49 بعد الاستبعاد باستخدام 2 و3 و5، ثم يُشطب عند استخدام 7. في مدى هذا الجدول، الذي ينتهي عند 120، تكفي الخطوات حتى 7 لإبقاء الأعداد الأولية وحدها.
## Formal
-عدد صحيح $N$ أكبر من 1 يكون أوليًا إن تعذّرت كتابته على صورة $N=a\times b$ حيث $1-
- Learn the trick that finds every prime number up to 100 just by crossing
- out multiples, no dividing required.
+summary: Find numbers that divide only by themselves and one, using a grid of multiples.
parameters:
- N: the sieve size N
- p: primes used p
+ N: largest number in the grid N
+ p: number of prime filters used p
variables:
- - the number being tested for primality
- - the smaller of two factors
- - the larger of two factors
+ - whole number being tested
+ - smaller factor, greater than 1
+ - larger factor, smaller than the number being tested
---
## Try it
-1. Set p to 0 and look at the plain grid of numbers up to N, nothing crossed out yet.
-2. Click the chip labelled 2. Watch every second number on the grid turn grey with a line through it — 4, 6, 8, and on.
-3. Click 3, then 5, then 7. Once all four chips glow orange, every number still shown in solid orange below N is a prime.
+1. Set N to 100 and p to 0. The grid has not yet eliminated multiples. The number 1 is excluded from the primes.
+2. Set p to 1. Multiples of 2 from 4 onwards are crossed out. The number 2 itself remains.
+3. Set p to 4. The filters for 2, 3, 5 and 7 have all been used. The 25 surviving numbers greater than 1 are prime.
## Real-life examples
-1. **A small sieve.** Up to 50, crossing out multiples of 2 and 3 already removes most of the non-primes.
-2. **The classic sieve.** Up to 100, crossing out multiples of 2, 3, 5 and 7 is enough to leave only the 25 primes below 100.
-3. **A bigger, lighter sieve.** Up to 120, crossing out only multiples of 2 still removes half of all the numbers.
+1. **An unfinished sieve up to 50.** With p = 2, the filters remove multiples of 2 and 3. Numbers such as 25 and 49 still remain, so the survivors are not all prime yet.
+2. **A completed sieve up to 100.** With p = 4, filtering by 2, 3, 5 and 7 leaves the 25 primes in this range.
+3. **Checking even numbers up to 120.** With p = 1, even numbers greater than 2 are crossed out. Odd composite numbers still need checking.
## Test yourself
-1. Use all four primes (2, 3, 5, 7) on a sieve of 100 or more.
-2. Shrink the sieve down to just 20 numbers.
-3. Turn every prime filter off (p = 0) and look at the untouched grid.
+1. Use all four filters and set N to at least 100.
+2. Set N to 20.
+3. Set p to 0 to remove the filters.
## Intuition
-Take the number 91 and ask whether it has a factor — that takes real work, one division at a time. On screen, click the chip labelled 2 instead, and every second number on the grid — 4, 6, 8, 10 — turns grey with a line through it in one go, no dividing needed.
+You can arrange 12 counters into 3 equal groups of 4, so 12 has factors other than 1 and itself. With 7 counters, no such whole-number grouping works. A whole number greater than 1 with only those two divisors is called prime.
-Click the 3 chip, then 5, then 7, and each one crosses out its own multiples the same way. Whatever is left glowing orange below the sieve size, $N$, has never been crossed out by anything — and a number with no smaller factor is exactly what "prime" means.
+The grid finds primes by eliminating numbers with known factors. Starting with 2, cross out 4, 6, 8 and the later multiples, but keep 2 itself. Then use 3 to cross out its larger multiples. Continue with the next primes.
+
+A number surviving an unfinished sieve is only a candidate. For example, 49 survives the filters for 2, 3 and 5, but the filter for 7 removes it. Within this grid's limit of 120, completing the filters through 7 leaves only primes.
## Formal
-A whole number $N$ greater than 1 is prime if it cannot be written as $N=a\times b$ with $1-
- اكتب عدد سكان العالم دون أن تغرق في الأصفار: رقم صغير مضروب في قوة عشرة.
+title: الصيغة العلمية
+summary: اكتب الأعداد الكبيرة والصغيرة باستخدام عدد بين الواحد والعشرة وقوة من قوى العشرة.
parameters:
e: الأس e
variables:
- - الرقم الأول، يبقى دائمًا بين 1 و10
- - 'الأس: كم منزلة تنتقلها الفاصلة العشرية'
+ - المعامل؛ عدد لا يقل عن 1 ويقل عن 10 عند تمثيل القيم الموجبة
+ - الأس؛ يحدد قوة العشرة التي نضرب فيها المعامل
---
## Try it
-1. حرّك النقطة البرتقالية على المسطرة المسمّاة «الأس e». راقب الأيقونة في المنتصف تقفز من مدرسة إلى ملعب إلى حشد من الناس.
-2. اجعل e يساوي 9، واقرأ العدد المكتوب كاملًا على الشاشة. قل بعدها «عشرة أس تسعة» ولاحظ كم هذا أسرع.
-3. ارفع e إلى 100. تتحول الأيقونة إلى رمز عدد بسيط. فبعد الغوغول لا يبقى معلم تقارنه به.
+1. اضبط e على 3. يعرض الرسم 1000، أي واحدًا مضروبًا في عشرة أس ثلاثة. يغيّر هذا الرسم الأس، ويُبقي المعامل عند 1.
+2. اضبط e على 6 ثم على 9. كل زيادة بمقدار 3 تجعل العدد أكبر بألف مرة.
+3. اضبط e على 100. بدل كتابة جميع الأرقام، يوضح العرض أن العدد 1 يتبعه 100 صفر.
## Real-life examples
-1. **حلوى بيعت في مهرجان مدرسي.** نحو $3\times10^{3}$، ثلاثة آلاف، تطابق أيقونة المدرسة على المسطرة، عدد صغير يكفي كتابته كاملًا.
-2. **مقاعد تمتلئ في ملعب.** نحو $1\times10^{6}$، مليون، تطابق أيقونة الملعب، ونطقه أسهل بكثير من كتابته.
-3. **كل سكان دولة كبيرة.** نحو $8\times10^{9}$، ثمانية مليارات، تطابق أيقونة الحشد، وكتابة كل رقم منها عبث.
+1. **ألف قطعة.** عند e = 3، يمثل العرض 1000. لكتابة ثلاثة آلاف نستخدم الأس نفسه مع المعامل 3.
+2. **مليون قطعة.** عند e = 6، يمثل العرض 1,000,000. الصورة علامة بصرية، ولا تعني أن ملعبًا يتسع لهذا العدد من الأشخاص.
+3. **مليار قطعة.** عند e = 9، يمثل العرض 1,000,000,000. لكتابة ثمانية مليارات نحتاج إلى المعامل 8، وهو غير قابل للتغيير في هذا الرسم.
## Test yourself
-1. اجعل e يساوي 23، الأس في عدد أفوغادرو.
-2. ارفع e فوق 50.
-3. بلغ أعلى نقطة على المقياس: e يساوي 100.
+1. اضبط e على 23.
+2. اختر أسًا أكبر من 50.
+3. اضبط e على 100.
## Intuition
-قد يبيع مهرجان مدرسي ثلاثة آلاف قطعة حلوى، وقد يستوعب ملعب ممتلئ مليون متفرج. اكتب العددين كاملين، وسيحتاج عدد الملعب ثلاثة أصفار إضافية من فوره. حرّك النقطة البرتقالية على المسطرة من أيقونة المدرسة إلى أيقونة الملعب: تقفز الصورة ألف مرة، بينما بالكاد تحركت النقطة نفسها.
+العدد 3000 يساوي 3 مضروبة في 1000. وبما أن 1000 يساوي عشرة أس ثلاثة، يمكننا كتابة $3\times10^3$. يخبرنا العدد 3 بكم ألف لدينا، وتحدد قوة العشرة حجم المجموعة الواحدة.
-يلتقط الترقيم العلمي تلك القفزة بجزأين. الجزء الأول رقم أول صغير: $a$ يبقى دائمًا بين 1 و10. الجزء الثاني هو الأس الذي يعدّ الأصفار: $e$ يخبرك كم منزلة تنتقلها الفاصلة العشرية. يمكن لعددين أن يتشاركا الرقم الأول نفسه ويبقيا بعيدين جدًا إن اختلف أسّاهما، فكل خطوة إضافية في $e$ تضاعف الفجوة عشر مرات.
+تستخدم الصيغة العلمية معاملًا من 1 إلى أقل من 10، وأسًا صحيحًا. لا يشترط أن يكون المعامل رقمًا واحدًا؛ فالعدد 3400 يساوي 3.4 مضروبة في عشرة أس ثلاثة. أما 0.0034 فيساوي 3.4 مضروبة في عشرة أس -3. الأس السالب هنا يعني القسمة على 1000.
+
+يتيح التدريج تغيير قوة العشرة فقط، مع بقاء المعامل 1. والصور أمثلة تقريبية للمقارنة. اقرأ القيمة العددية لمعرفة المقدار المختار؛ الصورة لا تغير المعامل.
## Formal
-يكتب الترقيم العلمي العدد على صورة $a\times10^{e}$، حيث $1\le a<10$ و$e$ عدد صحيح. الرقم $a$ يحمل القيمة الدقيقة، والأس $e$ يحمل مقياس الحجم.
+للعدد الموجب، تكون الصيغة العلمية $a\times10^e$، حيث $1\le a<10$ ويكون e عددًا صحيحًا. إذا كان الأس موجبًا نحرك الفاصلة e منازل يمينًا، وإذا كان سالبًا نحركها يسارًا.
-ضرب عددين بهذه الصورة سهل: اضرب الرقمين الأولين واجمع الأسّين، ثم أعد الصياغة إذا بلغ حاصل ضرب الرقمين 10.
+لكتابة عدد سالب، نضع إشارة السالب قبل الصيغة العلمية لقيمته الموجبة. أما الصفر فنكتبه 0، لأنه لا يحتوي على رقم أول غير صفري نبدأ منه.
## Advanced
-الأعداد ذات الفاصلة العائمة في الحاسوب تستخدم الفكرة نفسها بالضبط: إشارة، و«مقدار» يقوم مقام $a$، وأس يقوم مقام $e$، ويُخزَّن كلاهما في عدد ثابت من البتّات، ولهذا ينفد للحاسوب أيضًا دقته بعيدًا عن الصفر.
+لضرب عددين بالصيغة العلمية، نضرب المعاملين ونجمع الأسين. إذا أصبح المعامل 10 أو أكثر، نقسمه على عشرة ونزيد الأس واحدًا. تستخدم الحواسيب تمثيلًا مشابهًا، غالبًا بقوى الاثنين وعدد محدود من الأرقام المعنوية.
## Derivation
-1. عدد سكان العالم، مكتوبًا كاملًا، هو $\text{8,000,000,000}$ نسمة، وهو العدد نفسه $8\times10^{9}$.
-2. الرقم الأول $a$ يبقى دائمًا بين 1 و10، فلا يُكتب العدد مثلًا $80\times10^{8}$.
-3. الأس $10^{e}$ يؤدي العمل الأكبر: يعدّ الأصفار، أو بصورة معادلة، يخبرك كم منزلة تنتقلها الفاصلة العشرية.
+1. ثمانية مليارات تعني ثماني مجموعات من مليار، أي ثمانية مضروبة في عشرة أس تسعة. هذا عدد للتدريب، وليس إحصاءً حاليًا للسكان.
+2. نجعل المعامل من 1 إلى أقل من 10. نستخدم 8 بدلًا من 80، مع تعديل الأس للحفاظ على القيمة.
+3. تحدد قوة العشرة عدد منازل تحريك الفاصلة. ويعبر الأس مباشرة عن عدد الأصفار اللاحقة عندما يكون المعامل 1 والأس عددًا صحيحًا غير سالب.
## Real world
-### الكيمياء
-عدد أفوغادرو، نحو $6.02\times10^{23}$، يعدّ الجسيمات في المول، وكتابته كاملًا تحتاج 24 رقمًا.
+### القياسات الصغيرة
+
+الطول 0.000002 متر يساوي اثنين مضروبة في عشرة أس -6 متر. توضح الصيغة حجم القياس دون الحاجة إلى عدّ الأصفار.
+
+### مقارنة الكميات
+
+إذا تساوى معاملا عددين واختلف أساهما بمقدار 3، كان أحدهما أكبر من الآخر بألف مرة.
-### الفلك
-نكتب المسافات إلى النجوم بالترقيم العلمي، لأن كتابتها بالأمتار تحتاج عشرات الأرقام.
+### شاشات الآلات الحاسبة
-### الحوسبة
-تطبع لغات البرمجة الأعداد الصغيرة جدًا والكبيرة جدًا بالترقيم العلمي، مثل 6.02e23، بعد أن تتجاوز حجمًا معينًا.
+الكتابة 3.4e6 تعني 3.4 مضروبة في عشرة أس ستة. يشير الحرف e هنا إلى أن العدد الذي يليه هو الأس.
diff --git a/content/lessons/numbers/scientific-notation/en.md b/content/lessons/numbers/scientific-notation/en.md
index a9ef9ec2..1e02c781 100644
--- a/content/lessons/numbers/scientific-notation/en.md
+++ b/content/lessons/numbers/scientific-notation/en.md
@@ -1,62 +1,65 @@
---
title: Scientific notation
-summary: >-
- Write huge numbers like the world's population without running out of
- space for all the zeros.
+summary: Write large and small numbers using a number between one and ten and a power of ten.
parameters:
- e: the exponent e
+ e: exponent e
variables:
- - the leading digit, always between 1 and 10
- - 'the exponent: how many places the decimal point shifts'
+ - coefficient; a number at least 1 and less than 10 for positive values
+ - exponent; the power of ten that sets the scale
---
## Try it
-1. Drag the orange dot along the ruler labelled «exponent e». Watch the icon in the middle jump from a school to a stadium to a crowd of people.
-2. Set e to 9 and read the full written-out number on screen — then say "ten to the ninth" instead and notice how much faster that is.
-3. Push e to 100. The icon becomes a plain number symbol — past a googol there is no landmark left to compare it to.
+1. Set e to 3. The diagram shows 1000, or one times ten to the third power. This diagram changes the exponent while keeping the coefficient at 1.
+2. Set e to 6, then 9. Each increase of 3 makes the number a thousand times larger.
+3. Set e to 100. Instead of writing every digit, the display describes a 1 followed by 100 zeros.
## Real-life examples
-1. **Sweets sold at a school fair.** About $3\times10^{3}$, three thousand, matches the school icon on the ruler — small enough to write in full.
-2. **Seats filling a stadium.** About $1\times10^{6}$, a million, matches the stadium icon — starting to be easier to say than to write.
-3. **Everyone in a big country.** About $8\times10^{9}$, eight billion, matches the crowd icon — writing every digit would be absurd.
+1. **One thousand items.** At e = 3, the display represents 1000. Three thousand would use the same exponent with coefficient 3.
+2. **One million items.** At e = 6, the display represents 1,000,000. The icon is a visual marker, not a claim about a stadium's capacity.
+3. **One billion items.** At e = 9, the display represents 1,000,000,000. Eight billion would use coefficient 8, which this diagram does not adjust.
## Test yourself
-1. Set e to 23, the exponent in Avogadro's number.
-2. Push e above 50.
-3. Reach the top of the scale: e = 100.
+1. Set e to 23.
+2. Choose an exponent greater than 50.
+3. Set e to 100.
## Intuition
-A school fair might sell three thousand sweets, and a packed stadium might seat a million people. Write both numbers out in full, and the stadium number already needs three more zeros. On the ruler, drag the orange dot from the school icon to the stadium icon: the picture jumps by a thousand, while the dot itself has barely moved.
+The number 3000 is 3 times 1000. Since 1000 is ten cubed, we can write $3\times10^3$. The 3 tells us how many thousands; the power of ten tells us the size of each group.
-Scientific notation captures that jump with two pieces. The first piece is a small leading digit: $a$ always sits between 1 and 10. The second piece is the exponent that counts the zeros: $e$ tracks how many places the decimal point shifts. Two numbers can share the same leading digit and still be far apart if their exponents differ — every extra step of $e$ makes the gap ten times bigger.
+Scientific notation uses a coefficient between 1 and 10 and an integer exponent. The coefficient need not be a single digit: 3400 becomes 3.4 times ten cubed. For 0.0034, we instead use 3.4 times ten to the power -3. The negative exponent means divide by 1000.
+
+The ruler explores only the power-of-ten part, with coefficient 1. Its icons are rough reference points. Read the numerical value to find the selected amount; the pictures do not supply a different coefficient.
## Formal
-Scientific notation writes a number as $a\times10^{e}$, where $1\le a<10$ and $e$ is a whole number. The digit $a$ carries the precise value; the exponent $e$ carries the scale.
+For a positive number, scientific notation has the form $a\times10^e$, with $1\le a<10$ and an integer e. Moving the decimal point e places to the right gives the value when e is positive; a negative e moves it left.
-Multiplying two numbers in this form is easy: multiply the leading digits and add the exponents, then re-normalise if the product of the digits reaches 10.
+For a negative number, put a minus sign before its positive scientific notation. Zero is written as 0 because it has no nonzero leading digit to normalize.
## Advanced
-Floating-point numbers in a computer use exactly this idea: a sign, a "mantissa" playing the role of $a$, and an exponent playing the role of $e$, both stored in a fixed number of bits — which is why computers, too, run out of precision far from zero.
+To multiply two values in scientific notation, multiply their coefficients and add their exponents. If the resulting coefficient is at least 10, divide it by ten and increase the exponent by 1. Computers use a related representation, usually with powers of two and a finite number of significant digits.
## Derivation
-1. The world's population, written in full, is $\text{8,000,000,000}$ people — the same number as $8\times10^{9}$.
-2. The leading digit $a$ is always kept between 1 and 10, so the number is never written as, say, $80\times10^{8}$.
-3. The exponent $10^{e}$ does the heavy lifting: it counts the zeros, or equivalently, says how many places the decimal point shifts.
+1. Eight billion is eight groups of one billion, so it equals eight times ten to the ninth power. This is an example number, not a live population count.
+2. Keep the coefficient at least 1 and less than 10. Use 8 rather than 80, adjusting the exponent to preserve the value.
+3. The power of ten sets the decimal-point shift. It counts trailing zeros directly only for whole powers of ten with coefficient 1.
## Real world
-### Chemistry
-Avogadro's number, about $6.02\times10^{23}$, counts particles in a mole — writing it in full would take 24 digits.
+### Small measurements
+
+A length of 0.000002 metres can be written as two times ten to the power -6 metres. The notation keeps the scale visible.
+
+### Comparing quantities
+
+Numbers with the same coefficient and exponents differing by 3 differ by a factor of 1000.
-### Astronomy
-Distances to stars are given in scientific notation because writing them in metres would need dozens of digits.
+### Calculator displays
-### Computing
-Very small and very large numbers in programming languages are often printed in scientific notation, like 6.02e23, once they grow past a certain size.
+A display such as 3.4e6 means 3.4 times ten to the sixth power. The letter e in that display introduces the exponent.