Thomas’ Calculus · Chapter 01 · Section 1.5
By Muhammad Abdullah Athar · SymPy Verified
Core Definitions: Questions to Guide Your Review
Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.
Part One
Section Notes
Section 1.5: Questions to Guide Your Review
Authored by Muhammad Abdullah Athar (GitHub Profile), this module turns the sixteen conceptual review questions that close Chapter 1 into a complete answer-writing playbook. Nothing here is a computation drill: every question asks what a concept means and why it holds, which is exactly the register of exam theory questions, oral defenses, and the justification parts of proof problems.
1. How to Use These Review Questions
Conceptual questions reward three-part answers: a plain-words statement, the symbolic identity, and a picture or example. Aim to produce all three for each question.
| Answer ingredient | Example for "What is a function?" | |---|---| | Words | A rule assigning each input exactly one output | | Symbols | , | | Picture or example | Any graph passing the Vertical Line Test, e.g. |
Work through the sixteen questions in the order the solutions file lists them: definition of a function (Q1), representations and tests (Q2–Q3), domain and range (Q4–Q5), symmetry (Q6, Q16), piecewise and transformation mechanics (Q7, Q10), trigonometry (Q8–Q9, Q14), composition and inverses (Q11–Q12), rational functions (Q13), and modeling (Q15).
2. The Vocabulary Chain: Function, Domain, Range
Everything in Chapter 1 hangs from one sentence: a function assigns each element of its domain exactly one element of its codomain. Two ideas flow directly from it.
- The natural domain is the largest real set on which a formula makes sense. Block only two things by default: even roots of negatives and division by zero. So lives on , lives on , and lives everywhere because .
- The range is what the graph covers when projected onto the -axis, just as the domain is its projection onto the -axis.
When the question asks "how do you read the range from a graph", answer with the projection language and mention watching for holes, asymptotes, and endpoints that decide whether bounds are included.
3. Answering with Tests: Vertical, Horizontal, Symmetry
Two line tests encode the chapter's two uniqueness ideas:
- Vertical Line Test — a curve fails to be a function's graph when some vertical line crosses it twice, because one input would own two outputs.
- Horizontal Line Test — a function fails to be invertible when some horizontal line crosses its graph twice, because one output would come back from two inputs.
Note the mirror structure and use it in your answers: invertibility is the function requirement applied in reverse. Restricting a domain, such as replacing on by on , repairs invertibility — this is why inverse trig functions carry restricted domains.
For symmetry, memorize the parity identities together with their geometry:
and the decomposition that any function on a symmetric domain satisfies:
4. Trig Concepts in Review Language
Three trig questions appear because calculus leans on them hard:
- Radians are arc-to-radius ratios: . They are mandatory in calculus because — and therefore — is true only in radian measure. Degrees smuggle in a factor at every differentiation.
- Amplitude and period of or are and . Amplitude measures the swing from midline; period measures one self-copy of the wave.
- Periodicity demands a single with for every . Be ready to say why oscillates yet is not periodic: its zeros sit at and the gaps between them shrink, so no fixed-width window ever repeats.
5. Transformations and Composition Recipes
Transformation answers should state direction and reason in one breath:
- : up (output changes act as they look).
- : left (the input must compensate before sees it).
- : reflect over the -axis; : reflect over the -axis.
For composition, define — the inner machine runs first — and always demonstrate with , :
Then close with the conceptual punchline: the two results differ, so composition is not commutative, unlike multiplying numbers.
6. Modeling Questions and Self-Check Routine
Question 15 asks for a process, so answer in numbered steps: (1) name the variables and their units, (2) choose a realistic domain from the physical constraints, (3) write the rule relating them, (4) validate against data or limiting cases. For a rectangle with perimeter , area on passes the sanity checks: the square maximizes area and swapping sides leaves unchanged.
Before finalizing any review answer, run this self-check:
- Did I state the definition in words and symbols?
- Did I include one example and one non-example ( vs. the circle )?
- Did I name the geometric picture behind the algebra?
- Would my answer survive a "why?" follow-up — for instance, why radians, why does cancellation move a vertical asymptote to a hole?
Answering yes to all four turns review questions from a chore into the cheapest marks on the exam.
Part Two
Key Ideas to Remember
5 essential statements for this section, each with a plain-words explanation.
Function, Domain, Codomain, and Range
A function f from a set D (the domain) to a set C (the codomain) is a rule that assigns to each element x in D exactly one element f(x) in C. The range is the subset of the codomain consisting of the outputs actually attained.
Conditions: Every input in the domain must be assigned a value; The assigned value must be unique: one input, one output; Distinct inputs are permitted to share the same output
Remember — A function is a single-valued rule: each input has exactly one output.
Natural Domain
When a function is given by a formula without an explicitly stated domain, its natural domain is the largest set of real numbers for which the formula makes sense.
Conditions: Even roots require a nonnegative radicand: sqrt(x) needs x >= 0; Denominators must not vanish: 1/q(x) needs q(x) != 0; Logarithms require strictly positive arguments
Remember — Scan the formula for forbidden operations; whatever survives is the natural domain.
Even and Odd Functions
A function with a domain symmetric about the origin is even if f(-x) = f(x) for every x in the domain, which makes its graph symmetric about the y-axis; it is odd if f(-x) = -f(x) for every x, which makes its graph symmetric about the origin.
Conditions: The domain must satisfy x in D implies -x in D; The parity identity must hold for all x, not merely at sample points; Most functions, such as x^2 + x, are neither even nor odd
Remember — Even mirrors across the y-axis; odd survives a half-turn rotation about the origin.
Periodic Function and Period
A function f is periodic if there exists a positive number T such that f(x + T) = f(x) holds for every x in its domain. If a smallest such T exists, it is called the period; sin x and cos x have period 2*pi and tan x has period pi.
Conditions: The same T must work for every input simultaneously; Any integer multiple of a period is also a period; Amplitude |a| and coefficient b give a sin(bx) the period 2*pi/|b|
Remember — Periodic means an exact repeating window of fixed width, verified algebraically rather than by eye.
One-to-One Functions and Invertibility
A function has an inverse function if and only if it is one-to-one: distinct inputs produce distinct outputs. Graphically, this is the Horizontal Line Test, requiring that no horizontal line intersect the graph more than once.
Conditions: A periodic function on all of R can never be one-to-one; Restricting the domain can restore invertibility, e.g. x^2 on [0, infinity); The graphs of f and f inverse are mirror images across the line y = x
Remember — Invertibility is uniqueness run backwards: one output must trace back to exactly one input.
Part Three
Worked Examples
16 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.
Example 01(Section 1.5, Exercise 1)
Warm-upProblem. Explain in your own words what a function is, and clearly distinguish the domain, codomain, and range. What does the uniqueness requirement forbid?
Step-by-Step Derivation (3 steps)
State the Core Idea
A function is a rule that takes each element of a starting set D and produces an element of a target set C. The machine metaphor works well: one input goes in, exactly one output comes out.
Separate Domain, Codomain, and Range
The domain is the set of permitted inputs, the codomain is the set of declared possible outputs, and the range is the subset of the codomain the function actually hits. For f(x) = x^2 with domain and codomain all real numbers, the range is only [0, infinity).
Enforce the Uniqueness Requirement
Each input must have exactly one output. Different inputs are allowed to share the same output (x^2 sends both 3 and -3 to 9), but a single input claiming two different values, such as a rule sending 1 to both 2 and 5, is not a function.
Answer: A function $f: D \to C$ is a rule that assigns each input $x \in D$ exactly one output $f(x) \in C$; the range $\{f(x) : x \in D\}$ is the set of outputs actually produced.
✓ Verified by SymPy CAS
Example 02(Section 1.5, Exercise 2)
Warm-upProblem. Describe the four standard ways to represent a function and give a quick example situation for each.
Step-by-Step Derivation (3 steps)
Verbal and Algebraic Description
A function can be stated in words, such as the area of a square is the side length squared, and in a pure mathematical language, the formula f(x) = x^2. The verbal form carries meaning; the algebraic form carries precision.
Numerical Representation
A table lists selected inputs alongside their outputs. Tabular representation is unavoidable when data come from measurement, such as temperature readings recorded every hour, and shows exact values even when no formula is known.
Visual Representation and Translation Between Forms
The graph plots every point (x, f(x)) and reveals trends, symmetry, maxima, and intercepts at a glance. A skilled student moves fluently among all four forms: from formula to table, from table to graph, from graph back to a verbal story.
Answer: Verbally (a sentence or formula describing the rule), numerically (a table of input-output pairs), visually (a graph), and algebraically (an explicit formula such as $f(x) = 2x + 1$).
✓ Verified by SymPy CAS
Example 03(Section 1.5, Exercise 3)
Warm-upProblem. Explain how the Vertical Line Test decides whether a given curve in the plane is the graph of a function of x.
Step-by-Step Derivation (3 steps)
Connect the Test to the Definition
The definition of a function demands exactly one output per input. A vertical line x = a collects all y-values the curve assigns to the single input a, so two intersection points directly violate uniqueness.
Apply the Test to a Circle
The unit circle fails: the line x = 0 hits it at (0, 1) and (0, -1). The upper semicircle y = sqrt(1 - x^2) passes and is a genuine function, while the full circle is not.
Note the Scope of the Test
Repeated x-values with the same y are fine; many inputs sharing one output never breaks the definition. The test only forbids one input owning two different outputs, so a parabola crossing the x-axis twice is still a function graph.
Answer: A curve is the graph of a function of $x$ if and only if every vertical line intersects the curve at most once; any vertical line meeting the curve twice witnesses two outputs for one input.
✓ Verified by SymPy CAS
Example 04(Section 1.5, Exercise 4)
Core practiceProblem. Define what a natural domain is, then find the natural domains of f(x) = sqrt(x), g(x) = 1/(x^2 - 4), and h(x) = x/(x^2 + 1).
Step-by-Step Derivation (3 steps)
Define the Natural Domain
When a function is given only by a formula with no domain stated, we assume the largest set of real numbers on which the formula makes sense. Two usual culprits restrict this set: even roots of negative quantities and division by zero.
Rule Out Negative Radicands
For f(x) = sqrt(x), the square root requires a nonnegative radicand, so the natural domain is [0, infinity).
Rule Out Zero Denominators
For g(x) = 1/(x^2 - 4), the denominator vanishes at x = 2 and x = -2, so the natural domain is all reals except ±2. For h(x) = x/(x^2 + 1), the denominator satisfies x^2 + 1 >= 1 and never vanishes, so the natural domain is all real numbers.
Answer: Natural domains: $\sqrt{x}$ on $[0, \infty)$; $\dfrac{1}{x^2-4}$ on $\{x : x \ne \pm 2\}$; $\dfrac{x}{x^2+1}$ on $(-\infty, \infty)$.
✓ Verified by SymPy CAS
Example 05(Section 1.5, Exercise 5)
Warm-upProblem. Explain how the range of a function can be determined directly from its graph, and illustrate with a simple example.
Step-by-Step Derivation (3 steps)
Swap the Direction of Attention
Domain questions ask which vertical slices of the plane the graph occupies; range questions ask which horizontal slices it occupies. Scanning left-to-right gives the domain, scanning bottom-to-top gives the range.
Track Extremes and Gaps
Find the lowest and highest points of the graph, watching carefully for holes, asymptotes, or jumps that punch gaps into the vertical coverage. For f(x) = x^2 the vertex at (0, 0) and upward opening give range [0, infinity); for f(x) = 1/x the graph never touches y = 0, so the range is all nonzero reals.
Cross-Check Algebraically
A quick sign or bound argument should agree with the picture. If the graph suggests range [0, 4] but a formula check shows values above 4 are possible, one of the two readings needs revising.
Answer: Project the graph onto the $y$-axis: the range is the set of all $y$-values covered, i.e. $\{y : (x, y) \text{ lies on the graph for some } x\}$.
✓ Verified by SymPy CAS
Example 06(Section 1.5, Exercise 6)
Warm-upProblem. Define even and odd functions, give one example of each, and describe the symmetry each type forces on the graph.
Step-by-Step Derivation (3 steps)
State the Algebraic Tests
Both definitions require the domain itself to be symmetric about 0 (if x is allowed, so is -x) and the identity to hold everywhere in the domain, not just at a few points.
Read the Geometry
For an even function, the point (x, y) on the graph brings (-x, y) along as its mirror image across the y-axis. For an odd function, (x, y) forces (-x, -y), which is the 180-degree rotation of the point about the origin.
Verify with Examples
The parabola y = x^2 is even; sin x and x^3 are odd. Most functions are neither: x^2 + x fails both tests, since -(f(x)) and f(-x) disagree with f(x).
Answer: $f$ is even when $f(-x) = f(x)$ (mirror symmetry about the $y$-axis, e.g. $x^2$); $f$ is odd when $f(-x) = -f(x)$ (rotational symmetry about the origin, e.g. $x^3$).
✓ Verified by SymPy CAS
Example 07(Section 1.5, Exercise 7)
Core practiceProblem. Explain what a piecewise function is, then evaluate f(x), where f(x) = x + 2 for x < 0 and f(x) = x^2 for x >= 0, at x = -1 and x = 2.
Step-by-Step Derivation (3 steps)
Understand the Piecewise Idea
A piecewise function applies different formulas on different parts of its domain. It is still one function because each input falls in exactly one branch and therefore receives exactly one output.
Choose the Branch for x = -1
Since -1 satisfies the condition x < 0, we use the first formula x + 2 and obtain 1.
Choose the Branch for x = 2 and Mind the Boundary
The input 2 satisfies x >= 0, so the second formula gives 4. At the boundary x = 0 only the second branch applies (0 >= 0), giving f(0) = 0; here the two branches would not agree at the join, so the function has a jump-like mismatch approaching from the left (limit 2 versus value 0).
Answer: $f(-1) = -1 + 2 = 1$ and $f(2) = 2^2 = 4$.
✓ Verified by SymPy CAS
Example 08(Section 1.5, Exercise 8)
ChallengeProblem. Explain what radian measure means geometrically, convert 180 degrees to radians, and justify why calculus formulas for trigonometric functions assume radians.
Step-by-Step Derivation (3 steps)
Define the Radian Geometrically
The radian measure of a central angle is the ratio of the intercepted arc length to the radius, theta = s/r. A full circle of arc 2*pi*r corresponds to 2*pi radians, so 180 degrees, a half turn, equals pi radians.
Examine the Fundamental Limit
The squeeze-theorem proof compares the areas of triangles and sectors, which requires arc length to equal radius times angle. In degrees this limit becomes 180/pi, since one degree subtends pi/180 of the radian arc.
See the Cost of Using Degrees
If x were interpreted as degrees, each differentiation of sine or cosine would drag along a factor of pi/180. Series expansions, integrals, and the elegant solutions of differential equations like y'' = -y would all accumulate the same clutter.
Answer: One radian is the angle whose intercepted arc equals the radius ($s = r\theta$); $180^\circ = \pi$ radians. Calculus uses radians because limits like $\lim_{\theta \to 0} \sin\theta/\theta = 1$, and hence $\tfrac{d}{dx}\sin x = \cos x$, hold only in radian measure.
✓ Verified by SymPy CAS
Example 09(Section 1.5, Exercise 9)
Warm-upProblem. State the amplitude and period of y = a sin(bx) and y = a cos(bx), and explain what each parameter changes on the graph.
Step-by-Step Derivation (3 steps)
Identify the Amplitude
Since sin and cos oscillate between -1 and 1, multiplying by a makes the wave swing between -|a| and |a|. The amplitude measures the height of one swing from the midline, so it is always nonnegative.
Derive the Period
The parent wave completes a cycle when its angle grows by 2*pi. For y = a sin(bx), the angle bx grows by 2*pi when x grows by 2*pi/|b|, so that quotient is the period. Larger |b| packs more cycles into the same interval.
Check with Concrete Values
For y = 3 sin(2x), the graph peaks at 3 and repeats every pi units. For y = -cos(4x), the amplitude is |-1| = 1 and the period is 2*pi/4 = pi/2; the negative sign flips the wave but changes neither measure.
Answer: Both curves have amplitude $|a|$ and period $\dfrac{2\pi}{|b|}$; $a$ scales the height and $b$ compresses or stretches the wave horizontally.
✓ Verified by SymPy CAS
Example 10(Section 1.5, Exercise 10)
Core practiceProblem. Describe how adding constants to f(x) or to x shifts a graph vertically and horizontally, and how multiplying by -1 reflects it, illustrating with f(x) = x^2.
Step-by-Step Derivation (4 steps)
Vertical Shifts Act on the Output
Adding a constant to the whole formula raises or lowers every point of the graph by the same amount without changing its shape. Adding inside the output is the intuitive direction: plus means up.
Horizontal Shifts Act on the Input and Feel Reversed
In f(x + c) the vertex of y = x^2 moves to x = -c, so adding 3 inside shifts the parabola left by 3. The rule moves left because the input must now be 3 smaller to reach the same value the original function produced.
Reflections Come from Negatives
The graph of -f(x) mirrors y = f(x) across the x-axis, turning the upward parabola downward. The graph of f(-x) mirrors across the y-axis; for x^2 the mirror is invisible because the parabola is already y-axis symmetric, but for x^3 the flip is very visible.
Combine Rules in Order
To graph g, start with x^2, shift right 2 (input rule), reflect over the x-axis (negative outside), then shift up 5 (output rule). The vertex lands at (2, 5) opening downward.
Answer: $f(x)+c$ shifts up $c$, $f(x)+(-c)$ down; $f(x+c)$ shifts left $c$; $-f(x)$ reflects across the $x$-axis and $f(-x)$ reflects across the $y$-axis.
✓ Verified by SymPy CAS
Example 11(Section 1.5, Exercise 11)
Core practiceProblem. Define the composition of two functions, then compute (f circle g)(x) and (g circle f)(x) for f(x) = x^2 and g(x) = 2x + 1, and compare the results.
Step-by-Step Derivation (3 steps)
State the Definition
The composition f circle g means: feed x into g first, then feed the result g(x) into f. The domain of f circle g is the set of x for which g(x) lies in the domain of f.
Compute f circle g
Replacing the input of the squaring machine with the expression 2x + 1 gives (2x + 1)^2, which expands to 4x^2 + 4x + 1.
Compute g circle f and Compare
Doubling x^2 and adding 1 gives 2x^2 + 1. At x = 1, f circle g yields 9 while g circle f yields 3, so the two compositions are different functions. Order matters, unlike multiplication of numbers.
Answer: $(f \circ g)(x) = (2x+1)^2 = 4x^2 + 4x + 1$, while $(g \circ f)(x) = 2x^2 + 1$; composition is not commutative.
✓ Verified by SymPy CAS
Example 12(Section 1.5, Exercise 12)
ChallengeProblem. Explain when a function possesses an inverse function, describe the Horizontal Line Test, and illustrate by finding the inverse of f(x) = 2x - 1.
Step-by-Step Derivation (3 steps)
Require Reversibility
An inverse must send each output back to the unique input that produced it. If two different inputs share an output, the reverse rule would have to return two answers for one input, breaking the definition of a function.
Apply the Horizontal Line Test
A horizontal line y = c collects all inputs mapped to the same output c. If every such line hits the graph at most once, no output is duplicated and an inverse exists. The parabola y = x^2 fails (both x = 2 and x = -2 give 4), which is why we restrict its domain to [0, infinity) before writing sqrt as its inverse.
Construct and Verify an Inverse
Solve y = 2x - 1 for x and rename. Verification: f(f^{-1}(x)) = 2((x+1)/2) - 1 = x and f^{-1}(f(x)) = (2x-1+1)/2 = x, the round-trip property that certifies a true inverse. The graphs of f and f inverse are mirror images across the line y = x.
Answer: $f^{-1}$ exists exactly when $f$ is one-to-one ($f(x_1) = f(x_2) \implies x_1 = x_2$); the Horizontal Line Test screens this, and for $f(x) = 2x - 1$ the inverse is $f^{-1}(x) = \dfrac{x+1}{2}$.
✓ Verified by SymPy CAS
Example 13(Section 1.5, Exercise 13)
Core practiceProblem. Define a rational function and explain where its graph can have vertical asymptotes. Apply the rule to p(x) = 1/(x^2 - 4) and q(x) = (x - 1)/(x^2 - 1).
Step-by-Step Derivation (3 steps)
Define the Class
Rational functions are ratios of polynomials; every polynomial is rational with denominator 1. Their natural domains exclude precisely the real zeros of q.
Locate Asymptotes via Uncanceled Zeros
Near a zero a of the denominator where the numerator stays nonzero, the quotient grows without bound, so the graph shoots upward or downward beside the line x = a. For 1/(x^2 - 4), both x = 2 and x = -2 are vertical asymptotes.
Cancel First to Find Hidden Holes
For q(x) = (x - 1)/(x^2 - 1), the factor (x - 1) cancels, so x = 1 produces only a hole (removable discontinuity) at (1, 1/2), not an asymptote. The surviving factor (x + 1) leaves exactly one vertical asymptote at x = -1.
Answer: A rational function is $p(x)/q(x)$ with polynomials $p, q$; vertical asymptotes occur at zeros of $q$ that are not canceled by $p$: $\tfrac{1}{x^2-4}$ has asymptotes $x = \pm 2$, while $\tfrac{x-1}{x^2-1}$ has one asymptote at $x = -1$ and a hole at $x = 1$.
✓ Verified by SymPy CAS
Example 14(Section 1.5, Exercise 14)
ChallengeProblem. Define a periodic function, state the period of sin x, and argue carefully that the oscillating-looking function sin(x^2) is not periodic.
Step-by-Step Derivation (4 steps)
State the Definition Precisely
Periodicity demands a single fixed shift T that reproduces the entire graph, and the identity must hold for every input in the domain, whose shape must itself repeat (for all reals, typically). The smallest such T, when it exists, is called the period.
Confirm a Standard Example
The sine function repeats every full turn of the unit circle, so 2*pi is a period; no smaller positive shift works because sine takes each value exactly twice per cycle in a pattern that cannot repeat sooner. Cosine shares the period 2*pi; tangent repeats every pi.
Diagnose sin(x squared)
Suppose a period T existed. Zeros of a periodic function repeat with spacing T forever, but the zeros of sin(x^2) sit at sqrt(n*pi), whose consecutive gaps shrink toward 0 as n grows. The oscillations speed up: the wave never copies a previous window exactly, so no single T can satisfy the identity for all x.
Heed the Graphical Lesson
A quick graph of sin(x^2) shows waves pressed ever more tightly as |x| increases. Pictures can mislead about periodicity, so pair visual inspection with an argument about the spacing of zeros or peaks.
Answer: $f$ is periodic when $f(x+T) = f(x)$ for all $x$ and some fixed $T > 0$; $\sin x$ has period $2\pi$, but $\sin(x^2)$ is not periodic because its zero crossings $x = \sqrt{n\pi}$ get progressively closer together.
✓ Verified by SymPy CAS
Example 15(Section 1.5, Exercise 15)
ChallengeProblem. Outline the steps for modeling a real-world quantity with a function, then demonstrate them on a rectangle with fixed perimeter 40 whose area depends on its width.
Step-by-Step Derivation (4 steps)
Identify the Variables
Decide which quantity varies freely (the independent variable) and which one you want to predict (the dependent variable). Naming and units matter: width in meters, area in square meters.
Choose a Realistic Domain
The physical constraints shrink the natural algebraic domain: widths at or beyond 20 force a nonpositive length, which describes no rectangle. Modeling domains are chosen by the situation, not only by the formula.
Express the Rule
Combine the geometric relations into one formula for the dependent variable in terms of the independent one. Here the perimeter constraint eliminates the length, leaving the quadratic area model A(w) = 20w - w^2.
Validate with Data and Interpret
Test endpoints of Reason: the 10 by 10 square should give the largest area, and swapping width with length should not change the area, which the symmetry A(5) = A(15) reflects. Compare predictions with measured examples before trusting the model.
Answer: Steps: identify variables, choose the domain, express the rule, then validate against data. For the rectangle: $A(w) = w(20 - w)$ with natural modeling domain $0 < w < 20$.
✓ Verified by SymPy CAS
Example 16(Section 1.5, Exercise 16)
Core practiceProblem. Show how any function f defined on a symmetric domain can be written as the sum of an even function and an odd function, and decompose f(x) = x^2 + x as an illustration.
Step-by-Step Derivation (3 steps)
Set Up the Two Candidates
The domain must be symmetric about 0 so that f(-x) exists whenever f(x) does. Adding E and O reconstructs f immediately, since the f(-x) terms cancel: E(x) + O(x) = f(x).
Verify the Parities
Swapping x for -x in E merely reorders the sum, so E is even. In O the swap flips the sign of every term, so O is odd. Thus f really is a sum of an even and an odd function.
Note Uniqueness and Compute an Example
The decomposition is unique: if f = g + h with g even and h odd, then g - E = H - h is simultaneously even and odd, hence zero. For f(x) = x^2 + x: f(-x) = x^2 - x, so E = ((x^2+x)+(x^2-x))/2 = x^2 and O = ((x^2+x)-(x^2-x))/2 = x.
Answer: $f(x) = \underbrace{\tfrac{f(x)+f(-x)}{2}}_{\text{even part}} + \underbrace{\tfrac{f(x)-f(-x)}{2}}_{\text{odd part}}$; for $f(x) = x^2 + x$ this gives even part $x^2$ and odd part $x$.
✓ Verified by SymPy CAS