Question: import numpy as np # Define the income function I ( x ) def income ( x ) : return ( 4 0 + x
import numpy as np
# Define the income function Ix
def incomex:
return x x
# Coefficients of the quadratic equation Ix ax bx c
# Expanding the income function:
# Ix x x x
# Ixxx
a
b
# The vertex of a parabola given by ax bx c is at x ba
xmax b a
# Calculate the maximum income
maxincome incomexmax
# Calculate the optimal rental rate
optimalrate xmax
# Print results
printfThe rental agency will earn a maximum income of $maxincome:f when it charges $optimalrate:f per day."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
