Math Problem Statement
Graph the function: f(x) = (x - 3) ^ 2 + 1
Solution
The function you provided is:
This is a quadratic function, which represents a parabola. To graph it, we can identify some key features:
-
Vertex: The vertex form of a quadratic function is , where is the vertex. In this case, , , and , so the vertex is at .
-
Axis of symmetry: This is the vertical line passing through the vertex. In this case, the axis of symmetry is .
-
Shape: Since the coefficient is positive, the parabola opens upwards.
-
Y-intercept: To find the y-intercept, set :
So the y-intercept is at .
Now, I will graph this function.
Please hold on a moment! numpy as np import matplotlib.pyplot as plt
Define the function f(x) = (x - 3)^2 + 1
def f(x): return (x - 3)**2 + 1
Generate x values from -2 to 8
x = np.linspace(-2, 8, 400) y = f(x)
Plot the graph
plt.figure(figsize=(6,6)) plt.plot(x, y, label=r'$f(x) = (x - 3)^2 + 1$', color='blue') plt.scatter(3, 1, color='red', zorder=5, label="Vertex (3, 1)") plt.scatter(0, 10, color='green', zorder=5, label="Y-intercept (0, 10)") plt.axvline(x=3, color='gray', linestyle='--', label="Axis of Symmetry x=3")
Labels and title
plt.title("Graph of the function f(x) = (x - 3)^2 + 1") plt.xlabel('x') plt.ylabel('f(x)') plt.axhline(0, color='black',linewidth=1) plt.axvline(0, color='black',linewidth=1) plt.legend()
Show the plot
plt.grid(True) plt.show()Here is the graph of the function .
- The vertex of the parabola is at .
- The axis of symmetry is the vertical line .
- The y-intercept is at , where the curve crosses the y-axis.
- Since the coefficient of is positive, the parabola opens upwards.
Would you like further details or have any specific questions on this graph?
Here are some related questions for further exploration:
- How can you determine the domain and range of this function?
- What would happen if the coefficient of were negative?
- How would the graph change if the constant were replaced with another value?
- What is the effect of shifting the vertex horizontally or vertically in quadratic functions?
- How can you find the x-intercepts of a quadratic function like this one?
Tip: When graphing quadratic functions, always start by identifying the vertex and axis of symmetry, as they give you a lot of insight into the graph's shape and direction!
Ask a new question for Free
By Image
Drop file here or Click Here to upload
Math Problem Analysis
Mathematical Concepts
Algebra
Quadratic Functions
Graphing Parabolas
Formulas
Vertex form of a quadratic function: f(x) = a(x - h)^2 + k
Theorems
Vertex form of a quadratic function
Properties of parabolas
Suitable Grade Level
Grades 9-11