[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
Solved

# Graph Function

Posted on 2016-09-05
Medium Priority
162 Views
Can you please explain it in a different way?
0
Question by:mustish1
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 4
• 2

LVL 32

Expert Comment

ID: 41785354
Your approach is done in a straightforward conventional way. Looks good.
0

Author Comment

ID: 41785365
Can you please explain the part 1 that how the values of x and y are plugged in
0

LVL 32

Expert Comment

ID: 41785372
y = y(x) = 2^(-x) = 1/2^(x)
Using your sample values of x:

y(1) = 1/2^(1) = 1/2         ==> (1, 1/2)
y(0) = 1/2^(0) = 1/1 = 1   ==> (0,1)
y(-1) = 1/2^(-1) = 1/ (1/2) = 2 ==> (-1, 2)     // I see that you had (-1, 1/2) even though you had y=2
0

LVL 32

Expert Comment

ID: 41785387
For part 2, you can graph the two curves, i.e., the quadratic and the straight lines, and then get an approximation of g(x).From the graphs, you can get a rough feel where the intersections of the two graphs are. Then you guess and compute g(x_guess). Then you increment and decrement x_guess by, say, 0.1, and see which g(x) is closer to -8. Now you have a new x_guess. and you modify x_guess by 0.5 in both directions to chose a new x_guess. Keep doing this until the new x_guess is the same as the previous one for the desired number of decimal places.
0

LVL 32

Accepted Solution

phoffric earned 2000 total points
ID: 41785394
To do the numerical approach more efficiently, you can use the newton raphson numerical method approach.
https://en.wikipedia.org/wiki/Newton%27s_method

But you have to come up with two initial guesses that will converge to the two solutions.
0

Author Closing Comment

ID: 41785421
Thank You.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
Digital marketing agencies have encountered both the opportunities and difficulties that emerge from working with a wide-ranging organizations.
Where to go on the main page to find the job listings. How to apply to a job that you are interested in from the list that is featured on our Careers page.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaacâ€¦
###### Suggested Courses
Course of the Month13 days, left to enroll